30.08.2015, 21:42
Hey Guys,
I was just wondering about something I just scripted. I wanted to make a delayed saveaccount (don't ask why) which saved 250 ms after player disconnected from server. But somehow, it didn't save any of the player stats even when the timer was called in OnPlayerDisconnect.
Anyhow, then I moved the saveaccount feature to onplayerdisconnect, and now it does save.
My question: How come, I can't save accounts with a delay on disconnect, but only when player disconnected without any delays.
I was just wondering about something I just scripted. I wanted to make a delayed saveaccount (don't ask why) which saved 250 ms after player disconnected from server. But somehow, it didn't save any of the player stats even when the timer was called in OnPlayerDisconnect.
Anyhow, then I moved the saveaccount feature to onplayerdisconnect, and now it does save.
My question: How come, I can't save accounts with a delay on disconnect, but only when player disconnected without any delays.