need fast help!! loop issue!!
#3

A few things could be improved upon as well

pawn Код:
forward pAliveChecker( );
public pAliveChecker( )
{
    new
        Float:health;
    for( new i; i < MAX_PLAYERS; ++i )
    {
        // samp has internal checks to see if players are connected
        // no reason to have an array of health values if they are never compared
        if ( GetPlayerHealth( i, health ) && health > 0 )
        {
            ChainsawEnder( );
            break;
        }
    }
    return 1;
}
Reply


Messages In This Thread
need fast help!! loop issue!! - by BlackWolf120 - 03.04.2011, 01:19
Re: need fast help!! loop issue!! - by Miguel - 03.04.2011, 02:26
Re: need fast help!! loop issue!! - by bigcomfycouch - 03.04.2011, 02:36
Re: need fast help!! loop issue!! - by BlackWolf120 - 03.04.2011, 19:01

Forum Jump:


Users browsing this thread: 1 Guest(s)