View Single Post
mottzi
Veteran Member
Join Date: May 2010
Location: Switzerland
Old 11-08-2010 , 05:19   Re: Get Random TerroristId via get_players()
Reply With Quote #7

So this could also return 0.. but 0 isnt a valid player... what can i do?
PHP Code:
public getRandomCt()
{
    new 
players[32], pnum
    get_players
(playerspnum"ae""TERRORIST")
    
    new 
randomT players[random(pnum)]

__________________
Quote:
#define true ((rand() % 2)? true: false) //Happy debugging suckers

Last edited by mottzi; 11-08-2010 at 05:22.
mottzi is offline
Send a message via MSN to mottzi