What is wrong with this script? (Short script)

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

What is wrong with this script? (Short script)
  1. Unread #1 - Jun 13, 2010 at 11:14 AM
  2. IOwnAtRs
    Joined:
    Jan 18, 2010
    Posts:
    4
    Referrals:
    0
    Sythe Gold:
    0

    IOwnAtRs Newcomer

    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.
     
  3. Unread #2 - Jun 27, 2010 at 6:55 AM
  4. L4stExil3
    Joined:
    Sep 24, 2008
    Posts:
    10
    Referrals:
    0
    Sythe Gold:
    0

    L4stExil3 Newcomer

    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.
     
  5. Unread #3 - Jun 28, 2010 at 8:31 AM
  6. CXgamer
    Joined:
    Jul 18, 2008
    Posts:
    4
    Referrals:
    0
    Sythe Gold:
    0

    CXgamer Newcomer

    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...
     
  7. Unread #4 - Dec 18, 2010 at 5:09 AM
  8. bzzbzz
    Joined:
    Feb 26, 2007
    Posts:
    852
    Referrals:
    1
    Sythe Gold:
    0

    bzzbzz Apprentice

    What is wrong with this script? (Short script)

    i know this thread is dead, but your missing this big red thing :
    getclientcanvas.LineTo(BallColor);
     
  9. Unread #5 - Aug 31, 2011 at 3:32 PM
  10. p0werpete
    Joined:
    Aug 31, 2011
    Posts:
    26
    Referrals:
    0
    Sythe Gold:
    0

    p0werpete Member

    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 =*( | -.- >

Users viewing this thread
1 guest


 
 
Adblock breaks this site