25.09.2012, 21:28
i want to mention that dividing any number by another number smaller than 1, results in multiplying by a large number:
A=1 / 0.07
where 0.07, as divisor, is the same as using a multiplier of 14.2
A=1 * 14.2
so change
to
or incase you want the base amount including taxes, then simply add the 100 percent base as 1.00 added to the tax rate float:
... this way you avoid a "divsion by zero" error when (if?) your taxes are set to 0
A=1 / 0.07
where 0.07, as divisor, is the same as using a multiplier of 14.2
A=1 * 14.2
so change
pawn Код:
tax = plStats [ u ] [ LumberjackWage ] + plStats [ u ] [ QuarryworkerWage ] / 0.07,
pawn Код:
tax = plStats [ u ] [ LumberjackWage ] + plStats [ u ] [ QuarryworkerWage ] * 0.07,
pawn Код:
tax = plStats [ u ] [ LumberjackWage ] + plStats [ u ] [ QuarryworkerWage ] * 1.07,