looping through players...
PHP Code:
|
Re: looping through players...
When you declare iPlayers[32] all 32 cells contain the value 0.
Use: Code:
new iPlayers[32], iNum |
Re: looping through players...
That worked, thanks!
Final Outcome: PHP Code:
|
Re: looping through players...
new x ; declare the variable before the loop or with i : for ( new i = 0, x; ...
|
Re: looping through players...
Quote:
|
Re: looping through players...
You ask why ? Each var is zeroed. It's quite obvious to create one time the var before the loop instead of x times is more efficient. If you can, don't create var in a loop.
|
Re: looping through players...
Quote:
|
Re: looping through players...
Use "d" flags in get_players so you collect only bots.
PHP Code:
|
| All times are GMT -4. The time now is 22:03. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.