How to save user data on crash? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How to save user data on crash? (
/showthread.php?tid=170519)
How to save user data on crash? -
martynas - 23.08.2010
Hi,
I have a small problem.... everything is allright ,but when player lost connection or crash the money ,car and something else doesnt save, how to make a script to save user data on crash? I'm using dini.
Thanks in advance
Re: How to save user data on crash? -
Retardedwolf - 23.08.2010
OnPlayerDisconnect runs when a player crashes too.
Re: How to save user data on crash? -
Hiddos - 23.08.2010
When a player crashes, the 'reason' variable under OnPlayerDisconnect is set to 0, meaning the player lost connection on an unusual way (The others being leaving (1) and getting kicked (2))