Line 4: [Error] (4:1): Semicolon (';') expected in script

Discussion in 'Scar/Simba Help' started by quickery, Sep 6, 2007.

Line 4: [Error] (4:1): Semicolon (';') expected in script
  1. Unread #1 - Sep 6, 2007 at 9:08 AM
  2. quickery
    Referrals:
    0

    quickery Guest

    Line 4: [Error] (4:1): Semicolon (';') expected in script

    what do i do wrong ? my script is just this :

    procedure Clicking;
    var x, y: Integer
    if (findcolor,4159857,x,y) then;
    begin;
    MoveMouseSmooth(x, y);
    Wait(1000);
    ClickMouse(x, y, false);
    end;

    begin
    Clicking;
    end.
     
  3. Unread #2 - Sep 6, 2007 at 4:39 PM
  4. Town
    Joined:
    Jan 21, 2007
    Posts:
    3,776
    Referrals:
    3
    Sythe Gold:
    5

    Town Grand Master
    Scar Programmers

    Line 4: [Error] (4:1): Semicolon (';') expected in script

    The FindColor parameters are "x, y, TheColor, X1, Y1, X2, Y2".
     
  5. Unread #3 - Sep 19, 2007 at 8:36 PM
  6. Jethr0x
    Joined:
    Jan 24, 2007
    Posts:
    3,070
    Referrals:
    13
    Sythe Gold:
    0

    Jethr0x Grand Master
    Banned

    Line 4: [Error] (4:1): Semicolon (';') expected in script

    Your code:
    Code:
    procedure Clicking;
    var x, y: Integer
    if (findcolor,4159857,x,y) then;
    begin;
    MoveMouseSmooth(x, y);
    Wait(1000);
    ClickMouse(x, y, false);
    end;
     
    begin
    Clicking;
    end.
    1st off, [var x, y : integer] needs a ";" after integer.

    heres how your code looks (cleaned by me)
    Code:
    Procedure Clicking;
     var x, y : integer;
      if(FindColor, 4159857, x, y) then
       begin
         MoveMouseSmooth(x, y)
         Wait(1000)
         ClickMouse(x, y, false)
       end;
    
     begin
      Clicking;
     end.
    now , as town said before, u have an invalid number of parameters in ur "Findcolor" line. fix that, and ur good to go :)
     
< Line 160: [Error] (12391:31): Unknown identifier 'BenMouse' in script | Scar... Of Course. >

Users viewing this thread
1 guest


 
 
Adblock breaks this site