13.01.2017, 09:21
That code isn't related to your problem.
Your problem lies in OnPlayerConnect, where you LOAD the data, not saving in OnPlayerDisconnect.
Show us OnPlayerConnect, or whatever you use (callback or function after logging in) to load your data when a player connects to your server.
Your problem lies in OnPlayerConnect, where you LOAD the data, not saving in OnPlayerDisconnect.
Show us OnPlayerConnect, or whatever you use (callback or function after logging in) to load your data when a player connects to your server.