Posts: 217
Threads: 26
Joined: Oct 2011
Reputation:
0
19.03.2012, 19:02
(
Последний раз редактировалось ryansheilds; 19.03.2012 в 20:02.
Причина: Fxied
)
FIXED! - I rewrote the code.
Posts: 582
Threads: 18
Joined: Jul 2010
Reputation:
0
Important Note: The function that should be called, must be public, meaning it has to be forwarded.
Posts: 217
Threads: 26
Joined: Oct 2011
Reputation:
0
Changed it to a public but still doesn't save them.
You really don't need to save it frequently. Only save data when player disconnects which occurs on OnPlayerDisconnect callback.
Posts: 217
Threads: 26
Joined: Oct 2011
Reputation:
0
It saves OnPlayerDisconnect, but if the server crashes or some kind of problem occurs that causes OnPlayerDisconnect not to be called all the player stats will be lost - although the timer doesn't necessarily need to be every 13 seconds.