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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock