View Single Post
aron9forever
Veteran Member
Join Date: Feb 2013
Location: Rromania
Old 02-25-2018 , 06:43   Re: Dealing with server/plugin crash
Reply With Quote #8

well first, you're probably going to want to update to amxmodx 1.8.3 and use the new client_disconnected() instead of _disconnect, which does not get called in a very few special cases of dropped players


then, you might also add a periodic check, such as, once every 2 minutes, check the database for all players that have
WHERE join_time > leave_time (in the case of timestamps, this would only happen if a player joined but hasn't left yet, all valid data should have join_time <= leave_time assuming players can't time travel), if you find any, check if they are still on the server, if not, write the new leave_time


not sure if the logic is sound but I just gave it a minute of thinking and this is what my first approach would be
__________________
Meanwhile, in 2050:
Quote:
Originally Posted by aron9forever
useless small optimizations
Quote:
Originally Posted by Black Rose View Post
On a map that is 512x512x128 units you end up with 3,355,443,200,000 different "positions". To store each one of those positions individually in the variable "user_or" you need 12 terabytes of memory.

Last edited by aron9forever; 02-25-2018 at 06:43.
aron9forever is offline