Help interests - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help interests (
/showthread.php?tid=232903)
Help interests -
-•♥♠♦♣-•Arshavin•-♥♠♦♣•- - 28.02.2011
Hello, guys i dunno if someone could help but for ex: in payday check i want him to get 0.1% + on his money bank as interests could someone help me?
Arshavin,
Thanksbb...
AW: Help interests -
Nero_3D - 28.02.2011
thats 5. class maths or blow ...
lets say BankMoney[playerid] is the money on the bank
Than we do (numskulls explanation
)
[Mike Garber's post I saw that I made it for 10% not for 0.1%, should be fixed now)
pawn Код:
BankMoney[playerid] = (BankMoney[playerid] * 0.01) + BankMoney[playerid];
which is
pawn Код:
BankMoney[playerid] = BankMoney[playerid] * 1.01;
and that is
pawn Код:
BankMoney[playerid] *= 1.01;
Re: Help interests -
Mike Garber - 28.02.2011
amount/100*wantedpercent gives you the amount in "wantedpercent" percentage.
example; bank/100*2 will return 2 percent of your bank.
Re: Help interests -
-•♥♠♦♣-•Arshavin•-♥♠♦♣•- - 04.03.2011
pInfo[playerid][Bank]/100*0.01