Money Rain Help!
#4

PHP код:
new icountpool_size GetPlayerPoolSize();
for (
0<= pool_sizei++)
{
    if (
IsPlayerConnected(i))
        
count++;
}
amount /= count;
for (
0<= pool_sizei++)
{
    
// No need to use IsPlayerConnected ONLY IF you're only using natives
    // Because they do not get called if the player isn't online
    
GivePlayerMoney(iamount);

It would be more efficient if you use foreach/y_iterate instead.
You replace that with this:
PHP код:
amount /= Iter_Count(Player);
foreach (new 
Player)
{
    
GivePlayerMoney(iamount);

Reply


Messages In This Thread
Money Rain Help! - by danish007 - 22.08.2016, 20:32
Re: Money Rain Help! - by WhiteGhost - 22.08.2016, 20:40
Re: Money Rain Help! - by Shinja - 22.08.2016, 20:41
Re: Money Rain Help! - by Stinged - 22.08.2016, 20:46
Re: Money Rain Help! - by danish007 - 23.08.2016, 07:25

Forum Jump:


Users browsing this thread: 1 Guest(s)