Hey.
I'm having some issues with my online users count, it switches from 0 to the correct amount of players online whenever I refresh or go to another page. It shows 0 more often than the actual amount online.
Any tips on how to fix this?
Fixed it after doing some research here!
Had to delete server_status table and query:
CREATE TABLE IF NOT EXISTS `server_status` (
`status` enum('0','1','2') NOT NULL DEFAULT '0',
`users_online` int(11) NOT NULL DEFAULT '0',
`rooms_loaded` int(11) NOT NULL DEFAULT '0',
`server_ver` text NOT NULL,
`stamp` double NOT NULL,
`userpeak` int(11) NOT NULL DEFAULT '0'
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
I'm having some issues with my online users count, it switches from 0 to the correct amount of players online whenever I refresh or go to another page. It shows 0 more often than the actual amount online.
Any tips on how to fix this?
Post automatically merged:
Fixed it after doing some research here!
Had to delete server_status table and query:
CREATE TABLE IF NOT EXISTS `server_status` (
`status` enum('0','1','2') NOT NULL DEFAULT '0',
`users_online` int(11) NOT NULL DEFAULT '0',
`rooms_loaded` int(11) NOT NULL DEFAULT '0',
`server_ver` text NOT NULL,
`stamp` double NOT NULL,
`userpeak` int(11) NOT NULL DEFAULT '0'
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
Last edited: