SRL Archive - RS3 Help

What does this error mean?


beefman

2015-04-23 09:01:22

Hi guys,
After a years break i'm back and thought i would create a runescape bot.

so, this is a pretty basic error but i'm wondering why i'm getting it. If someone could please explain i would be grateful.

Error: Found unexpected token "else", expected "End"

if SPS.walkPath(pathToOutsideBank) then
writeLn('Found path to bank');
minimap.waitPlayerMoving();
else
writeLn('We failed to walk to the bank');
end;

Justin

2015-04-23 09:02:29


if SPS.walkPath(pathToOutsideBank) then
begin
writeLn('Found path to bank');
minimap.waitPlayerMoving();
end else
writeLn('We failed to walk to the bank');
end;

beefman

2015-04-23 09:45:06

From: Justin

if SPS.walkPath(pathToOutsideBank) then
begin
writeLn('Found path to bank');
minimap.waitPlayerMoving();
end else
writeLn('We failed to walk to the bank');
end;


Ah thank you. Forgot about end else.