04.04.2015, 21:53
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
(https://sampwiki.blast.hk/wiki/OnPlayerDisconnect)
How to fix this problem?
I tried with a timer but the server lag too much.
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.
How to fix this problem?
I tried with a timer but the server lag too much.