Now i use RoseCP 1.5 website it Ok everygood but players not show Online Count help me+++:native:
http://img237.imageshack.us/img237/828/onlineud6.th.jpg
http://5.124.183.112/
Printable View
Now i use RoseCP 1.5 website it Ok everygood but players not show Online Count help me+++:native:
http://img237.imageshack.us/img237/828/onlineud6.th.jpg
http://5.124.183.112/
// check total accounts
$connect = $link->dmysqlf($hostname,$username,$pass);
if ($connect) {
if (!$link->mydb($db)) { $valid->alert("Cant Connect to DB.. [Functions.php]"); }
$oq = $link->query("SELECT * from list_connected");
$online = mysql_num_rows($oq);
$query = $link->query("SELECT * from `accounts`");
$totalaccounts = mysql_num_rows($query);
$queryc = $link->query("SELECT * from `characters`");
$totalchars = mysql_num_rows($queryc);
$result = mysql_query("SELECT online FROM accounts WHERE online = '1'");
$results = mysql_num_rows($result);
} else { $valid->alert("Cant Connect to mysql [Functions.php]"); }
in functions.php replace from // check total to the }
Save
Enjoy
Thx man
I follow same you in functions.php replace from
// check total accounts
$connect = $link->dmysqlf($hostname,$username,$pass);
if ($connect) {
if (!$link->mydb($db)) { $valid->alert("Cant Connect to DB.. [Functions.php]"); }
$oq = $link->query("SELECT * from list_connected");
$online = mysql_num_rows($oq);
$query = $link->query("SELECT * from `accounts`");
$totalaccounts = mysql_num_rows($query);
$queryc = $link->query("SELECT * from `characters`");
$totalchars = mysql_num_rows($queryc);
$result = mysql_query("SELECT online FROM accounts WHERE online = '1'");
$results = mysql_num_rows($result);
} else { $valid->alert("Cant Connect to mysql [Functions.php]"); }
*BUT can't show players Online Count*
T__T
Now I change this line it ok Show player online
<br />Online Count: '.$Online. [old]
<br />Online Count: '.$results. [new]
Good work :P
hmm it didnt seem to work for a friend of mine
Just make sure he edited the proper lines This worked for me and you, should work for him.
yeah it worked :) we fixed it
Yeah it worked for me to, i was missing the part of
<br />Online Count: '.$Online. [old]
<br />Online Count: '.$results. [new]
Thats why it wasn't working for me either..
Sorry about that
didn't work for me =/