Whats the difference?
#3

try this and find out yourself:

pawn Код:
public OnPlayerSpawn(playerid)
{
     new
          Float: gHP,
          string[32]
     ;
     GetPlayerHealth(playerid, gHP);
     format(string, sizeof(string), "HP: %f %.2f", gHP, gHP);
     SendClientMessage(playerid, ~1, string);
     return 1;
}
if your hp is 99,5949123 '%f' will print you 99,5949... otherwise %.2f will print you 99,59.

^ posted in the same time, heehe
Reply


Messages In This Thread
Whats the difference? - by Joshb93 - 26.11.2011, 15:55
Re: Whats the difference? - by blewert - 26.11.2011, 16:07
Re: Whats the difference? - by fordawinzz - 26.11.2011, 16:08
Re: Whats the difference? - by TheArcher - 26.11.2011, 16:09
Re: Whats the difference? - by Joshb93 - 26.11.2011, 16:11
Re: Whats the difference? - by TheArcher - 26.11.2011, 16:13
Re: Whats the difference? - by blewert - 26.11.2011, 16:22

Forum Jump:


Users browsing this thread: 1 Guest(s)