Username:    Password:        Click Here To Signup     Forgotten Password
Main Menu
Online
Members: 0

Guests: 31

180.76.x.x lgsl
180.76.x.x lgsl
35.226.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x dilbertplus
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
54.167.x.x forum
54.36.x.x dilbertplus
54.36.x.x forum
54.36.x.x user
54.36.x.x user
54.36.x.x forum
54.36.x.x forum
54.36.x.x forum
54.36.x.x forum
54.36.x.x forum
54.36.x.x forum
54.36.x.x lgsl
54.36.x.x dilbertplus
54.36.x.x forum
78.46.x.x dilbertplus

Last Seen

Wussie Sun 04:19
Dodgeitorelse Sat 23:29
Technodweeb Sat 20:53
Brett Smith Sat 01:54
Adam Milne Sat 01:41

Newest Members

Forums
Need total players code
RAFFAK
Fri Apr 26 2013, 11:07AM
Posts: 4
Joined: Fri Apr 26 2013, 11:03AM
Registered Member #7694
Hello. I installed LGSL latest version. Perfect thing, works great. I want include as well into website from the LGSL:

Players: xx Max Players: xx

So I will do Players: players/max players

How much I tried anything else, all was showing not good information. This one is perfect. Please help me.
game_stats.eu
Sat Apr 27 2013, 02:46PM

Posts: 15
Joined: Sun Jan 13 2013, 08:23AM
Registered Member #7520
<?
 $server_list 
lgsl_query_group();
 
$total lgsl_group_totals($server_list);
 echo 
" Servers:         {$total['servers']}
        Servers Online:  
{$total['servers_online']}
        Servers Offline: 
{$total['servers_offline']}
        Players:         
{$total['players']}
        Max Players:     
{$total['playersmax']} ";
?>

RAFFAK
Mon Apr 29 2013, 04:46AM
Posts: 4
Joined: Fri Apr 26 2013, 11:03AM
Registered Member #7694
Nothing. Is showing white empty page
Dodgeitorelse
Mon Apr 29 2013, 05:25AM
Posts: 246
Joined: Sun Dec 12 2010, 09:16AM
Registered Member #6457
that is generally due to an incorrect single quote(') or double quote(") or missing semi colon (;)

lack of effort on your part requires less effort on my part
Website
Dodgeitorelse
Mon Apr 29 2013, 05:25AM
Posts: 246
Joined: Sun Dec 12 2010, 09:16AM
Registered Member #6457
show your code so we can have a look

lack of effort on your part requires less effort on my part
Website
RAFFAK
Mon Apr 29 2013, 01:52PM
Posts: 4
Joined: Fri Apr 26 2013, 11:03AM
Registered Member #7694
I just created with this code php file. I opened in browser and nothing
game_stats.eu
Mon Apr 29 2013, 03:01PM

Posts: 15
Joined: Sun Jan 13 2013, 08:23AM
Registered Member #7520
<?PHP
define
("inc"true);
define('IN_VALID'true);
require (
"lgsl/lgsl_files/lgsl_class.php");
 
$server_list lgsl_query_group();
 
$total lgsl_group_totals($server_list);
 echo 
" Servers:         {$total['servers']}
        Servers Online:  
{$total['servers_online']}
        Servers Offline: 
{$total['servers_offline']}
        Players:         
{$total['players']}
        Max Players:     
{$total['playersmax']} ";
?>
game_stats.eu
Mon Apr 29 2013, 03:04PM

Posts: 15
Joined: Sun Jan 13 2013, 08:23AM
Registered Member #7520
http://game-stats.eu/test.php
RAFFAK
Tue Apr 30 2013, 07:45AM
Posts: 4
Joined: Fri Apr 26 2013, 11:03AM
Registered Member #7694
Thank you! Works great! Was bad directory. Perfect!
 

Jump:     Back to top


You are not logged in - Click Here To Signup

Username:    Password:   

Mini Buttons

.... © GreyCube.com - Richard Perry - Powered by e107.org