Results 1 to 4 of 4

Thread: Help needed

  1. #1
    Join Date
    Mar 2007
    Posts
    1,223
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default Help needed

    hi guys...i really look forward to coming a professional top scripter...
    i keep getting this noob error about how there is no identifier x.....in my script?

    Program New;
    {.include SRL/SRL.scar}

    Const
    Color1=4344249;

    Procedure Colorclick;
    Begin
    SetupSRL;
    If(Findcolor(x, y, Color1, 1, 1, 600, 600))then
    mouse(x, y, 1, 1, true);
    End.



    can any1 fix this script up for me...(h)

  2. #2
    Join Date
    Feb 2007
    Location
    SparklesProd.com
    Posts
    2,406
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    x and y were taken out as global variables in srl4.

    just declare them again

    SCAR Code:
    Program New;
    {.include SRL/SRL.scar}

    Const
    Color1=4344249;

    var
    x,y : integer;

    Procedure Colorclick;
    Begin
    SetupSRL;
    If(Findcolor(x, y, Color1, 1, 1, 600, 600))then
    mouse(x, y, 1, 1, true);
    End.

  3. #3
    Join Date
    Mar 2007
    Posts
    1,223
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    sorry but now its saying semicolon expected end of script...

  4. #4
    Join Date
    Feb 2007
    Location
    SparklesProd.com
    Posts
    2,406
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Lol, my bad, didn't look at the script, just fixed your error.

    Here ya go.

    SCAR Code:
    Program New;
    {.include SRL/SRL.scar}

    Const
    Color1=4344249;

    var
    x,y : integer;

    Procedure Colorclick;
    Begin
    SetupSRL;
    If(Findcolor(x, y, Color1, 1, 1, 600, 600))then
    mouse(x, y, 1, 1, true);
    End;

    Begin
    Colorclick;
    End.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. eek. A little help needed:
    By malotthouse in forum OSR Help
    Replies: 4
    Last Post: 02-18-2008, 06:01 PM
  2. Help needed
    By faster789 in forum OSR Help
    Replies: 2
    Last Post: 09-30-2007, 03:11 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •