SRL Archive - Help

So, 'Identifier expected'


i need to bot!

2012-01-14 07:37:36

Well, I have given up on using the 'OpenBank' procedure, as that has failed, and begun creating a custom bank opener.
program OpenMehBank;

{$DEFINE Smart}
{$i SRL\SRL.scar}
{$i sps/sps.simba}

procedure DeclarePlayers;
begin
HowManyPlayers:= 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;

Players[0].Name := 'nevermind this!';
Players[0].Pass := '';
Players[0].Nick := '';
Players[0].Pin := '';
Players[0].Active := true;
LoginPlayer
end;

procedure Bankit;
var x, y: integer;
begin
FindNormalRandoms;
if FindObjCustom(x, y, ['ank'],[3218210, 4074031, 5059387, 4270897, 4073775, 3677991, 5322302, 4205359, 4402227, 4073775, 4533813, 4205361, 4533813, 4730934], 35) then
begin
Mouse(x, y, 0, 0, false);
ChooseOption('hop');
end;



begin
SetupSRL;
DeclarePlayers;
LoginPlayer;
Bankit;
end.

I know this is very basic.. just opening a bank xD, but I have already finished the rest of my script, and this is really annoying me.

I get :'Identifier expected at line 38'

Now, what does Identifier expected actually mean, and how can i fix

Thanks ! :D

Dynamite

2012-01-14 07:40:07

You are missing an end:
begin
Mouse(x, y, 0, 0, false);
ChooseOption('hop');
end;

Smidqe

2012-01-14 07:41:25

From: i need to bot!
Well, I have given up on using the 'OpenBank' procedure, as that has failed, and begun creating a custom bank opener.
I know this is very basic.. just opening a bank xD, but I have already finished the rest of my script, and this is really annoying me.

I get :'Identifier expected at line 38'

Now, what does Identifier expected actually mean, and how can i fix

Thanks ! :D


You are missing a end.
E: Gah.. too late

procedure Bankit;
var x, y: integer;
begin
FindNormalRandoms;
if FindObjCustom(x, y, ['ank'],[3218210, 4074031, 5059387, 4270897, 4073775, 3677991, 5322302, 4205359, 4402227, 4073775, 4533813, 4205361, 4533813, 4730934], 35) then
begin
Mouse(x, y, 0, 0, false);
ChooseOption('hop');
end; // You forgot a end here
end;

i need to bot!

2012-01-14 07:52:32

Thanks!

i need to bot!

2012-01-14 08:36:04

Spose it still wont work cuz of the update :(