Setting offline cash
#8

Quote:
Originally Posted by Abagail
View Post
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);
I dont know where i went wrong but that coding crashes my pawno, also im just starting to learn about MySQL and SQLite...

PHP Code:
 INI_WriteInt(ACCOUNTINI_Int(ACCOUNT"Score") + amount); 
I think this is why the pawno crashes

PHP Code:
 INI_WriteInt(ACCOUNTINI_Int(ACCOUNT
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)