[not a bug and fixed]OnPlayerUpdate in samp0.3a
#1

Код:
forward ...
new...

public OnPlayerHealthChange(playerid, Float:newhealth, Float:oldhealth)
{
  do something lots...
}
public OnPlayerUpdate(playerid) 
{
	if(IsPlayerConnected(playerid))
	{
		GetPlayerHealth(playerid, iNewPlayerHealth[playerid]);
		if(iNewPlayerHealth[playerid] != iPlayerHealth[playerid])
		{
		  OnPlayerHealthChange(playerid, iNewPlayerHealth[playerid], iPlayerHealth[playerid]);
		  iPlayerHealth[playerid] = iNewPlayerHealth[playerid];
		}
	}
}
then in game all the players' movement do not appear
and cant see their run,fight,aiming etc....
Reply


Messages In This Thread
[not a bug and fixed]OnPlayerUpdate in samp0.3a - by oicq747285250 - 04.12.2009, 13:01
Re: OnPlayerUpdate in samp0.3a - by Balon - 04.12.2009, 13:02
Re: OnPlayerUpdate in samp0.3a - by oicq747285250 - 04.12.2009, 13:12

Forum Jump:


Users browsing this thread: 1 Guest(s)