Mysql problems
#1

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.
Reply
#2

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?
Reply
#3

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)
Reply
#4

omg,i'm an idiot,thanks !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)