Results 1 to 9 of 9

Thread: Never Before Seen

  1. #1
    Join Date
    Jun 2007
    Posts
    11
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Never Before Seen

    i have never ever seen this error while i have been using scar


    Line 142: [Error] (15989:1): Duplicate identifier 'HeadColor' in script C:\Documents and Settings\HP_Administrator\Desktop\Scar Scipts\SL Port Sarim Willow Whacker v0.96.scar

  2. #2
    Join Date
    Mar 2007
    Location
    Under a rock
    Posts
    813
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    did you edit the script at all?

  3. #3
    Join Date
    Jun 2007
    Posts
    11
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Lawlies no, the only this that i did was the username setup...that is all....>_<

  4. #4
    Join Date
    Jul 2006
    Location
    NY
    Posts
    371
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    HeadColor is already included in a include you are using, you cant call it again in your script. Try naming what you added in your username setup something different.

  5. #5
    Join Date
    May 2007
    Location
    NSW, Australia
    Posts
    2,823
    Mentioned
    3 Post(s)
    Quoted
    25 Post(s)

    Default

    Yea it sometimes happens when you try to call a function example:

    Function Tryclickingontoilet: boolean;
    begin
    if FindObj(x,y,'Toilet',Seat,10) then
    Mouse(x, y, 1, 1, true);
    end;

    Then in your main loop or some other part of the script you have Tryclickingontoilet;


    SCAR Code:
    program New;
    {.include SRL\SRL.scar}
    Const
    Seat = 0000000;
    Function Tryclickingontoilet: Boolean;
    begin
    if FindObj(x,y,'Toilet',Seat,10) then
      Mouse(x, y, 1, 1, true);
    end;

    Begin
    Repeat
    SetUpSRL;
    Tryclickingontoilet;
    Until(false)
    end.

    It will say Duplicate blah blah blah.

    Or you are using the Wrong Scar and SRL. The port Sarium willow wahacker uses Scar 2.0.3 with SRL 3.6.

  6. #6
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    2,984
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    The example you gave wont error ... though your last sentence was correct, the free one has to use scar 2.03 and SRL 3.6b.
    Administrator's Warning:


  7. #7
    Join Date
    Jun 2007
    Posts
    11
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    installed srl3.6 and using scar 2.03 and still get same error

  8. #8
    Join Date
    Jun 2007
    Posts
    11
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ok... i fixed it, i dont have the same error message... the script starts and then says No Active Players... Script would be terminated
    Successfully executed

  9. #9
    Join Date
    May 2006
    Posts
    1,230
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    make sure you have Players[?].Active := True; for everyone of your players.

    and where it says Current player put 0, and for HowManyPlayers put how many players u are using.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •