Position's saver problem - 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: Position's saver problem (
/showthread.php?tid=570037)
Position's saver problem -
DarkLouis - 04.04.2015
Hi, I have a problem.
I scripted a position's saver in Y_INI and it work nice but, sometimes, it don't save.
I put save function in OnPlayerDisconnect but now I'm reading at this
Код HTML:
Some functions might not work correctly when used in this callback because the player is already disconnected when the callback is called. This means that you can't get unambiguous information from functions like GetPlayerIP and GetPlayerPos.
(
https://sampwiki.blast.hk/wiki/OnPlayerDisconnect)
How to fix this problem?
I tried with a timer but the server lag too much.
Re : Position's saver problem -
FilesMAker - 04.04.2015
make GetPlayerPosition on the top of OnPlayerDisconnect, to get the position before players data are lost ! but I think to get that data is just game of luck you must take it before with a timer! That what I can say.
Re: Position's saver problem -
SequenceCuz - 05.04.2015
learn from another gamemode
Should try!@