PDA

View Full Version : What does this error mean?



beefman
04-23-2015, 01:01 PM
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
04-23-2015, 01:02 PM
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
04-23-2015, 01:45 PM
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.