Position's saver problem
#1

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.
Reply
#2

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.
Reply
#3

learn from another gamemode

Should try!@
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)