[Help] Online Count

Status
Not open for further replies.
Experienced Elementalist
Joined
Aug 6, 2006
Messages
212
Reaction score
1
Now i use RoseCP 1.5 website it Ok everygood but players not show Online Count help me+++:native:

markmark - [Help] Online Count - RaGEZONE Forums


 
Re: Online Count

Now i use RoseCP 1.5 website it Ok everygood but players not show Online Count help me+++:native:




// 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]
 
Last edited:
Re: Online Count

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..
 
Status
Not open for further replies.
Back