SRL Archive - OSR Help

'Identifier expected in script'


iJake

2010-02-10 12:43:04

I'm trying to use a script which keeps throwing out 'Identifier expected in script'. How do you recommend it gets fixed? Here is the section it is saying there's an error:

The first line is the line it says the errors on.. (:


Procedure AntiBan;

Var
I, TheTab: Integer;

Begin
Case Random(2100) Of
0..50: RandomMovement;
350..390: BoredHuman;
690..715: HoverSkill('Fishing', false);
1015..1065: Begin
TheTab := GetCurrentTab;
I := RandomRange(21, 37);
GameTab(I);
Wait(3000+Random(2000));
GameTab(TheTab);
End;
1365..1395: ExamineInv;
1695..1750: PickUpMouse;
2050..2100: RandomRClick;
End;
End;

(it's bionicle1800's script - http://www.villavu.com/forum/showthread.php?t=54832)

Dynamite

2010-02-10 12:45:27

It will be before that.

The line before should/will be and End;
Delete that end;

Should fix it.

Frement

2010-02-10 12:46:08

The both scripts compile just fine for me. (with smart and without)

Maybe re-download the script?

NCDS

2010-02-10 13:34:09

From now on please post script errors on the thread the script is originally from.

Thanks.

Frement

2010-02-10 13:35:06

From: NCDS
From now on please post script errors on the thread the script is originally from.

Thanks.


Actually he did. And i think he got the answer faster from here :)

NCDS

2010-02-10 13:38:53

The the SRL IRC would be a great option as opposed to creating multiple posts/threads. ;)

Bionicle

2010-02-10 15:38:38

Yea, it was not in the AntiBan btw, I added a little failsafe with the walking, and I forgot an end when I uploaded it. I patched it last night though within an hour or two of the last update, so just re-download the script :p