Results 1 to 6 of 6

Thread: Error with my script -.-.

  1. #1
    Join Date
    Mar 2007
    Location
    In your computer
    Posts
    244
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Error with my script -.-.

    I get this error in my script:

    Line 4: [Error] (14754:1): Duplicate identifier 'x' in script

    And here is the script i started.

    SCAR Code:
    program PieShafter;
    {.include SRL/SRL.Scar}
    var
    x,y: Integer;
    Procedure CutTreeAndShaft;
    begin
    if FindColor(x,y,2252880,0,0,500,500)then
    MMouse(x,y,3,3,true);
    begin
    end;
    begin
    SetupSRL;
    CutTreeAndShaft;
    end.

    Help anyone? If there can be any other errors can u check it?

  2. #2
    Join Date
    Jun 2006
    Posts
    3,861
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    SCAR Code:
    program PieShafter;
    {.include SRL/SRL.Scar}

    Procedure CutTreeAndShaft;
    begin
      if FindColor(x,y,2252880,0,0,500,500)then
        MMouse(x,y,3,3,true);
    end;

    begin
      SetupSRL;
      CutTreeAndShaft;
    end.
    SRL already has x and y in it

  3. #3
    Join Date
    May 2007
    Location
    baltimore, md
    Posts
    836
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    u put MMouse(x,y,1,1,true) it should be Mouse(x,y,1,1,true)
    Mouse clicks MMouse just moves

  4. #4
    Join Date
    Mar 2007
    Location
    In your computer
    Posts
    244
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Line 9: [Error] (14759:1): Identifier expected in script now i get this error -.-help?

  5. #5
    Join Date
    Jun 2006
    Posts
    3,861
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    SCAR Code:
    program PieShafter;
    {.include SRL/SRL.Scar}

    Procedure CutTreeAndShaft;
    begin
      if FindColor(x,y,2252880,0,0,500,500)then
        MMouse(x,y,3,3);
    end;

    begin
      SetupSRL;
      CutTreeAndShaft;
    end.

  6. #6
    Join Date
    May 2006
    Posts
    1,230
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    use MMX1, MMY1, MMX2, MMY2 for the rs main screen coordinates.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Line 135: [Error] (14845:1): Syntax error in script
    By AbsTrACt'^.| in forum OSR Help
    Replies: 16
    Last Post: 05-23-2008, 01:14 PM
  2. Replies: 5
    Last Post: 02-26-2008, 04:14 PM
  3. Error: Cannot Fix Script - Error Overgrowth - Begin Headdesking
    By PhantasmalScripter in forum OSR Help
    Replies: 6
    Last Post: 12-23-2006, 12:50 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
  •