sm321
2012-02-24 06:01:02
I have this script so far, from YoHoJo's Scripting Tutorial #1
And I'm getting this message "[Error] (32:1): Semicolon (';') expected at line 31
Compiling failed." and I have absolutely no idea why.
program SaveTheGoldfish;
procedure StartGame;
begin
MoveMouse(239, 364);
ClickMouse(239, 364, 1);
Wait(700);
MoveMouse(398,324);
ClickMouse(398, 324, 1);
Wait(700);
MoveMouse(352, 160);
ClickMouse(352, 160, 1);
End;
procedure SaveGoldfish;
var
x, y:Integer;
begin
If FindColorSpiralTolerance(x, y, 1271548, 798, 596, 530, 470, 20) or
FindColorSpiralTolerance(x, y, 1137660, 798, 596, 530, 470, 20) or
FindColorSpiralTolerance(x, y, 869629, 798, 596, 530, 470, 20) or
FindColorSpiralTolerance(x, y, 1869629, 1798, 596, 530, 470, 20) Then
begin
MoveMouse(x, y);
HoldMouse(x, y, 1)
MoveMouse(639, 292);
ReleaseMouse(639, 292, 1)
End;
end
begin;
StartGame;
Repeat
SaveGoldfish;
until(false);
end; And I'm getting this message "[Error] (32:1): Semicolon (';') expected at line 31
Compiling failed." and I have absolutely no idea why.