20.07.2013, 18:08
Quote:
If I log out, it saves. If I reset the server then log back in, it resets it to 0.00000!
|
Edit:
It seems like on every players, the data is being written. So what if the file for the player isn't yet created? Like if a player isn't registered, normally they don't set files. If you're also doing the same thing, I suggest you to declare a variable and pass the function only if player is registered or has a player file under 'OnPlayerDisconnect' callback.