Saving players stats on changes or in timer? [MySQL]
#12

Quote:
Originally Posted by TheToretto
View Post
Well your server isn\'t going to crash the whole day, just add a command for the server owner to save all players\' stats. Without kicking them or calling OnPlayerDisconnect, then... Shutdown your server;


If your server is really really unstable, just put a global timer, not per player, which saves players data every 20 minutes, or less. Who give a fuck if you lose 10$ because you bought a condom in the 24/7, I mean, you won\'t lose much data, you can\'t get $2.000.000 in 10/20 minutes...
Lottery.



Regarding the topic:

I would create a ten minute timer after the player logs in and also update the database whenever it\'s necessary.

i.e. The player unlocked an achievement. Or he got into a new job. Or he wins the lottery.
Reply


Messages In This Thread
Saving players stats on changes or in timer? [MySQL] - by GospodinX - 21.10.2018, 14:28
Re: Saving players stats on changes or in timer? [MySQL] - by KinderClans - 22.10.2018, 15:04
Re: Saving players stats on changes or in timer? [MySQL] - by Dignity - 22.10.2018, 16:15
Re: Saving players stats on changes or in timer? [MySQL] - by DaniceMcHarley - 22.10.2018, 16:17
Re: Saving players stats on changes or in timer? [MySQL] - by Garr - 30.10.2018, 18:07
Re: Saving players stats on changes or in timer? [MySQL] - by BlackBank - 31.10.2018, 00:10
Re: Saving players stats on changes or in timer? [MySQL] - by TheToretto - 31.10.2018, 00:13
Re: Saving players stats on changes or in timer? [MySQL] - by BlackBank - 31.10.2018, 00:18
Re: Saving players stats on changes or in timer? [MySQL] - by TheToretto - 31.10.2018, 00:35
Re: Saving players stats on changes or in timer? [MySQL] - by BlackBank - 31.10.2018, 00:39
Re: Saving players stats on changes or in timer? [MySQL] - by TheToretto - 31.10.2018, 09:26
Re: Saving players stats on changes or in timer? [MySQL] - by Ermanhaut - 02.11.2018, 10:47
Re: Saving players stats on changes or in timer? [MySQL] - by TheToretto - 02.11.2018, 10:55
Re: Saving players stats on changes or in timer? [MySQL] - by AmigaBlizzard - 02.11.2018, 11:32
Re: Saving players stats on changes or in timer? [MySQL] - by IdonTmiss - 07.11.2018, 11:48
Re: Saving players stats on changes or in timer? [MySQL] - by Gammix - 12.11.2018, 22:56
Re: Saving players stats on changes or in timer? [MySQL] - by Alteh - 13.11.2018, 19:01
Re: Saving players stats on changes or in timer? [MySQL] - by DRIFT_HUNTER - 16.11.2018, 01:21

Forum Jump:


Users browsing this thread: 1 Guest(s)