Error :(

Discussion in 'Scar/Simba Help' started by .BlinX., Jun 27, 2007.

Error :(
  1. Unread #1 - Jun 27, 2007 at 7:54 PM
  2. .BlinX.
    Referrals:
    0

    .BlinX. Guest

    Error :(

    Anybody can help me that would be great. I have SRL i dont know whats wrong :(

    this is my error message

    Line 137: [Error] (16349:1): Duplicate identifier 'HeadColor' in script C:\DOCUME~1\Jay\LOCALS~1\Temp\SL Port Sarim Willow Whacker v0.97x.scar
     
  3. Unread #2 - Jun 27, 2007 at 8:03 PM
  4. Town
    Joined:
    Jan 21, 2007
    Posts:
    3,776
    Referrals:
    3
    Sythe Gold:
    5

    Town Grand Master
    Scar Programmers

    Error :(

  5. Unread #3 - Jun 27, 2007 at 9:14 PM
  6. .BlinX.
    Referrals:
    0

    .BlinX. Guest

    Error :(

    ok dled the scar and that srl but i got this new error when i click 'start script'

    [Runtime Error] : Out Of Range in line 472 in script C:\DOCUME~1\Jay\LOCALS~1\Temp\SL Port Sarim Willow Whacker v0.97.scar
     
  7. Unread #4 - Jun 27, 2007 at 9:26 PM
  8. Town
    Joined:
    Jan 21, 2007
    Posts:
    3,776
    Referrals:
    3
    Sythe Gold:
    5

    Town Grand Master
    Scar Programmers

    Error :(

    Hmmm, post it.
     
  9. Unread #5 - Jun 27, 2007 at 9:45 PM
  10. .BlinX.
    Referrals:
    0

    .BlinX. Guest

    Error :(

    [Runtime Error] : Out Of Range in line 472 in script C:\DOCUME~1\Jay\LOCALS~1\Temp\SL Port Sarim Willow Whacker v0.97.scar
     
  11. Unread #6 - Jun 27, 2007 at 9:47 PM
  12. Town
    Joined:
    Jan 21, 2007
    Posts:
    3,776
    Referrals:
    3
    Sythe Gold:
    5

    Town Grand Master
    Scar Programmers

    Error :(

    I meant the script.
     
  13. Unread #7 - Jun 27, 2007 at 9:55 PM
  14. .BlinX.
    Referrals:
    0

    .BlinX. Guest

    Error :(

  15. Unread #8 - Jun 27, 2007 at 10:15 PM
  16. Town
    Joined:
    Jan 21, 2007
    Posts:
    3,776
    Referrals:
    3
    Sythe Gold:
    5

    Town Grand Master
    Scar Programmers

    Error :(

    I can't download it atm, just post lines 450-550 or so and I should be able to figure it out.
     
  17. Unread #9 - Jun 28, 2007 at 12:11 AM
  18. .BlinX.
    Referrals:
    0

    .BlinX. Guest

    Error :(

    ok here you go

    Code:
    bReportBug.Parent := SLPSWWForm;
      bReportBug.Left := 30;
      bReportBug.Top := 90;
      bReportBug.Width := 83;
      bReportBug.Height := 25;
      bReportBug.Caption := 'Report Bug';
      bReportBug.TabOrder := 2;
      bReportBug.OnClick := @ButtonClick;
      bBestReport := TButton.Create(SLPSWWForm);
      bBestReport.Parent := SLPSWWForm;
      bBestReport.Left := 30;
      bBestReport.Top := 125;
      bBestReport.Width := 83;
      bBestReport.Height := 25;
      bBestReport.Caption := 'Best Report';
      bBestReport.TabOrder := 3;
      bBestReport.OnClick := @ButtonClick;
    end;
    
    procedure ShowFormModal;
    begin
      SLPSWWForm.ShowModal;
    end;
    
    procedure Signature; forward;
    procedure ShowNormalForm;
    var
      v: TVariantArray;
    begin
      Signature;
      SetArrayLength(V, 0);
      ThreadSafeCall('LoadSLPSWWForm', v);
      SetArrayLength(v, 0);
      ThreadSafeCall('ShowFormModal', v);
    end;
    
    //------------------------------------------------------------------------\\
    {              LoadChatArray - Loads Chat text in the memory.             ||
    \\------------------------------------------------------------------------//}
    
    procedure LoadChatArray;
    begin
      SetArrayLength(arChatLines, 20);
        //b
      SetArrayLength(arChatLines[0].Question, 1);
      arChatLines[0].Question[0] := 'ban';
      arChatLines[0].Answer   := 2;
        //c
      SetArrayLength(arChatLines[1].Question, 1);
      arChatLines[1].Question[0] := 'cheat';
      arChatLines[1].Answer   := 2;
        //g
      SetArrayLength(arChatLines[2].Question, 1);
      arChatLines[2].Question[0] := 'gf';
      arChatLines[2].Answer   := 3;
      SetArrayLength(arChatLines[3].Question, 1);
      arChatLines[3].Question[0] := 'girl friend';
      arChatLines[3].Answer   := 3;
        //h
      SetArrayLength(arChatLines[4].Question, 1);
      arChatLines[4].Question[0] := 'hi';
      arChatLines[4].Answer   := 0;
      SetArrayLength(arChatLines[5].Question, 1);
      arChatLines[5].Question[0] := 'hey';
      arChatLines[5].Answer   := 0;
      SetArrayLength(arChatLines[6].Question, 1);
      arChatLines[6].Question[0] := 'hello';
      arChatLines[6].Answer   := 0;
      SetArrayLength(arChatLines[7].Question, 1);
      arChatLines[7].Question[0] := 'how are';
      arChatLines[7].Answer   := 1;
        //r
      SetArrayLength(arChatLines[8].Question, 1);
      arChatLines[8].Question[0] := 'report';
      arChatLines[8].Answer   := 2;
        //w
      SetArrayLength(arChatLines[9].Question, 3);
      arChatLines[9].Question[0] := 'wc';
      arChatLines[9].Question[1] := '+level';
      arChatLines[9].Question[2] := '+lvl';
      arChatLines[9].Answer   := 4;
      SetArrayLength(arChatLines[10].Question, 3);
      arChatLines[10].Question[0] := 'woodcut';
      arChatLines[10].Question[1] := '+level';
      arChatLines[10].Question[2] := '+lvl';
      arChatLines[10].Answer   := 4;
    end;
    
    //------------------------------------------------------------------------\\
    {                 LoadAnswer - Loads answers in the memory.               ||
    \\ 0: begin
             case Random(5) of
               0: Result := 'hi';
               1: Result := 'hey';
               2: Result := 'whats up?';
               3: Result := 'hello';------------------------------------------------------------------------//}
    
    function LoadAnswer(AnswerType: Integer): string;
    begin
      case AnswerType of
    
               4: Result := 'hey you';
     
  19. Unread #10 - Jun 28, 2007 at 8:50 AM
  20. Town
    Joined:
    Jan 21, 2007
    Posts:
    3,776
    Referrals:
    3
    Sythe Gold:
    5

    Town Grand Master
    Scar Programmers

    Error :(

    Oh, you may have done something wrong with the form, just try it again. If an error message comes up while you are in the form then you will get that error.
     
  21. Unread #11 - Jun 28, 2007 at 11:36 AM
  22. dontpanic
    Joined:
    Mar 2, 2006
    Posts:
    37
    Referrals:
    0
    Sythe Gold:
    4

    dontpanic Member

    Error :(

    To fix the first error, just delete the declaration of HeadColor in the script, as it is already declared in srl. (so delete where it says var HeadColor:integer;)
     
  23. Unread #12 - Jun 30, 2007 at 4:33 PM
  24. .BlinX.
    Referrals:
    0

    .BlinX. Guest

    Error :(

    i deleted head color integer in the script but go ANOTHER one...

    Line 1364: [Error] (20495:1): Unknown identifier 'HeadColor' in script C:\DOCUME~1\Jay\LOCALS~1\Temp\SL Port Sarim Willow Whacker v0.97.scar
     
< Need my auto guild fisher script to be fixed! | Need SRL 3.5 >

Users viewing this thread
1 guest


 
 
Adblock breaks this site