Results 1 to 3 of 3

Thread: Declare Players

  1. #1
    Join Date
    Dec 2006
    Location
    Florida
    Posts
    18
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Declare Players

    I can't seem to understand how DeclarePlayers works.
    I've setup up the player arrays like every guide says but it never logs me in.
    Code:
    procedure DeclarePlayers; 
    begin
     
      HowManyPlayers:= 1;             
      CurrentPlayer:= 0;            
      NumberOfPlayers(HowManyPlayers); 
     
     
      Players[0].Name := '';             
      Players[0].Pass := '';         
      Players[0].Nick := '';            
      Players[0].Active := True; 
    end;
    I also tried
    Code:
    SRLPlayerForm(true, [], [], [], []);
    and i get the form, but i click start and save and it doesn't log me in either. Is there some command line like
    Code:
    Login;
    or something?
    Also, I'm not so sure i have SRL 4 #16 downloaded correctly, people say make sure your includes folder is setup right, but i can't find anyone actually saying what it looks like i have includes/SRL/SRL/(core,misc,skill) i think i remember hearing that core should be 1 more up or something i don't know can someone help? Ty

  2. #2
    Join Date
    Apr 2007
    Location
    Perth, Australia
    Posts
    3,926
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    You need to include SRL first of all like this:
    SCAR Code:
    program New;
    {.include SRL/SRL.scar}

    //rest of your script here

    Then to log in your players you can use SRL's LoginPlayer procedure:

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

    procedure DeclarePlayers;
    begin
    //blah blah
    end;

    begin
      SetupSRL;  //You need this when you run scripts that use SRL.
      DeclarePlayers; //Loads the procedure above.
      LoginPlayer; //Logs in the first player that you declared above (Players[0]).
    end.

    EDIT: To setup the SvN to download SRL:
    http://www.villavu.com/forum/showthread.php?t=17890

    That should explain what you need to download and install and what you need to do to get the latest SRL.

  3. #3
    Join Date
    Dec 2006
    Location
    Florida
    Posts
    18
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ty i have everything setup completely all i needed was the LoginPlayer i couldn't find that newhere.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. declare players
    By i 69 ur nan in forum OSR Help
    Replies: 3
    Last Post: 01-06-2009, 07:14 PM
  2. Need Help on declare players.
    By Raskolnikov in forum OSR Help
    Replies: 2
    Last Post: 11-16-2007, 11:02 PM
  3. Declare players?
    By ironlarreh in forum OSR Help
    Replies: 3
    Last Post: 11-12-2007, 09:55 PM
  4. I need help with the declare players bit.
    By BobboHobbo in forum OSR Help
    Replies: 2
    Last Post: 06-05-2007, 11:45 AM

Posting Permissions

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