21.04.2016, 12:33
Hello 4 every1.
Want to ask one thing. Is in GetPlayerHealth func some bug?
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.
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);
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.


