Quantcast
Channel: RaGEZONE - MMO Development Forums
Viewing all articles
Browse latest Browse all 34850

[Guide] Unique user counter fix

$
0
0
So.. a lot of you are having problems with your CMS not being able to show the online users, like so:

But it's actually pretty easy to fix, all you need to do is re-create the table and also provide a already inserted statistic.
So you just run the query like so:

Code:

DROP TABLE IF EXISTS `server_status`;
CREATE TABLE `server_status` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `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,
  `minutesuptime` int(11) NOT NULL,
  `userpeak` int(11) NOT NULL DEFAULT '0',
  `bannerdata` varchar(1000) NOT NULL DEFAULT '',
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1;

-- ----------------------------
-- Records of server_status
-- ----------------------------
INSERT INTO `server_status` VALUES ('1', '0', '0', '0', 'Pix Emulator 1.5.3.1', '1356115739', '0', '1358', '1475560359843233495044974443575040213937865174690474522012111:919786589880830913965328307050724427188645546907810192192323');

And that should do it, (:
Outcome:

I understand that this is quite easy to most people, but there are some "noobs" out there who needed this (:

Viewing all articles
Browse latest Browse all 34850

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>