11.12.2012, 18:46
(
Последний раз редактировалось CoaPsyFactor; 11.12.2012 в 18:56.
Причина: Solved
)
Код:
Hi there, I have this little problem, you can see in code what is script supposed to do.But from some reason Percentage is 0 always, I've tried to printf that and when I try to calculate (money / 100) * Taxes it returns 0 for float and for int.pawn Код:stock BusinessGiveMoney(businessid, money){ if(businessid == 1) return BusinessInfos[businessid][bAccount] += money; new Percentage = floatround((money / 100) * Taxes); BusinessInfos[businessid][bAccount] += (money - Percentage); BusinessInfos[1][bAccount] += Percentage; return true;}
BusinessGiveMoney(3, 40);