Right Callback for Updating Money?
#1

I'm making a TDM script with MySql. I have Money as player's stat and its stored in MySql table. I've scripted a Stats saving function which is called under OnPlayerDisconnect. Its alright when player leaves the game. But when player timesout, OnPlayerDisconnect isnt called and stats arent updated. I dont want to call that function in OnPlayerUpdate 'cause its just a single stat 'Money' and it doesnt needs to be updated so often and i believe it would be buggy and would consume more processing. So is there any other callback or any other way i can save stats after some time or when player timesout?

Any help would be appreciated.
Reply


Messages In This Thread
Right Callback for Updating Money? - by Minion - 22.07.2012, 09:21
Re: Right Callback for Updating Money? - by Rudy_ - 22.07.2012, 09:24
Re: Right Callback for Updating Money? - by Kindred - 22.07.2012, 09:25
Re: Right Callback for Updating Money? - by Rudy_ - 22.07.2012, 09:26
Re: Right Callback for Updating Money? - by Kindred - 22.07.2012, 09:28
Re: Right Callback for Updating Money? - by Vince - 22.07.2012, 09:39
Re: Right Callback for Updating Money? - by Minion - 22.07.2012, 11:10

Forum Jump:


Users browsing this thread: 1 Guest(s)