SRL Archive - Help

what is wrong with this bit of code?


tristen8878

2013-01-20 04:48:25

procedure swingrope;
begin
if(FindColorSpiralTolerance(x, y, 662817, MSX1, MSY1, MSX2, MSY2, 5))then
begin
mmouse(x,y, 5, 5);
if UpText:= ['wing', 'ope', 'rope'];
ClickMouse2(True);
if not DidRedClick then
begin
swingrope;
end else
wait(RandomRange(6000,7000));
end;
end;

It says I need a then in the uptext line but I've put one and nothing happens still get the error.

riwu

2013-01-20 05:06:35


if UpText:= ['wing', 'ope', 'rope'];
It should be

if WaitUpTextMulti(['wing', 'ope', 'rope'], 400) then

Also you may need a begin and end to enclose the whole conditional statment.

tristen8878

2013-01-20 05:10:10

From: riwu

if UpText:= ['wing', 'ope', 'rope'];
It should be

if WaitUpTextMulti(['wing', 'ope', 'rope'], 400) then

Also you may need a begin and end to enclose the whole conditional statment.


Thanks it worked.