This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Showing results 1 to 2 of 2
Search took 0.01 seconds.
Search: Posts Made By: Bugsy
Forum: Scripting Help 04-16-2024, 20:36
Replies: 20
Views: 1,466
Posted By Bugsy
Re: Choosing a random player

No, random(7) = {0,1,2,3,4,5,6}


This is fine as you are not using the random number as the player index, you are using it as an index to the iPlayers array, which get_players() fills with all...
Forum: Scripting Help 04-16-2024, 10:24
Replies: 20
Views: 1,466
Posted By Bugsy
Re: Choosing a random player

new iPlayers[ 32 ] , iNum , iRandom;
get_players( iPlayers , iNum );

if ( iNum )
{
iRandom = iPlayers [ random( iNum ) ];
}
Showing results 1 to 2 of 2

 
Forum Jump

All times are GMT -4. The time now is 03:30.


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