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

What is wrong with this script? (Short script)

IOwnAtRs

Newcomer
Joined
Jan 18, 2010
Sythe Gold
0
Messages
4
program New;

var
x,y: Integer;

const
BallColor= 0;//Set the color of the ball.

begin
if(FindColor(x,y,BallColor,109,80,700,429)) then
begin
repeat

getclientcanvas.Pen.Color := clRed;
getclientcanvas.MoveTo(80, 227);
getclientcanvas.LineTo(BallColor)
until(false);

end.



The error i am getting is
Line 17: [Error] (17:1): Invalid number of parameters in script C:\Users\xxx\Desktop\hh.scar

Line 17 is until(false); - the line just before end.
 
Well, I see you have two begins and only one end, so that is an unclosed parameter.
 
Yes, you should have a end; before the end..
Also, you have an infinite loop, which is never good...
 
i know this thread is dead, but your missing this big red thing :
getclientcanvas.LineTo(BallColor);
 
always add ; after each code to let the script recognize a new command
 
Runescape Gamblingrunescape gambling
Back
Top