Help interests
#1

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...
Reply
#2

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;
Reply
#3

amount/100*wantedpercent gives you the amount in "wantedpercent" percentage.

example; bank/100*2 will return 2 percent of your bank.
Reply
#4

pInfo[playerid][Bank]/100*0.01
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)