Results 1 to 4 of 4

Thread: Adding Players to Array

  1. #1
    Join Date
    Jan 2007
    Location
    Skaville, Jamaica
    Posts
    1,117
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Adding Players to Array

    Hello,
    I was wondering, and I'm not so good w/ arrays, but how can I add players to an array. For instance. My army is made up of 8 players. Wizzup's Essence Miner only accommodates 6. What will I have to change in the script, besides copying and pasting the extra players in the array?

    Ty so much guys!
    IEJB

  2. #2
    Join Date
    Dec 2006
    Location
    Ky
    Posts
    390
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Just add new player(s) to the array like so..

    SCAR Code:
    Players[x].Name :='';
    Players[x].Pass :='';
    Players[x].Nick :='';
    Players[x].Active :=false;

    Where x would be the player number. Also if there are variables for each player be sure to add those to. That should be all you need to do.
    SUMMER BREAK be back when I want to

  3. #3
    Join Date
    Oct 2006
    Location
    Ireland
    Posts
    855
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    nothing I don't think.. just update the players[number] and thats all.

  4. #4
    Join Date
    Jan 2007
    Location
    Skaville, Jamaica
    Posts
    1,117
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ohh..Ok, I thought there was more farther down. Thanks!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Players array error.
    By Sanjuro in forum OSR Help
    Replies: 2
    Last Post: 10-02-2008, 01:19 AM
  2. Help with players array
    By Macrosoft in forum OSR Help
    Replies: 2
    Last Post: 09-27-2007, 02:43 AM
  3. Adding to Declare Players?
    By wtf i sp4nk in forum OSR Help
    Replies: 14
    Last Post: 02-22-2007, 12:31 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
  •