Results 1 to 2 of 2

Thread: Unknown Identifier

  1. #1
    Join Date
    Dec 2011
    Posts
    134
    Mentioned
    1 Post(s)
    Quoted
    20 Post(s)

    Default Unknown Identifier

    I'm currently trying to add a Failsafe in my fishing script so that if it leaves a certain area it will return to the original position.
    However I get this error:

    Simba Code:
    procedure FailSafeWalk (LeftArea:String);
    var
    MyPos : TPoint;
    begin
    MyPos :=SPS_GetMyPos;                //<--line 235
    if (Not (Distance(MyPos.X, MyPos.Y, 195, 176) < 120)) then
    Begin
    SPS_WalkToPos(Point(195, 176));
    end;
    end;

    [Error] (236:9): Unknown identifier 'SPS_GetMyPos' at line 235
    Compiling failed.

  2. #2
    Join Date
    Dec 2006
    Location
    Sydney, New South Wales, Australia
    Posts
    4,603
    Mentioned
    15 Post(s)
    Quoted
    42 Post(s)

    Default

    Make sure that you have properly included SPS, and the library (DLL) too.
    You may contact me with any concerns you have.
    Are you a victim of harassment? Please notify me or any other staff member.

    | SRL Community Rules | SRL Live Help & Chat | Setting up Simba | F.A.Q's |

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
  •