Jump to content

Question

Posted

hello maxcheaters! anyone know this engine stress web 8+ http://cs-la2.ru/engine/download.php?id=52

 

i have install this to my domain everything is allright.servers online it's showing.but it's don't showing online players count! can you help me?

 

 

 

sorry for english!

2 answers to this question

Recommended Posts

  • 0
Posted

try that script

<?php include "config/stats.php" ?>
<?php

mysql_connect($db_serv,$db_user,$db_pass) or die (mysql_error());

mysql_select_db($db_name) or die(mysql_error());

//Online Players
$query = ("SELECT * FROM characters WHERE online=1 and accesslevel>=0");

$result = mysql_query($query) or die(mysql_error());

$num2=mysql_numrows($result);
$sum=$num2;

mysql_close();

mysql_connect($db_serv,$db_user,$db_pass) or die (mysql_error());

mysql_select_db($db_name) or die(mysql_error());
?>

then add to your web:

<?php print ("$sum"); ?>

create new folder named config in the main directory of the host

and create new file named stats.php

place there:

<?php

    $db_user = "root"; 
    $db_pass = "db pass"; 
    $db_name = "l2jdb"; 
    $db_serv = "db ip"; 

    $res = mysql_connect ( $db_serv, $db_user, $db_pass ) or die ("Coudn't connect to [$db_serv]"); 
    $resdb = mysql_select_db ( "$db_name",$res ); 

    return $res; 

?>

I hope to work

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...