Delayed saving?
#3

Quote:
Originally Posted by Zonoya
Посмотреть сообщение
It's probably because you're trying to save for a specific playerid, and because you're waiting, by the time you run the saveaccount code, the player has already left the game, OnPlayerDisconnect is called just as they leave the server, if you have it wait, it the player has already gone, and thus, you can't really save his stats that way.
If you have everything you're saving stored it should work(assuming you are attempting to save using variables and not functions relying on the player being connected). You may have a IsPlayerConnected or such type check in the delayed timer, if so try removing it - though you need to make sure you aren't saving anything using function values(such as the player's position in the timer).
Reply


Messages In This Thread
Delayed saving? - by CrazyChoco - 30.08.2015, 21:42
Re: Delayed saving? - by Zonoya - 30.08.2015, 21:51
Re: Delayed saving? - by Abagail - 30.08.2015, 21:54
Re: Delayed saving? - by CrazyChoco - 30.08.2015, 21:55
Re: Delayed saving? - by Zonoya - 30.08.2015, 21:58
Re: Delayed saving? - by CodeStyle175 - 30.08.2015, 22:06
Re: Delayed saving? - by CrazyChoco - 30.08.2015, 22:09
Re: Delayed saving? - by CodeStyle175 - 30.08.2015, 22:10
Re: Delayed saving? - by CrazyChoco - 30.08.2015, 22:37

Forum Jump:


Users browsing this thread: 1 Guest(s)