I keep getting an error that is confusing the hell outta me..
Failed when compiling
[Error] (17375:4): Semicolon (';') expected
And the piece of code it seems to be pointing towards quite clearly has a semicolon... it's rather annoying. This is my first script and I'd like to create it without smashing up my pc. If anyone can point out the probably screamingly obvious mistake I've made it'd be most helpful as I can't see anything wrong atm...
SCAR Code:
program AutoLogin;
{.include SRL/SRL.scar}
var
screen : Integer;
const
username= 'omghelpme';
pass= '*****';
procedure FindScreen;
begin
if (findcolor(x,y,16777215,391,271,532,311)) then
begin
screen:=0;
end else
if (findcolor(x,y,65535,434,212,498,231)) then
screen:=1;
end;
procedure GoLogin;
Begin
mmouse(x,y,(460+random(5)),(292+random(5)));
wait (500+random(500));
mouse(x,y,(460+random(5)),(292+random(5)),true);
//[-----MAIN LOOP------]
begin
SetupSRL;
FindScreen;
if (screen=0) then
begin
gologin;
end else
writeln('Nope...');
end;
end.