working with rates
#6

pawn Код:
new Float:Health;
GetPlayerHealth(playerid, Health);
format(string, 128, "This is your percentage of health: %.0f%%",Health);
So 100.0 health equals 100 percent health, if you have 120 itll say 120 percent.

Its dead simple actually, just show the current health with a percent sign behind it.
Reply


Messages In This Thread
working with rates - by thuron - 16.10.2009, 15:32
Re: working with rates - by Peter_Corneile - 17.10.2009, 15:22
Re: working with rates - by thuron - 17.10.2009, 15:26
Re: working with rates - by thuron - 17.10.2009, 17:19
Re: working with rates - by thuron - 19.10.2009, 10:27
Re: working with rates - by Think - 19.10.2009, 13:30
Re: working with rates - by thuron - 19.10.2009, 14:53
Re: working with rates - by [nl]daplayer - 20.10.2009, 08:17
Re: working with rates - by Think - 20.10.2009, 09:24
Re: working with rates - by thuron - 20.10.2009, 13:35

Forum Jump:


Users browsing this thread: 1 Guest(s)