Adblock breaks this site

Semicolon error

Discussion in 'Scar/Simba Help' started by xfuzzy chaos, Feb 20, 2008.

  1. xfuzzy chaos

    xfuzzy chaos Guest

    Referrals:
    0
    Semicolon error

    Ok i have the latest version of SCAR and srl 4 but whenever i try to run a script i get this: Line 4: [Error] (4:1): Semicolon (';') expected in script.
    But var is on that line and i didnt think that you needed a semicolon on that. it also says this on lines that alredy have the semicolon.

    anyone know how to fix this?
     
  2. cazax

    cazax Forum Addict

    Joined:
    Nov 13, 2007
    Posts:
    457
    Referrals:
    0
    Sythe Gold:
    0
    Semicolon error

    Post the line.
     
  3. Xjaa

    Xjaa Penguin
    $100 USD Donor

    Joined:
    Jan 21, 2007
    Posts:
    3,248
    Referrals:
    2
    Sythe Gold:
    0
    Lawrence Potamus
    Semicolon error

    be sure to use (w/e)_;

    _ =space
     
  4. TDD

    TDD Web Design Expert
    Do Not Trade

    Joined:
    Nov 20, 2005
    Posts:
    3,191
    Referrals:
    2
    Sythe Gold:
    0
    Semicolon error

    var yourfaggynamehere:variabletype; anotherfaggyname:variabletype;

    etc.
     
  5. Xjaa

    Xjaa Penguin
    $100 USD Donor

    Joined:
    Jan 21, 2007
    Posts:
    3,248
    Referrals:
    2
    Sythe Gold:
    0
    Lawrence Potamus
    Semicolon error

    different lines?
     
  6. TDD

    TDD Web Design Expert
    Do Not Trade

    Joined:
    Nov 20, 2005
    Posts:
    3,191
    Referrals:
    2
    Sythe Gold:
    0
    Semicolon error

    doesn't need to, the semicolon signifys the end of the line, so it considers the next part to be another var declaration.
     
  7. cazax

    cazax Forum Addict

    Joined:
    Nov 13, 2007
    Posts:
    457
    Referrals:
    0
    Sythe Gold:
    0
    Semicolon error

    But for neater var you have to separate them:
     
  8. Xjaa

    Xjaa Penguin
    $100 USD Donor

    Joined:
    Jan 21, 2007
    Posts:
    3,248
    Referrals:
    2
    Sythe Gold:
    0
    Lawrence Potamus
    Semicolon error

    yeah, Generally neater is better

    Code:
    begin
     begin
      begin
      end
     end
    end
     
  9. TDD

    TDD Web Design Expert
    Do Not Trade

    Joined:
    Nov 20, 2005
    Posts:
    3,191
    Referrals:
    2
    Sythe Gold:
    0
    Semicolon error

    neatness is bullshit, if you can't understand some code by reading it, you shouldn't be coding.

    Code:
    var begin begin
    codingshithere
    end end end.
     
  10. redsk8r

    redsk8r Guest

    Referrals:
    0
    Semicolon error

    ive never got a scar script to work..
     
  11. leorules123

    leorules123 Guest

    Referrals:
    0
    Semicolon error

    Plz figure out my script

    Here is the error:

    Line 23: [Error] (23:1): Semicolon (';') expected in script C:\Program Files\SCAR 3.15\Scripts\My Autoers\AutoRunecrafter.scar

    Here is the script:

    program AutoRunecrafter;

    var
    x,y: Integer;

    const
    ShopKeeperColor = 2836585;

    procedure ClickEss;

    begin

    MoveMouse(577,229);
    Wait(300);
    ClickMouse(577,229,true);

    end;
    procedure UseEssWithShopKeeper;

    begin

    22.if(FindColor(x,y,ShopKeeperColor,0+random(10000),0+random(10000),0+random(10000),0+random(10000))) then;
    23.MoveMouse(x,y+random(10000),0+random(10000),0+random(10000),0+random(10000),0+random(10000),0+random(10000);
    24.Wait(300);
    25.ClickMouse(x,y,true);

    end.

    //to be finished//
     
< Draynor WCer Help | How To Use the MakeCompass Function >


 
 
Adblock breaks this site