SRL Archive - OSR Help

SPS errors help


Okea

2012-07-16 05:42:00

Hey guys,

Trying to fix this error on a script,


[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

Google

2012-07-16 11:28:47

Can you post the code where the error is?


If you just want a quickfix you can change it to something like below.


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;


Okea

2012-07-16 13:02:22

From: GOOGLE
Can you post the code where the error is?


If you just want a quickfix you can change it to something like below.


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! :)

Recursive

2012-07-16 16:37:12

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

{.include SRL/SRL.simba}
{.include SPS/SPS.simba}

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