AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   HLstatsX:CE (https://forums.alliedmods.net/forumdisplay.php?f=156)
-   -   general stastistics of hlstats (https://forums.alliedmods.net/showthread.php?t=277925)

SGCatlantis 01-20-2016 13:57

general stastistics of hlstats
 
Hello ,
I created a motd.php page to my web site and I would want to add the general stastistics of hlstats.
you know how to make script for ?


http://gatetogames.net/images/Home/hlstats_to_motd2.PNG

Pricetx 01-29-2016 19:43

Re: general stastistics of hlstats
 
You will need to use a server-side language such as PHP to communicate with the HLStatsX MySQL database. If you're not sure how to do this, I recommend you look for a tutorial on running SQL queries against MySQL using PHP.

However, I can tell you the SQL queries you want to use are:

For player count:
SELECT count(*) FROM hlstats_Players WHERE hideranking = 0

For kill count:
SELECT SUM(kills) FROM hlstats_Servers

SGCatlantis 02-01-2016 16:59

Re: general stastistics of hlstats
 
Hi thx for reply

to my motd.php I have tested this but don't work

<?php
include_once './sgtls.com_stats/pages/game.php';


?>

and now i add this

<div id="button"><a href=""<?php echo $total_players?>" class="menu">Players: <b>$query = "
SELECT
count(*)
FROM
hlstats_Players</b></div>

<div id="button"><a href=""<?php echo $total_kills;?>" class="menu">Kills: </a></div>

SGCatlantis 08-24-2023 05:18

Re: general stastistics of hlstats
 
hi any help please
I want just add two button
for
total players:xxx
kills:xxx

https://sgtls.com/images/motd/hlstats_to_motd2.PNG

any help would be appreciated i'm bad at php


All times are GMT -4. The time now is 08:32.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.