View Single Post
  #20  
Old 08-05-2011, 04:02 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by iBeatz View Post
For example:
PHP Code:
function onCreated() {
 for(
temp.pl : allplayers){ // Loops through all players on the server
  
temp.playerArray.add(temp.pl); // Adds players to the array
 
}
 
player.chat = temp.playerArray; // Displays the array via player chat
} 
Hope this helped, Gunderak.
Be careful when doing this. You're adding player objects to the array, not accounts, so you shouldn't try to represent them as a string like that (it may work, though).
__________________
Reply With Quote