Onplayerdeath
#7

Quote:
Originally Posted by gamer931215
Посмотреть сообщение
@airsoft

pawn Код:
//Player Update
public OnPlayerUpdate(playerid)
{
SetTimer("HealthCheck",2000,true);
return 1;
}
Should be on

pawn Код:
OnGameModeInit()
{
    SetTimer("HealthCheck",2000,true);
    return 0;
}
You only need to set the timer once (not even per player, because it does already have a loop), and OnPlayerUpdate is called hundreds of timers per second which means an overkill of timers (aka crashes or HUUUUUGE lag).
Lol i fail...

I f o r g o t t h a t
Reply


Messages In This Thread
Onplayerdeath - by Bam23 - 28.03.2011, 18:51
Re: Onplayerdeath - by Skylar Paul - 28.03.2011, 20:33
Re: Onplayerdeath - by WackoX - 28.03.2011, 20:36
Re: Onplayerdeath - by Skylar Paul - 28.03.2011, 20:41
Re: Onplayerdeath - by airsoft - 28.03.2011, 20:45
Re: Onplayerdeath - by gamer931215 - 28.03.2011, 20:53
Re: Onplayerdeath - by airsoft - 29.03.2011, 20:43

Forum Jump:


Users browsing this thread: 3 Guest(s)