How to: percent from a number
#4

Quote:
Originally Posted by AndreiWow
Посмотреть сообщение
I don't know how to do it in pawn....

x/100*60 = my variable stage.. would be but I don't know how to make pawn find the x number.
First of all, you have to think of where you are going to do the calculations. Maybe you would want to make a percentage function which you could use where ever you want. Or maybe you would just want to make a script which would calculate the percentage in a command.

When you think of the place where you want to create it, you just make a simple code like this one:

Код:
new percentagenumber, number;

percentagenumber=number/100*60;
Reply


Messages In This Thread
How to: percent from a number - by AndreiWow - 18.02.2017, 21:11
Re: How to: percent from a number - by Unte99 - 18.02.2017, 21:16
Re: How to: percent from a number - by AndreiWow - 18.02.2017, 21:19
Re: How to: percent from a number - by Unte99 - 18.02.2017, 21:30
Re: How to: percent from a number - by Macronix - 18.02.2017, 21:36
Re: How to: percent from a number - by Freaksken - 18.02.2017, 21:44
Re: How to: percent from a number - by iamjems - 19.02.2017, 00:41

Forum Jump:


Users browsing this thread: 1 Guest(s)