Whats wrong with this code?
#3

Код:
forward pAliveChecker();//this is a timer checking how many players are still alive...
public pAliveChecker()
{

    for(new i=0; i < MAX_PLAYERS; i++)
    {
        if((chainsawed[i] == 0))//if player is still in game
        {
            pLiving++;
        }
        if(pLiving > 1)//if there are more than 1 players alive 
        {
		pLiving = -1;//reset the variable
        }
        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;
            chainsawed[i] = 0;
            break; 
        }
    }
    return 1;
}
try this no garentee it will work but possible, pm if you want more help, ill be glad to help
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)