Raised This Month: $ Target: $400
 0% 

Storing players in Array


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Mlk27
Veteran Member
Join Date: May 2008
Old 02-17-2009 , 08:25   Storing players in Array
Reply With Quote #1

Sorry for another newbie question. I'm trying store info in array which will contain id's of all players that *for example* has health below 50. The array size must reflects the numbers of current ids added in it.

Can you show how to do this? Adding/remove info into/from the array and count the array size etc..eg when 2 players have health below 50, add their ids to the array and when their health no long below 50, remove their id from the array..

Last edited by Mlk27; 02-17-2009 at 09:06. Reason: Better description
Mlk27 is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:52.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode