Help | Checking Winner timer doesn't work.
#1

Код:
public OnActiveStartedWinnerChecking()
{
	if(activestart && activeplayers == 1)
	{
	    SendFormatMessageToAll(color_orange, message, "~ SAWN ~");
		for(new i; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i) && player[i][joinACT])
		{
		    SendFormatMessageToAll(color_white, message, "!%s has won", getname[i]);
		    SpawnPlayer(i);
		    GivePlayerMoney(i, activeamout);
		}
	    SendFormatMessageToAll(color_orange, message, "~ SAWN ~");
	    OnActiveStatusStop();
	}
}
Why it isn't work?
Sometimes it's make crash, and sometime it write, "! has won" (doesn't write name)

PLEASE HELP! i think there's problem with the
Код:
for(..)
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)