• Log in or sign up for an account here: https://www.sythe.org/login

Line 4: [Error] (4:1): Semicolon (';') expected in script

  • Thread starter Thread starter quickery
  • Start date Start date
Q

quickery

Guest
what do i do wrong ? my script is just this :

procedure Clicking;
var x, y: Integer
if (findcolor,4159857,x,y) then;
begin;
MoveMouseSmooth(x, y);
Wait(1000);
ClickMouse(x, y, false);
end;

begin
Clicking;
end.
 
The FindColor parameters are "x, y, TheColor, X1, Y1, X2, Y2".
 
Your code:
Code:
procedure Clicking;
var x, y: Integer
if (findcolor,4159857,x,y) then;
begin;
MoveMouseSmooth(x, y);
Wait(1000);
ClickMouse(x, y, false);
end;
 
begin
Clicking;
end.

1st off, [var x, y : integer] needs a ";" after integer.

heres how your code looks (cleaned by me)
Code:
Procedure Clicking;
 var x, y : integer;
  if(FindColor, 4159857, x, y) then
   begin
     MoveMouseSmooth(x, y)
     Wait(1000)
     ClickMouse(x, y, false)
   end;

 begin
  Clicking;
 end.

now , as town said before, u have an invalid number of parameters in ur "Findcolor" line. fix that, and ur good to go :)
 
Runescape Gamblingrunescape gambling
Back
Top