Hey,
I need to know Why I always get the same error when using else in my script......
Line 24: [Error] (24:1): Identifier expected in script
Heres the script:
SCAR Code:
Program ColorClicker;
{ --------------- }
Var
x, y : integer;
{ --------------- }
{ ------------------- }
Const
TheColor = 8425966;
BeginingX = 232;
BeginingY = 38;
EndingX = 355;
EndingY = 90;
{ ------------------- }
{ ---------------------------------------------------------------------------- }
Procedure First; { Finds the Color }
begin
if FindColor ( x, y, TheColor, BeginingX, BeginingY, EndingX, EndingY ) then
MoveMouseSmooth ( x, y );
Wait ( 100 + random ( 100 ) );
ClickMouse ( x, y, true )
else
Wait ( 500 )
Writeln ( 'Color Missing !' );
end;
{ ---------------------------------------------------------------------------- }
{ -------------------------------- }
Begin
First;
Wait ( 1000 + random ( 500 ) );
End.
{ -------------------------------- }
Help would be appreciated.
Thanks,
Fort Ash