Results 1 to 4 of 4

Thread: srl or smart not working

  1. #1
    Join Date
    Mar 2009
    Posts
    38
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Angry srl or smart not working

    i use srl/srl.scar
    i use smart and every thing esle that is used in it but when i play the script login.scar it doesnt understand DeclareOfPlayers(1);

  2. #2
    Join Date
    Mar 2009
    Posts
    38
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default this wat it saying

    Failed when compiling
    Line 25: [Error] (25:1): Unknown identifier 'NumberOfPlayers' in script C:\Program Files\SCAR 3.15\Scripts\openrunescape.scar

    script is for opening broswer and loging u in to runescape

  3. #3
    Join Date
    Feb 2009
    Location
    Philipines
    Posts
    600
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    program opensrunescape;

    {.Include SRL/SRL/Misc/Smart.Scar}
    {.Include SRL/SRL.Scar}


    procedure opensrunescape;
    begin
    clickmouse (39, 343,true);
    clickmouse (39, 343,true);
    wait (20000);
    clickmouse (543, 74,true);
    sendkeys ('runescape.com');
    wait (5000);
    clickmouse (741, 68,true);
    wait (10000);
    clickmouse (435, 755,true);
    end;

    procedure DeclarePlayers;
    begin
     NumberOfPlayers(1);
     CurrentPlayer :=0

     Players[0].Name:= '';  //username
     Players[0].Pass:= '';  //password
     Players[0].Nick:= '';  //3-4 letters of username
     Players[0].Active:= True;
    end;

    begin
    SetupSRL;//this is before opensrunescape;
    opensrunescape;
    LoginPlayer;
    end.

    It is

    SCAR Code:
    {.Include SRL/SRL.Scar}

    not

    SCAR Code:
    {.Includes SRL/SRL.Scar}

    and put

    SCAR Code:
    {.Include SRL/SRL/Misc.Scar}

    before

    SCAR Code:
    {.Include SRL/SRL.Scar}

    Do not double post use the edit button
    Last edited by Dark Arcana; 04-10-2009 at 03:00 AM.

  4. #4
    Join Date
    Mar 2009
    Location
    Ireland
    Posts
    111
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    and since your not using smart at all, you really shouldn't include it...

    It will just give uneeded errors!

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
  •