Results 1 to 3 of 3

Thread: help please?

  1. #1
    Join Date
    Oct 2008
    Posts
    90
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default help please?

    program New;


    {.include SRL/SRL.scar}
    {.include SRL/SRL/SKILL/smithing.scar}

    var
    x,y,z,a,mark,talked,antibans,totaltalks:integer;
    mithdtm,coaldtm,ironDTM,testDTM:integer;


    procedure clearvar;
    begin
    setupsrl
    Wait (5000)
    MakeCompass('N');
    a:=0;
    end;


    procedure 1stwalk;
    begin
    Setupsrl;
    Wait(1000)
    MMouse(670, 31, 5, 5);
    Wait(1000 + Random(50));
    Mouse(670, 31, 5, 5, True);
    Wait(3000 + Random(1000))
    end;




    procedure AntiBan;
    begin
    HoverSkill('Smithing', False);
    end;






    begin
    clearvar;
    1stwalk;
    AntiBan;




    end.


    getting error:

    Failed when compiling
    Line 21: [Error] (16515:12): Identifier expected in script

    dont know why?

  2. #2
    Join Date
    Nov 2007
    Location
    Chile
    Posts
    1,901
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You cannot start a procedure/function name with any number, you must have them between letters or at the end.


  3. #3
    Join Date
    Feb 2007
    Location
    Estonia.
    Posts
    1,938
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    SCAR Code:
    program New;
    {.include SRL/SRL.scar}
    {.include SRL/SRL/SKILL/smithing.scar}

    var
      a: Integer;

    procedure ClearVar;
    begin
      SetupSrl;
      Wait(5000);
      // It's "Wait("  not  "Wait ("
      MakeCompass('N'); //You missed some semicolons from end of the line. :)
      a := 0;
    end;

    procedure FirstWalk; // Don't use numbers in procedure names.
    begin
      // You don't need another SRL.
      Wait(1000);
      MMouse(670, 31, 5, 5);
      Wait(1000 + Random(50));
      Mouse(670, 31, 5, 5, True);
      Wait(3000 + Random(1000));
    end;

    procedure AntiBan;
    begin
      HoverSkill('Smithing', False);
    end;

    begin
      ClearVar;
      Firstwalk; //Change it here, too.
      AntiBan;
    end.
    ~Eerik~

Thread Information

Users Browsing this Thread

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

Posting Permissions

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