07.11.2015, 09:26
so, i wanted to get players health and show it in 3dtext above his head. everything is fine besides health is always "0.000".
code below is in OnPlayerSpawn
what's wrong with that?
Код:
new Float:pHealth; GetPlayerHealth(playerid, pHealth);
Код:
if(strcmp(name,"nickname",true) == 0) { format(stc,sizeof(stc),"\n\n\n{EDEDED}%s\n{B322BD}(Gang Member)\n{FFFFFF}HP: %.0f",name, pHealth); Update3DTextLabelText(PlayerLabel[playerid], 0xFFFFFFFF, stc); }