Results 1 to 7 of 7

Thread: Help with player login

  1. #1
    Join Date
    Oct 2006
    Location
    H0M3
    Posts
    142
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Help with player login

    right hers the problem in a nutshell

    i am currently in the process of making a guild fisher. and i get:
    SRL Compiled in 0 msec
    [Runtime Error] : Out Of Range in line 323 in script C:\Program Files\SCAR 3.15\includes\SRL/SRL/Core/Login.scar

    Heres the code so far.

    SCAR Code:
    program Apx900GuildFisher;
    {.include SRL/SRL.scar}
    {.include SRL/SRL/Misc/arrayLoader.scar}


    Var
    x,y,Shark,harpoon,Lobster,LobsterPot:integer;



    Procedure DeclarePlayers;
    begin
      Players[0].Name:= '************'; // Your Autoer username
      Players[0].Pass:= '--------'; // Password ....
      Players[0].Nick:= '-----'; // 3-4 letters of your name, no capitals
      Players[0].Pin:= '7624'; // Bank pin, if any
      Players[0].Integers[0]:= 300; // Max minutes one full inventory can take
      Players[0].Integers[1]:= 20000; // Max milliseconds for one fish
      Players[0].Integers[2]:= 10000; // Full inventories to do
      Players[0].Active:= True; // No touchy, this will keep guy working
    end;


    {*******************************************************************************
    procedure DeclareDTMs;
    Description: Makes the DTMs available for use.
    *******************************************************************************}

    Procedure DeclareDTMs;
    begin
      Shark := DTMFromString('78DA6314656060106040014D15E5609A11CA6' +
           '7E40512ACA86AEA2BAB51D570020961543593DB3B51D5F0010929' +
           '543569B171A86AA481043FAA9AF6DA1A54352033380998230F242' +
           '451D594E7E7A2AA91C374736B7515A6DF7950D5349696A2AAE102' +
           '1262A86AE64C9A88A20600D1840FBF');

      Harpoon := DTMFromString('78DA631464606010624001A1F65C0C3C409A1' +
           '188FF0301A33490C182AA262331014C3342F98C9C40421E554D7E' +
           '302FAA1A2E202185AA26DB9F07558D2890604555535D5C84AA460' +
           '648B0A3AA898B08C7748F3401F780AC964355E360C08EA20600B8' +
           '250C41');

      Lobster := DTMFromString('78DA631461606010604001B56EF20C3C409A1' +
           '188FF0301A33490C18AAAA6C841064C3342F98CA240421A554DB3' +
           '9702AA1A3620214A408D189010435553EA248BAA8603480813304' +
           '7024888A3AA69F090C7B48B07554DBB8F228A1A00A6790C66');

      LobsterPot:=  DTMFromString('78DA631464606010604001F9DEBC609A11CA6' +
           '7E403122CA86A4C94D950D57000096E5435AEFA1CA86A405A4451' +
           'D5781B71A2AA91C4744FA40D17AA1A21202145C0CD62408295805' +
           'D20B708A1AA69282BC374B3300135FC404284801A31C2760100E4' +
           '720B35');

    end;





    Procedure MainLoop;
    begin
    SetupSrl;
    if not LoggedIn then LoginPlayer;
    end;

    Begin
    mainloop;
    end.

  2. #2
    Join Date
    Oct 2007
    Location
    Denmark
    Posts
    409
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    Procedure DeclarePlayers;
    begin
      HowManyPlayers := 3;
      NumberOfPlayers(HowManyPlayers);
      CurrentPlayer := 0;
     
      Players[0].Name:= '************'; // Your Autoer username
      Players[0].Pass:= '--------'; // Password ....
      Players[0].Nick:= '-----'; // 3-4 letters of your name, no capitals
      Players[0].Pin:= '7624'; // Bank pin, if any
      Players[0].Integers[0]:= 300; // Max minutes one full inventory can take
      Players[0].Integers[1]:= 20000; // Max milliseconds for one fish
      Players[0].Integers[2]:= 10000; // Full inventories to do
      Players[0].Active:= True; // No touchy, this will keep guy working
    end;

  3. #3
    Join Date
    Dec 2007
    Location
    192.168.1.73
    Posts
    2,439
    Mentioned
    6 Post(s)
    Quoted
    119 Post(s)

    Default

    Just to let you know what Frt did, basically you need to confirm the amount of players, otherwise SCAR doesn't know the maximum amount of players, and returns a runtime error.

  4. #4
    Join Date
    Oct 2006
    Location
    H0M3
    Posts
    142
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    still getting
    although its going a lill bit further by setting up sound and graphics option

    SRL Compiled in 0 msec
    [Runtime Error] : Out Of Range in line 323 in script C:\Program Files\SCAR 3.15\includes\SRL/SRL/Core/Login.scar

  5. #5
    Join Date
    Dec 2007
    Location
    192.168.1.73
    Posts
    2,439
    Mentioned
    6 Post(s)
    Quoted
    119 Post(s)

    Default

    That will be because Frt put it as though theres 3 players, you only have 1 so change it to 1.

  6. #6
    Join Date
    Oct 2006
    Location
    H0M3
    Posts
    142
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    Procedure DeclarePlayers;
    begin
      HowManyPlayers := 1;
      NumberOfPlayers(HowManyPlayers);
      CurrentPlayer := 0;

      Players[0].Name:= '*****'; // Your Autoer username
      Players[0].Pass:= '*****'; // Password ....
      Players[0].Nick:= '*****'; // 3-4 letters of your name, no capitals
      Players[0].Pin:= ''; // Bank pin, if any
      Players[0].Integers[0]:= 300; // Max minutes one full inventory can take
      Players[0].Integers[1]:= 20000; // Max milliseconds for one fish
      Players[0].Integers[2]:= 10000; // Full inventories to do
      Players[0].Active:= True; // No touchy, this will keep guy working
    end;

    dats wat i got

  7. #7
    Join Date
    Oct 2006
    Location
    H0M3
    Posts
    142
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Dont worry i finally got it to work. close / delete topic. +rep to both of u

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
  •