Mysql problems - 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: Mysql problems (
/showthread.php?tid=651742)
Mysql problems -
DeX24 - 26.03.2018
Hey !
I have some problems with mysql on my server...
My database saves the money when i quit from the server..and all the informations but when i join the game again..i have 0 money every time but the other things like admin..vip,they work.
The only problem is that the money is reseting to 0 every time i enter the server,in mysql it works perfectly..i dont know why,please help !
Thanks.
Re: Mysql problems -
Grim_ - 26.03.2018
My best guess would be you either reset the player's money after logging in or spawning, or you have an anticheat which isn't giving the money to the player.
Can you post some code so we can help you out?
Re: Mysql problems -
Grim_ - 26.03.2018
In MySQL_Login you never actually give them their money, you just load it into the array.
pawn Код:
GivePlayerMoney(playerid, pInfo[playerid][pMoney]);
Add this where you set the score (SetPlayerScore)
Re: Mysql problems -
DeX24 - 26.03.2018
omg,i'm an idiot,thanks !