How to get precents of a value?
#4

I'll give you an example:
pawn Код:
new moneys, percent;

moneys = GetPlayerMoney(playerid)
percent = (moneys * 15) / 100
That's how you calculate 15 percent. If you want 7 percent (for example), replace 15 with 7.
Reply


Messages In This Thread
How to get precents of a value? - by KfirRP - 14.08.2011, 18:45
Re: How to get precents of a value? - by PhoenixB - 14.08.2011, 18:48
Re: How to get precents of a value? - by swieberdevos - 14.08.2011, 18:51
Re: How to get precents of a value? - by antonio112 - 14.08.2011, 18:51
Re: How to get precents of a value? - by iPLEOMAX - 14.08.2011, 18:56
Re: How to get precents of a value? - by KfirRP - 14.08.2011, 19:54

Forum Jump:


Users browsing this thread: 1 Guest(s)