Setting offline cash
#6

I'm against using outdated INI methods when there are things like MySQL or SQLite. If you're bound to using this, you should simply get their stored score and add on to it. Example where newscore is the amount of score you want to add on (or subtract by having it a negative value).
pawn Code:
INI_WriteInt(ACCOUNT, INI_Int(ACCOUNT, "Score") + newscore);
Reply


Messages In This Thread
Setting offline cash - by 1fret - 20.06.2017, 10:21
Re: Setting offline cash - by ItzColaBoi - 20.06.2017, 10:23
Re: Setting offline cash - by Logic_ - 20.06.2017, 10:28
Re: Setting offline cash - by 1fret - 20.06.2017, 10:48
Re: Setting offline cash - by coool - 20.06.2017, 11:11
Re: Setting offline cash - by Abagail - 20.06.2017, 12:41
Re: Setting offline cash - by HoangNam - 20.06.2017, 14:52
Re: Setting offline cash - by 1fret - 20.06.2017, 14:58

Forum Jump:


Users browsing this thread: 1 Guest(s)