SA-MP Forums Archive
Player get kicked > Stats losed - 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)
+--- Thread: Player get kicked > Stats losed (/showthread.php?tid=484961)



Player get kicked > Stats losed - Blackazur - 02.01.2014

Hello, why is it on my gamemode so that my players get kicked and sometimes they lose their stats? Please say it me, its very important, and which script codes i should give you to fix it.


Re: Player get kicked > Stats losed - Konstantinos - 02.01.2014

When you kick/ban a player, it closes the server connection; hence it is not possible to get the player's data so it can save them. You can always save the player's data first and then kick them.


Re: Player get kicked > Stats losed - camaro8 - 02.01.2014

OnPlayerDisconnect callback


Re: Player get kicked > Stats losed - Raza2013 - 02.01.2014

Show the server logs