Problem with float
#1

so, i wanted to get players health and show it in 3dtext above his head. everything is fine besides health is always "0.000".

Код:
new Float:pHealth;
GetPlayerHealth(playerid, pHealth);
code below is in OnPlayerSpawn
Код:
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);
}
what's wrong with that?
Reply


Messages In This Thread
Problem with float - by lucamsx - 07.11.2015, 09:26
Re: Problem with float - by ikey07 - 07.11.2015, 09:43
Re: Problem with float - by lucamsx - 07.11.2015, 11:01
Re: Problem with float - by thefirestate - 07.11.2015, 11:07

Forum Jump:


Users browsing this thread: 1 Guest(s)