Returning incorrect tax amount. (SS)
#1

pawn Код:
new tax = CalculateTax(totalpay, WageTaxPercentage);
    taxtotal = totalpay - tax;
pawn Код:
format(string, sizeof(string), "Total Tax Deduction at %.1f%%%%: $%d (Money Transferred to your bank account)",WageTaxPercentage, AddCommas(taxtotal));//line to display
    SendClientMessage(playerid, 0xFFFF90FF, string);
pawn Код:
CalculateTax(amount, Float:percentage)
    return (amount / 100) * (_:percentage);
Issue is it's returning incorrect calculation, check screenshot!
Reply


Messages In This Thread
Returning incorrect tax amount. (SS) - by Dokins - 01.05.2014, 22:21
Re: Returning incorrect tax amount. (SS) - by PinEvil - 01.05.2014, 22:24
Re: Returning incorrect tax amount. (SS) - by Dokins - 01.05.2014, 22:28
Re: Returning incorrect tax amount. (SS) - by Patrick - 02.05.2014, 18:11
Re: Returning incorrect tax amount. (SS) - by Dokins - 02.05.2014, 23:07

Forum Jump:


Users browsing this thread: 1 Guest(s)