Problems with MySQL data saving
#1

Hello. I have a problem with saving player data on a MySQL based system when I use the 'gmx' command. If I set it to save everything when you type the gmx command and I have the autosave at OnPlayerDisconnect too it will just set all the data in the MySQL table to '0'. If I remove what it`s scripted at OnPlayerDisconnect it will save correctly, but I won`t be able to save the data if a player exits normally or it gets kicked/crash. If I only leave the script at OnPlayerDisconnect it will still reset the data.

So, the only way I can actually do it, without losing the script at OnPlayerDisconnect (which is absolutely neccesarry) it`s to take each player, save the data, kick the player and when all the players are handled to restart the gamemode. This way it won`t reset the data, but it`s quite too much trouble for the players, if you have to do many restarts. So, any other idea??
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)