when ever i put in the procedure name it says i need a semi colon on like 9. But when i dont have the procedure name it runs fine.
var
x,y: Integer;
const
MonkColor = 4081328;
procedure clickmonk
begin
if(FindColor(x,y,MonkColor,0,0,700,700)) then
begin
MoveMouseSmoothEx(x,y +random(0),20,40,45,25,20);
Wait(100+random(10));
ClickMouse(x,y,true);
end;
end.
this is when it doesnt work
var
x,y: Integer;
const
MonkColor = 4081328;
begin
if(FindColor(x,y,MonkColor,0,0,700,700)) then
begin
MoveMouseSmoothEx(x,y +random(0),20,40,45,25,20);
Wait(100+random(10));
ClickMouse(x,y,true);
end;
end.
this is when it does work
can someone plz tell me why it wont let me put the procedure in
