Results 1 to 4 of 4

Thread: SPS errors help

  1. #1
    Join Date
    Feb 2012
    Posts
    40
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default SPS errors help

    Hey guys,

    Trying to fix this error on a script,

    Code:
    [Hint] C:\Users\Sarah\Downloads\BasedConstruction1.1.simba(107:3): Variable 'I' never used at line 106
    [Error] C:\Users\Sarah\Downloads\BasedConstruction1.1.simba(178:5): Unknown identifier 'SPS_WalkToPos' at line 177
    I'm not quite sure what to do, I've searched about the unknown identifier sps_walktopos and no one has had the same error.

    Thanks for the help in advance,

    Okea

  2. #2
    Join Date
    Jan 2012
    Posts
    713
    Mentioned
    3 Post(s)
    Quoted
    9 Post(s)

    Default

    Can you post the code where the error is?


    If you just want a quickfix you can change it to something like below.
    Simba Code:
    Procedure TestPath;
    Var
      ToGarden: TPointArray;
    Begin
      ToGarden := [Point(188, 226)]; {Points here multiple or single}
      SPS_WalkPath(ToGarden);
      {If it walks the path successfully it will debug made it.}
      If Sps_WalkPath(ToGarden) Then
      Begin
        Writeln('We Made It To The Garden, Logging Out');
      End;
    End;

  3. #3
    Join Date
    Feb 2012
    Posts
    40
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default

    Quote Originally Posted by GOOGLE View Post
    Can you post the code where the error is?


    If you just want a quickfix you can change it to something like below.
    Simba Code:
    Procedure TestPath;
    Var
      ToGarden: TPointArray;
    Begin
      ToGarden := [Point(188, 226)]; {Points here multiple or single}
      SPS_WalkPath(ToGarden);
      {If it walks the path successfully it will debug made it.}
      If Sps_WalkPath(ToGarden) Then
      Begin
        Writeln('We Made It To The Garden, Logging Out');
      End;
    End;
    Thank you I'll give it a go, Just trying to solve a few errors with simba firstly!

  4. #4
    Join Date
    Dec 2011
    Location
    -bash
    Posts
    515
    Mentioned
    0 Post(s)
    Quoted
    27 Post(s)

    Default

    Make sure you have this at the top of your code (where you define smart and so on):

    Simba Code:
    {.include SRL/SRL.simba}
      {.include SPS/SPS.simba}

    Then also make sure that in the begin of your main code, you have SetupSRL; and
    Simba Code:
    SPS_Setup(RUNESCAPE_SURFACE/OTHER, [map name]);

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
  •