Whats wrong with this code?
#4

try this
pawn Код:
public pAliveChecker()
{

    for(new i=0; i < MAX_PLAYERS; i++)
    {
        if((chainsawed[i] == 0))pLiving++;
    }
    if(pLiving > 1)pLiving = -1;//reset the variable
    else if(pLiving == 1 || pLiving == 0)//if only 1 player is alive or if server is empty
    {
        ChainsawEnder();//this is a stock that ends the round and changes the map...
        KillTimer(pAliveTimerKill);
        pLiving = 0;
        for(new i=0; i < MAX_PLAYERS; i++)chainsawed[i] = 0;
        }
    }
    return 1;
}
Reply


Messages In This Thread
Whats wrong with this code? - by BlackWolf120 - 08.04.2011, 21:48
Re: Whats wrong with this code? - by [OC]Zero - 08.04.2011, 22:20
Re: Whats wrong with this code? - by chrism11 - 09.04.2011, 05:13
Re: Whats wrong with this code? - by (SF)Noobanatior - 09.04.2011, 05:21
Re: Whats wrong with this code? - by BlackWolf120 - 10.04.2011, 18:27
Re: Whats wrong with this code? - by Finn - 10.04.2011, 18:43
Re: Whats wrong with this code? - by BlackWolf120 - 10.04.2011, 19:47

Forum Jump:


Users browsing this thread: 1 Guest(s)