SRL Archive - General

HELP!!! why?


Scaper

2007-11-20 13:55:55

Line 5: [Error] (5:14): Unknown identifier 'x' in script

why do i always get this

i have srl and everything setup propley. help plz

[S]paz

2007-11-20 13:59:32

basically wat ever line 5 is u need to declare x as a variable so to make it a global vriabl.. before any of the acctualy script is written under {.include SRl/SRL.scar} put

var
x : Integer;
this will solve it even thought im not sure a global variable is needed but hey :D:d

spaz

Scaper

2007-11-20 14:51:53

ok were am i going wrong here.

program New;
{.include SRL/SRL.scar}

procedure autoclicking;
begin
repeat
if(FindColor(x,y,color,coords,coords,coords,coords))then
MMouse(x,y,0,0);
wait(100+random(50));
Mouse(x,y,0,0,true;
until(InvFull)
end;

procedure Drop;
begin;
DropTo(2,28)
end;
begin
SetupSRL;
repeat
ReapeatClicking;
Drop;
Until(false);
end.

Rikje

2007-11-20 15:36:24


program New;
{.include SRL/SRL.scar}

var
x, y: Integer;

procedure autoclicking;
begin
repeat
if(FindColor(x,y,color,coords,coords,coords,coords))then
begin
MMouse(x,y,0,0);
wait(100+random(50));
Mouse(x,y,0,0,true;
end;
until(InvFull)
end;

procedure Drop;
begin;
DropTo(2,28)
end;

begin
SetupSRL;
repeat
ReapeatClicking;
Drop;
Until(false);
end.

:)

R0b0t1

2007-11-20 17:20:35

Yes. X and Y used to be global in SRL. They removed that and now everything has its own local variables.