10.03.2013, 11:28
I've scripted a mask command and I have a question
It looks like this above a player: HP:100.0000000 Armour 100:0000000
How to change it to HP:100 Armour 100?
Quote:
public OnPlayerUpdate(playerid) { if(UsingMask[playerid]==1) { new string[124]; new Float:armour; GetPlayerArmour(playerid, armour); new Float:health; GetPlayerHealth(playerid,health); format(string,sizeof(string), "HP:%0.f Armour:%0.f",health ,armour ); new Text3D:label = Create3DTextLabel(string, COLOR_GREY, 30.0, 40.0, 45.0, 40.0, 0); Attach3DTextLabelToPlayer(label, playerid, 0.0, 0.0, 0.1); } return 1; } |
How to change it to HP:100 Armour 100?