Results 1 to 3 of 3

Thread: player array

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

    Default player array

    hi , sorry for the newby question , but in a script , i have to enter my players array ... its like this

    // <-------------------------------------------->
    // Fill in the Player array right here
    // <-------------------------------------------->

    i was just wondering what do i right here.... could someone give me a proper example like if theres numbers or signs before the stuff you have to enter etc etc.. hope you can help me

  2. #2
    Join Date
    Sep 2007
    Posts
    415
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ok...well for each player there will always be

    SCAR Code:
    players[number].name
    players[number].password
    players[number].nick
    players[number].active
    so for the name, type the name in the '', and same for the password, the nick is two or three letters from the players name, say for 'zezima' it would be 'ezi', and then for active, set to true or false whether or not to use the player
    Quote Originally Posted by That guy that wrote forefeathers
    <munklez>haha im too lazy, girls annoy me
    <munklez> they always wanna like, do stuff
    <munklez> and i just wanna program
    <munklez> and they always take all my money

  3. #3
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    Try using this, Its basic.

    SCAR Code:
    procedure DeclarePlayers;
    begin
      Disguise('SRL - Forms- Index...');

      HowManyPlayers := 1;
      NumberOfPlayers(HowManyPlayers);
      CurrentPlayer := 0;

      Players[0].Name := 'hfyrhd';
      Players[0].Pass := 'passt';
      Players[0].Active := True;
      Players[0].Integers[0] := 1

    end;

    No need for
    SCAR Code:
    Players[0].Nick:= '';
    because SRL automatically sets the Nick TPA.
    Hope i helped

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Player not found in player array?quikchat?
    By jerrysyron in forum OSR Help
    Replies: 2
    Last Post: 08-01-2008, 12:44 AM
  2. the new srl 4 player array
    By RudeBoiAlex in forum OSR Help
    Replies: 10
    Last Post: 08-23-2007, 09:53 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
  •