20.06.2014, 08:55
I made a new float called health and i made a command to display your health. When I do that command it gives me huge numbers. What shall I do ? I made the format with %i
new string[128], float:Health;
GetPlayerHealth(playerid, Health);
format(string,sizeof(string),"Your current health is %0.0f",Health);
SendClientMessage(playerid, 0xFFFFFFFF, string);
new string[35], Float:Health;
GetPlayerHealth(playerid, Health);
format(string, sizeof(string), "Your current health is %0.2f", Health);
SendClientMessage(playerid, -1, string);