SRL Archive - Research & Development Lounge

Why wont this bloody compile? :/


momotron

2012-02-24 21:14:19

http://pastehtml.com/view/bpa6fufoj.txt

Function DepositBox: Boolean;

Var
x, y, b, spot: Integer;


begin
spot:= DTMFromString('mWAAAAHicY2FgYNgAxLeBeDMQzwXiaUA8FYhXQrGRgQFDWqQzQ06cO0NGtCsDP1AMGTOiYRAAACUyCUo=');

MarkTime(b);
Repeat
if FindDTM(spot, x, y, MSX1, MSY1, MSX2, MSY2) then
begin
Mouse(x, y, 4, 4, false);
WaitOption('ulley', 200); // Use this an improvement WaitOptionMulti(['Castl','astl','e Wa','rs R'], 1000) ofc edit time/words
WaitOption('ift', 200); // Use this an improvement WaitOptionMulti(['Castl','astl','e Wa','rs R'], 1000) ofc edit time/words
Wait(RandomRange(750, 1000));
Repeat
wait(50);
Until(IsMoving = false)
Result:= True
end else
begin
Result:= False
end;
if (TimeFromMark(b) > 5000) then
begin
Writeln('Unable to find Pulley Lift (deposit box) :(')
Break;
end;
Until(Result = True);
FreeDTM(spot);
end;

:/
Debug:
[Error] (397:1): Identifier expected at line 396
Compiling failed.

btw line 397 is "function DepositBox: Boolean;"

Caotom

2012-02-24 21:16:11

Are you sure that there are enough begins/ends on the procedure before? That usually causes that particular error.

~Caotom

RISK

2012-02-24 21:16:28

It works fine for me. Can you paste the whole script, please?

Thanks!

momotron

2012-02-24 21:29:25

From: RISK
It works fine for me. Can you paste the whole script, please?

Thanks!


RISK, I can't sorry :/ used one of flights functions and am yet to ask for permission :/ Forgot to ask him :S



From: Caotom
Are you sure that there are enough begins/ends on the procedure before? That usually causes that particular error.

~Caotom


THANK YOU SO MUCK <3 this worked :)

YoHoJo

2012-02-24 21:33:03

Just post it all so we can help you, I'm sure he wont mind.

Rezozo

2012-02-24 22:06:33

IF you can't, just (for me) list what is at line:
394, 395, 396, 397.
If it is in a loop, display the whole loop.

smurg

2012-02-27 03:20:04

You missed a semicolon.

Rezozo

2012-02-27 19:31:27

From: smurg
You missed a semicolon.


Is that so… Would you mind posting for which line? I don't want him to keep posting questions like this… :)

footballjds

2012-02-27 19:34:12

From: smurg
You missed a semicolon's.


more then 3 chars