Just went to re-start my script and when I tried to run it again i've come across an error:
Error: Forwarded declaration doesn't match at line 192
Compiling failed.
from Camel's Aircraft script
was working perfectly fine until I stopped the script, found and did a SPS update ( which is what broke it I think ), but error still exists
Simba Code:
function TSPSArea.walkPath(path: TPointArray): boolean; override;
var
p, lastPos, mmPoint, dCheck: TPoint;
t, fails, h, l, i, rng: integer;
begin
result := false;
h := high(path);
l := low(path);
t := (getSystemTime() + randomRange(15000, 20000));
repeat
if (not isLoggedIn()) then
exit(false);
p := self.getPlayerPos();
for i := h downto l do
if (SPS_PosToMM(path[i], p, mmPoint)) then
begin
if (distance(minimap.getCenterPoint(), mmPoint) >= 10) then
begin
if (spsMultiMouse) then
multiClick(mmPoint, 25, 3)
else
mouse(mmPoint, MOUSE_LEFT);
// Waits for the flag to appear for up to 2500
if (minimap.isFlagPresent(2500 + random(500))) then
begin
rng := random(15);
repeat
wait(100 + random(250));
WalkingAntiBan();
until (minimap.getFlagDistance() < (15 + rng)) or (not isLoggedIn()) or (not minimap.isFlagPresent());
end;
end;
t := (getSystemTime() + randomRange(15000, 20000));
result := (i = h) or (distance(path[i], path[h]) < 10);
if (result) then
break(2)
else
break();
end;
if (p.x = lastPos.x) and (p.y = lastPos.y) then
inc(fails);
lastPos := p;
until (getSystemTime() > t) or (fails > 5);
print(self.getName()+'.walkPath(): result = '+boolToStr(result));
end;