Using percentages in Pawn
#2

To calculate the amount e.g.: u want 30% of player's money and player would had 1000$. that would be 300$ to calculate that. use 1000 / 100 * percent. its easy.
1000 / 100 = 10 x 30 = 300 aka 300$
Reply


Messages In This Thread
Using percentages in Pawn - by mrcoolballs - 24.03.2011, 12:21
Re: Using percentages in Pawn - by Mike_Peterson - 24.03.2011, 13:15

Forum Jump:


Users browsing this thread: 1 Guest(s)