SRL Archive - OSR Help

I Need help with my first script...(BE AWARE IM A SUPER NOOB)


darkgod153

2012-08-24 18:04:30

Hello i have a problem with my script i try to run it but every time i use it with the rs client in browser it cant compile because of the (;) in begin???

program ratkiller;

procedure RatKillerPro;
var
x, y: Integer
begin//this is where i get the error"[Error] (7:1): Semicolon (';') expected at line 6 Compiling failed."
if FindColorSpiralTolerance(x, y, 3159351, 523, 108, 11, 438) or
FindColorSpiralTolerance(x, y, 4277060, 523, 108, 11, 438) then
begin
MoveMouse(x, y);
ClickMouse(x, y, 1);
Wait(100000);
end;
end;

begin
RatKillerPro;
end;

NKN

2012-08-24 18:07:05

Please don't post multiple topics.

Make the last end this:
 end.

You have a semicolon

darkgod153

2012-08-24 19:36:02

thanks for that i didnt notice but i still get the error…. and srry for the double post i dont know how to delete the other one

Peanuts

2012-08-24 22:03:05

When you get something like error"[Error] (7:1): Semicolon (';') expected at line 6 Compiling failed."

Look at the line above, below, around line 6.

It's telling you it thinks there should be a ; somewhere..

; belong at the end of most things.. ..

var
x, y: Integer

should be

var
x, y: Integer;