GetPlayerHealth bugged?
#1

Hello 4 every1.
Want to ask one thing. Is in GetPlayerHealth func some bug?


Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
	Account[playerid][Health] -= amount;
	SetPlayerHealth(playerid,Account[playerid][Health]);
	new Float:health;
	printf("HP in Acc %f",Account[playerid][Health]);
	GetPlayerHealth(playerid,health);
	printf("HP in HPBar %f",health);
Ok, now watch where is the problem:
I set 100 hp, try to jump from any building and I have in console right "HP in acc" (e.g. 89.4712), but "HP in HPBar" still showing 100. Why?
--
Sorry for poor english.
Reply


Messages In This Thread
GetPlayerHealth bugged? - by BloodyRP - 21.04.2016, 12:33
Re: GetPlayerHealth bugged? - by AdrianG - 21.04.2016, 13:03
Re: GetPlayerHealth bugged? - by BloodyRP - 21.04.2016, 13:08
Re: GetPlayerHealth bugged? - by AdrianG - 21.04.2016, 14:09

Forum Jump:


Users browsing this thread: 1 Guest(s)