stu
2012-04-16 11:54:57
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:
[Error] (236:9): Unknown identifier 'SPS_GetMyPos' at line 235
Compiling failed.
However I get this error:
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.