Just can't come out. please help
#1

Hey guys. I'm stuck at my bank interest script with payday.
I'm now making things that I've never done before. Yes I used the search function.It didn't helped really.

this line:
pawn Код:
bank[i] += bank[i]/100*0.1;
is making me rich in one time. Like when I have 1000 on my bank, It will raise to 12992598 or something.

And it has to raise to 1001.

Please help
Reply
#2

Dont powerup to 0.1, because 0.1 is float, but money is just usual decimal.

Use
bank[i] += floatround(float(bank[i])*0.1);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)