Konsigliare Posted April 30, 2010 Posted April 30, 2010 Basically there's a sneaky line in control.php that deletes players after being offline for a set amount of time. I've deleted mine and can't remember what line or what how often it deletes, but it is near the top of control.php Took me several weeks before I realised why they disappeared :( Quote
Danny696 Posted May 1, 2010 Posted May 1, 2010 Find and delete: $result = mysql_query("SELECT * FROM `grpgusers` ORDER BY `lastactive` DESC"); while($line = mysql_fetch_array($result, MYSQL_ASSOC)) { $secondsago = time()-$line['lastactive']; if ($secondsago > 2592000) { $user_online = new User($line['id']); $result2 = mysql_query("DELETE FROM `grpgusers` WHERE `id`='".$user_online->id."'"); } } Quote
Konsigliare Posted May 1, 2010 Author Posted May 1, 2010 Find and delete: $result = mysql_query("SELECT * FROM `grpgusers` ORDER BY `lastactive` DESC"); while($line = mysql_fetch_array($result, MYSQL_ASSOC)) { $secondsago = time()-$line['lastactive']; if ($secondsago > 2592000) { $user_online = new User($line['id']); $result2 = mysql_query("DELETE FROM `grpgusers` WHERE `id`='".$user_online->id."'"); } } That's what it is, thanks for posting. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.