Results 1 to 4 of 4

Thread: scar confusin me...

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

    Default scar confusin me...

    So ive been looking at all the tuts and decided to try to start with the basics.

    so I keep getting error after error with my script and im wondering whats going on...Ive been following other scripts and guides on the forums but nothing seems to fix my errors. Anyways hered whats happened with what I got so far.



    program MyFirstWoodcutter;
    {.Include SRL\SRL.Scar}

    procedure cutter;
    begin
    movemouse(318,132);
    ClickMouse(318,132,true);
    end;
    end.

    Is this correct?





    errors I got: (I fixed the first 2, I think)

    Line 6: [Error] (16114:28): Invalid number of parameters in script
    Failed when compiling
    [Error] (16115:4): Semicolon (';') expected
    Failed when compiling
    [Error] (16116:4): Semicolon (';') expected
    Failed when compiling
    [Error] (16117:1): 'BEGIN' expected
    Failed when compiling
    [Error] (16117:1): 'BEGIN' expected



    BEGIN on line 1?

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

    Default

    If you read a beginner tutorial you should know how its the correct way:
    SCAR Code:
    program MyFirstWoodcutter;
    {.Include SRL\SRL.Scar}

    procedure cutter;
    begin
    {  movemouse(318,132);
      ClickMouse(318,132,true);}
    //replace this with:
      Mouse(318, 132, RandomnessX, RandomnessY, True);
    end;

    begin
      SetupSRL;
      cutter;
    end.

    No need to add SRL if you arent using it.


  3. #3
    Join Date
    Oct 2008
    Posts
    33
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Cazax View Post
    If you read a beginner tutorial you should know how its the correct way:
    SCAR Code:
    program MyFirstWoodcutter;
    {.Include SRL\SRL.Scar}

    procedure cutter;
    begin
    {  movemouse(318,132);
      ClickMouse(318,132,true);}
    //replace this with:
      Mouse(318, 132, RandomnessX, RandomnessY, True);
    end;

    begin
      SetupSRL;
      cutter;
    end.

    No need to add SRL if you arent using it.

    TYVM for responding so fast and ill need srl for the randoms I believe

  4. #4
    Join Date
    Jan 2008
    Location
    Ontario, Canada
    Posts
    7,805
    Mentioned
    5 Post(s)
    Quoted
    3 Post(s)

    Default

    You need srl in general. Trust me, its much easier to use the faster functions found in SRL.

    But, make sure your final procedure has no label, and is just a begin end. .
    Writing an SRL Member Application | [Updated] Pascal Scripting Statements
    My GitHub

    Progress Report:
    13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you 
                        have serious physchological problems
    13:46 <@BenLand100> HE GETS IT!
    13:46 <@BenLand100> HE FINALLY GETS IT!!!!1

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 15
    Last Post: 09-22-2008, 12:32 PM
  2. SCAR Divi 3.01 DONT associate .scar files!!!
    By chimpy in forum News and General
    Replies: 1
    Last Post: 04-21-2007, 08:49 PM
  3. Replies: 28
    Last Post: 06-22-2006, 04:27 PM

Posting Permissions

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