Results 1 to 7 of 7

Thread: Duplicate Identiefer :S

  1. #1
    Join Date
    Jan 2009
    Location
    Belgium
    Posts
    175
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default Duplicate Identiefer :S

    im getting an error while testing Function WalkToTile here is my code:
    Function WalkToTile(Tile: TPoint; Randomness, FlagD: Integer): Boolean;
    WalkToTile(Point(3280,3170),0,0);
    end;

    error:
    Line 32: [Error] (28054:10): Duplicate identifier 'WALKTOTILE' in script C:\Documents and Settings\Administrator\Bureaublad\GetMyPos.scar

    Any help?

    Title has to be Duplicate Identifier

  2. #2
    Join Date
    Sep 2007
    Location
    Pennsylvania
    Posts
    3,396
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    When using a function, you don't need to declare it again, so just get rid of the

    Function WalkToTile(Tile: TPoint; Randomness, FlagD: Integer): Boolean;
    In your script.

  3. #3
    Join Date
    Jan 2009
    Location
    Belgium
    Posts
    175
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default

    Thank You,
    it works now

  4. #4
    Join Date
    Jan 2009
    Location
    Belgium
    Posts
    175
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default

    u know some good tutorials for learning Reflection?

  5. #5
    Join Date
    Sep 2007
    Location
    Pennsylvania
    Posts
    3,396
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

  6. #6
    Join Date
    Jan 2009
    Location
    Belgium
    Posts
    175
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default

    i got another error now while copying a NPCDebugger:
    begin
    Result := PointInBox(TileToMS(Tile, Height), IntToBox(MSX1, MSY1, MSX2, MSY2));
    end;

    error:
    Line 210: [Error] (375:55): Unknown identifier 'MSX1' in script C:\Program Files\SCAR 3.21\includes\SRL\SRL\Reflection\Core.Scar

    Any Help?

  7. #7
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    Declare SRL/SRL.scar at the very top of your script, then put SetupSRL; after the 'begin' clause in your mainloop.

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
  •