Jump to content
Nty Life

Semicolon compile error

Recommended Posts

Sorry i'm really new to this, starting out making some scripts on a runescape private server

I've got a part of my script:

procedure Prayers;
begin
if (GetColor(725, 344)= 7185335) then
end
else;
begin
 movewindmouseex (709, 185, 1, 1, 20)
 clickmouse(709, 185, true)     //prayer tab
 wait(800)
 movewindmouseex (720, 333, 1, 1, 20)
 clickmouse(720, 333, true)             //protect melee
 wait(800)
 movewindmouseex (572, 370, 1, 1, 20)
 clickmouse(572, 370, true)          //eagle eye
end;

I get a compiling error on the line that says "else;" saying "Semicolon (;) expected".

Anyone know what i have done wrong? Thanks in advance.

Edited by Nty Life
Link to comment
Share on other sites

That is because you dont have a then begin after the GetColor. Begin is needed to make an end else begin:

 


procedure Prayers;
begin
if (GetColor(725, 344)= 7185335) then begin
end else
begin
movewindmouseex (709, 185, 1, 1, 20)
clickmouse(709, 185, true) //prayer tab
wait(800)
movewindmouseex (720, 333, 1, 1, 20)
clickmouse(720, 333, true) //protect melee
wait(800)
movewindmouseex (572, 370, 1, 1, 20)
clickmouse(572, 370, true) //eagle eye
end;
end;
[/Code]

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
  • Create New...