SRL Archive - RS3 Help

Newbie: error


beefman

2015-04-23 12:49:44

Hi,

little error which i'm stuck on

Error: Operator expected at line 30

procedure bootUp();
var
bank: TPoint;
pathToOutsideBank: TPointArray;
pathToBank: TPointArray;
begin
pathToOutsideBank := [Point(212, 118), Point(206, 128), Point(200, 145), Point(200, 158), Point(198, 170), Point(186, 173), Point(171, 173), Point(154, 177), Point(143, 179), Point(129, 183), Point(124, 183)]
pathToBank := [Point(126, 183), Point(124, 168), Point(122, 165), Point(126, 166), Point(123, 165), Point(124, 164)]
wait(randomRange(3000, 10000));
lodestoneScreen.teleportTo(LOCATION_CATHERBY);
mouseBox(intToBox(591, 24, 605, 40), MOUSE_LEFT);
wait(randomRange(10000, 20000));
writeLn('Waiting to find bank');
SPS.walkPath(pathToOutsideBank);
SPS.walkPath(pathToBank);
end;


Line 30:  pathToBank := [Point(126, 183), Point(124, 168), Point(122, 165), Point(126, 166), Point(123, 165), Point(124, 164)]     

Ian

2015-04-23 12:54:07

Semicolon at the end of the line

Turpinator

2015-04-23 12:54:17

semicolon.

ffs. i was trying to find a whitespace char that would count so i could just make it have just the semicolon. this is what i get for trying too hard.

beefman

2015-04-23 12:56:55

whitespace char?