Posts: 104
Threads: 37
Joined: Jul 2010
Reputation:
0
Hi,
Help me to make save when player crashes...
Like when player play i make server restart and when he connects after restart there is first money and xp which you get when register...
Thanks in advance
Posts: 2,628
Threads: 32
Joined: Apr 2007
Reputation:
0
Read up tutorials on dini, there are lots of them.
Posts: 104
Threads: 37
Joined: Jul 2010
Reputation:
0
but there is no tut about how to save data when server crashes...
OnPlayerDisconnect with cases it doesn't work... When i kill server over Putty everything gone for players..
Posts: 2,628
Threads: 32
Joined: Apr 2007
Reputation:
0
The player is still disconnected when the server restarts, so OnPlayerDisconnect will be called.
There is probably something wrong elsewhere in your script.
Posts: 104
Threads: 37
Joined: Jul 2010
Reputation:
0
where it could be the error ?
Posts: 2,628
Threads: 32
Joined: Apr 2007
Reputation:
0
Show us your code, and we might be able to help.
Posts: 104
Threads: 37
Joined: Jul 2010
Reputation:
0
on player disconnect there are 3 cases lost connection disconnect or kick
when i make my save code on playerdisconnect it works when people press esc and press disconnect or exit anyway when i kill my server process on linux everything gone for people if people stand on save pickup and then i kill process for them save's all money and xp until the time they stand on save pickup after save pickup money wich they get after save gone...