Nty Life Posted February 17, 2012 Share Posted February 17, 2012 (edited) 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 February 17, 2012 by Nty Life Quote Link to comment Share on other sites More sharing options...
sjesper Posted February 17, 2012 Share Posted February 17, 2012 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] Quote Link to comment Share on other sites More sharing options...
Nty Life Posted February 17, 2012 Author Share Posted February 17, 2012 Thank you very much. Quote Link to comment Share on other sites More sharing options...