Finding 30% of Tax. (Maths.)
#2

pawn Код:
subtotal = benefits + rank + onlinebonus + faction;
taxtotal = subtotal / 100 * 30;
total =  subtotal-taxtotal;
You forgot one thing...

You could also use this:
pawn Код:
subtotal = benefits + rank + onlinebonus + faction;
total = subtotal / 100 * 70;
Or this:
pawn Код:
total = (benefits + rank + onlinebonus + faction) / 100 * 70;
Reply


Messages In This Thread
Finding 30% of Tax. (Maths.) - by Dokins - 07.03.2012, 20:02
Re: Finding 30% of Tax. (Maths.) - by CAR - 07.03.2012, 20:04
Re: Finding 30% of Tax. (Maths.) - by Hiddos - 07.03.2012, 20:06
Re: Finding 30% of Tax. (Maths.) - by Dokins - 07.03.2012, 20:08

Forum Jump:


Users browsing this thread: 1 Guest(s)