SA-MP Forums Archive
Money. - 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)
+--- Thread: Money. (/showthread.php?tid=362740)



Money. - TaLhA XIV - 25.07.2012

I used y_ini to save money but I have a problem that if the money increases it saves but when the money decreases it does not save.Like if i have 200 and one gave me 100.It would save as 300 but if i have 200 and I spent money till the money get's 100.And when I will relog the money are 300.


Re: Money. - Kindred - 25.07.2012

Show us your code, we can't help you without it.

One weird way this may be happening is if you for some reason made a variable with money, and didn't do anything with it unless you decrease money, in which the variable adds the number, and then when it saves, you add the number on-top of your other cash.


Re: Money. - DeathOnaStick - 25.07.2012

You need to change a '>' or '<' into a '!=' somewhere, but I cannot tell you where, unless you show us your source code.

That would be my suggestion.