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

Guests: 40

151.80.x.x forum
174.138.x.x news
207.46.x.x download
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 dilbertplus
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
54.163.x.x forum
54.36.x.x forum
54.36.x.x forum
54.36.x.x dilbertplus
54.36.x.x forum
54.36.x.x dilbertplus
54.36.x.x dilbertplus
54.36.x.x forum
54.36.x.x dilbertplus
54.36.x.x dilbertplus
54.36.x.x forum
54.36.x.x forum
54.36.x.x dilbertplus
54.36.x.x dilbertplus
54.36.x.x lgsl
54.36.x.x forum
54.36.x.x top
54.36.x.x forum
54.36.x.x dilbertplus
54.36.x.x dilbertplus
54.36.x.x forum
54.36.x.x user
54.36.x.x user
66.249.x.x forum
78.46.x.x dilbertplus

Last Seen

Wussie Thu 15:55
Dodgeitorelse Mon 16:49
85filip58 Wed 12:06
Bommel Mon 18:20
Apophis01 Wed 12:35

Newest Members

Forums
list the servers online only
Iulyy
Tue Apr 14 2009, 09:27PM
Posts: 25
Joined: Thu Jan 29 2009, 03:30PM
Registered Member #4772
Hello, I don't know ho to do to show only the online servers.
$lgsl_config['hide_offline'][0] = "1"; is not a solution because is listing only one server and i don't use any more sql for temp stats, just to extract the servers.

BTW: Sorry, my english is not so good, I hope you understand what I said and what I want!

MadMakz
Wed Apr 15 2009, 04:38PM

Posts: 163
Joined: Wed Sep 24 2008, 07:46AM
Registered Member #4406
Iulyy wrote ...

Hello, I don't know ho to do to show only the online servers.
$lgsl_config['hide_offline'][0] = "1"; is not a solution because is listing only one server and i don't use any more sql for temp stats, just to extract the servers.

BTW: Sorry, my english is not so good, I hope you understand what I said and what I want!

wrong!
$lgsl_config['hide_offline'][0] = "1"; shows only onlineservers! and not just one!
it´s morelikely you´ve set $lgsl_config['random'].... wrong!



SpiffyTek
Website
Iulyy
Thu Apr 16 2009, 03:59AM
Posts: 25
Joined: Thu Jan 29 2009, 03:30PM
Registered Member #4772
I modified the script a little and I don't use $lgsl_config['random'] anymore, and I make it to show only one server. If i set $lgsl_config['hide_offline'][0] = "1"; well apper empty stats if the server is offline.

MadMakz
Sat Apr 18 2009, 12:28PM

Posts: 163
Joined: Wed Sep 24 2008, 07:46AM
Registered Member #4406
in first post you sad you only want to show online servers, wich is done with

$lgsl_config['hide_offline'][0] = "1"
the number in [0] is the zone.

In your second post you say you modified the script, showing only one server if
$lgsl_config['hide_offline'][0] = "1"

that makes no sense but fine, however i don´t get what you want from us now?

doesn´t it hide offlineservers while
$lgsl_config['hide_offline'][0] = "1"
anymore or what?

SpiffyTek
Website
Iulyy
Sat May 02 2009, 04:45AM
Posts: 25
Joined: Thu Jan 29 2009, 03:30PM
Registered Member #4772
Let's start from the beginning.
First of all I don't use sql table from the lgsl, I have my own table with server list, so I don't use anymore type ( I set to use only Counter-Strike ), cache, cache_time ( I set to get real live stats without waiting for cache time ), etc..
So now I maked to select just one server random from the table without $lgsl_config['random'] ( ORDER BY RAND() LIMIT 1 ), but if the server is offline i want to select again random from the table until the server is online. By setting $lgsl_config['hide_offline'][0] = "1"; will apear nothing ( empty stats and the echo ).
Please tell me now you understand what I just said.

Rich
Mon May 04 2009, 02:54PM
Posts: 1717
Joined: Wed Nov 26 2003, 04:30PM

I hope you are using something like a cron to update the servers, as removing cache can be bad.

( since code is run once for every site visitor, having 50 visitors without cache would attack the game server and it would not respond )

I understand what you mean, its a problem when the random and offline options are used for a zone, I will try to fix in 5.1
Website
Rich
Thu Jun 18 2009, 02:58PM
Posts: 1717
Joined: Wed Nov 26 2003, 04:30PM

This should now be fixed.
Website
 

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