Timer help
#1

I was playing around making a death system but why isn't this working at all?

Код:
 public DeathTimer(playerid)
{
   
	if(PlayerInfo[playerid][pDead] == 1)
	{
	if(PlayerInfo[playerid][pDeadTimer] == 0)
	{
	SpawnPlayer(playerid);
	PlayerInfo[playerid][pDead] = 0;
	}
	else
	{
	PlayerInfo[playerid][pDeadTimer]--;
	new string[128];
	format(string,sizeof(string),"You have %d seconds left", PlayerInfo[playerid][pDeadTimer]);
	SendClientMessage(i, COLOR_WHITE, string);
	}
	}
	
	SetTimer("DeathTimer", 1000, true);
}
Reply


Messages In This Thread
Timer help - by Colossus874 - 24.02.2013, 15:36
Re: Timer help - by DaRk_RaiN - 24.02.2013, 15:47
Re: Timer help - by Colossus874 - 24.02.2013, 16:25

Forum Jump:


Users browsing this thread: 1 Guest(s)