Adblock breaks this site

What is wrong with this script? (Short script)

Discussion in 'Scar/Simba Help' started by IOwnAtRs, Jun 13, 2010.

  1. IOwnAtRs

    IOwnAtRs Newcomer

    Joined:
    Jan 18, 2010
    Posts:
    4
    Referrals:
    0
    Sythe Gold:
    0
    What is wrong with this script? (Short script)

    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.
     
  2. L4stExil3

    L4stExil3 Newcomer

    Joined:
    Sep 24, 2008
    Posts:
    10
    Referrals:
    0
    Sythe Gold:
    0
    What is wrong with this script? (Short script)

    Well, I see you have two begins and only one end, so that is an unclosed parameter.
     
  3. CXgamer

    CXgamer Newcomer

    Joined:
    Jul 18, 2008
    Posts:
    4
    Referrals:
    0
    Sythe Gold:
    0
    What is wrong with this script? (Short script)

    Yes, you should have a end; before the end..
    Also, you have an infinite loop, which is never good...
     
  4. bzzbzz

    bzzbzz Apprentice

    Joined:
    Feb 26, 2007
    Posts:
    852
    Referrals:
    1
    Sythe Gold:
    0
    What is wrong with this script? (Short script)

    i know this thread is dead, but your missing this big red thing :
    getclientcanvas.LineTo(BallColor);
     
  5. p0werpete

    p0werpete Member

    Joined:
    Aug 31, 2011
    Posts:
    26
    Referrals:
    0
    Sythe Gold:
    0
    What is wrong with this script? (Short script)

    always add ; after each code to let the script recognize a new command
     
< Scar Help on runescape =*( | -.- >


 
 
Adblock breaks this site