Log in

View Full Version : Compilation help



Bobby Boo
04-14-2012, 03:50 AM
end; <--- line 54

[Error] (55:1): Identifier expected at line 54
Compiling failed.


What did I do wrong?

Total
04-14-2012, 03:52 AM
Can't tell from that part alone. Probably missing the begin to the end or something.

Sex
04-14-2012, 03:54 AM
We need code. You're missing a begin or that should be "end." instead of "end;".

Bobby Boo
04-14-2012, 04:35 AM
procedure ChopIvy;
var x, y: integer;
begin
repeat
FindNormalRandoms;
if FindObj(x, y, 'hop Iv', 3629644, 20) then
begin
Mouse(x, y, 2, 2, false);
ChooseOption('hop Iv');
end;
repeat
wait(400+random(250));
AntiBan;
Until not IsUpText('hop Iv')
end; <-----------------------------this is the same end

Total
04-14-2012, 04:37 AM
You have an incomplete repeat until statement.


procedure ChopIvy;
var x, y: integer;
begin
repeat //You call a repeat here but dont end it
FindNormalRandoms;
if FindObj(x, y, 'hop Iv', 3629644, 20) then
begin
Mouse(x, y, 2, 2, false);
ChooseOption('hop Iv');
end;
repeat //This repeat is matched with the until under it
wait(400+random(250));
AntiBan;
Until not IsUpText('hop Iv') // <--- this one
end;

ShawnjohnSJ
04-14-2012, 04:38 AM
procedure ChopIvy;
var x, y: integer;
begin
repeat
FindNormalRandoms;
if FindObj(x, y, 'hop Iv', 3629644, 20) then
begin
Mouse(x, y, 2, 2, false);
ChooseOption('hop Iv');
end;
repeat
wait(400+random(250));
AntiBan;
Until not IsUpText('hop Iv')
end; <-----------------------------this is the same end


The problem here is that you have a repeat loop without until.

Gucci
04-14-2012, 04:40 AM
Try this:

procedure ChopIvy;
var x, y: integer;
begin
FindNormalRandoms;
if FindObj(x, y, 'hop Iv', 3629644, 20) then
begin
Mouse(x, y, 2, 2, false);
ChooseOption('hop Iv');
repeat
Wait(400+random(250));
Until not IsUpText('hop Iv')
end;
end;

You weren't looping the repeat..until statements properly

Bobby Boo
04-14-2012, 04:40 AM
oops.. thanks guys it compiles correctly now