SRL Archive - OSR Help

Error? =/


xBiO

2012-05-31 00:53:23

[Error] (239:5): Unknown identifier 'CoursesDone' at line 238
Compiling failed.


have no idea? can someone help me?

riwu

2012-05-31 00:56:05

From: xBiO
[Error] (239:5): Unknown identifier 'CoursesDone' at line 238
Compiling failed.


have no idea? can someone help me?

post the whole script that u r using.
Unknown identifier means that the variable "CoursesDone" is not being defined.
My guess is that it shd be an integer so just add
Var
CoursesDone: Integer;
to the script.

xBiO

2012-05-31 00:59:50

if RightClickMethod then
begin
StatsGuise('Shooting Targets');
for i := 1 to 10 do
begin
if FindObjEx(x, y, ['arget'], [5041405, 5238269], 7, 31, MSX1, MSY1, 375, 65) then
ClickMouse2(False);
Wait(200 + Random(150));
ChooseOptionEx('arget', 'object');
Wait(2400 + Random(150) + Laggy);
MMouse(487, 42, 3, 3);
Wait(550 + Random(150) + Laggy);
if IsUpText('lose') then
ClickMouse2(True);
end;
if FindObjTPA(x, y, 1845548, 11, 2, 15, 15, 50, ['ition']) or
FindObjTPA(x, y, 2702911, 13, 2, 15, 15, 50, ['ition']) then
Mouse(x, y, 5, 5, False);
WaitOption('to C', 500);
end;

CoursesDone := (CoursesDone + 1);
end;

there it has the integer i think?

Abu

2012-05-31 02:51:39

From: xBiO


there it has the integer i think?



No no no.

You have to tell the script it is a number. How does your script know that CoursesDone isn't a string or a true or false statement? It doesn't.

At the start of you script, before your DeclarePlayers procedure but after you define all your includes, put this:

Var
CoursesDone: Integer;

If you have 'var' already there then just add CoursesDone: Integer; underneath it.

stuartroad

2012-06-03 07:07:13

This is Ryy's range guild script, you can't ask people to fix an anti leech for you.