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

Guests: 34

129.205.x.x forum
216.244.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 forum
46.229.x.x forum
46.229.x.x forum
46.4.x.x forum
47.89.x.x guestbook
54.36.x.x forum
54.36.x.x dilbertplus
54.36.x.x forum
54.36.x.x dilbertplus
54.36.x.x forum
54.36.x.x user
54.36.x.x forum
54.36.x.x forum
54.36.x.x dilbertplus
54.36.x.x forum
54.36.x.x download
54.36.x.x dilbertplus
54.36.x.x dilbertplus
54.36.x.x dilbertplus
54.36.x.x forum
54.36.x.x forum
54.36.x.x user
54.83.x.x forum
91.242.x.x forum

Last Seen

mrstipfan Wed 19:48
Gagi2 Mon 16:30
EFiNST0RM Sun 15:39
85filip58 Sun 12:14
brlight Tue 04:18

Newest Members

Forums
Mk|s Akula
Sat Feb 22 2014, 04:26AM
Posts: 4
Joined: Fri Feb 21 2014, 05:49AM
Registered Member #7917
Thank you Wussie! I have applied your patch but it looks like the other was the problem. My extract information script.

It look like everytime when I was execute the bellow script, lgsl was showing the server offline until next cache reset or until lgsl_cron.php will be executed via wget -q -O /dev/null http://URL/lgsl/lgsl_files/lgsl_cron.php.


<?php
error_reporting
(0);
require 
"path-to/lgsl_files/lgsl_class.php";
$dns_server "server-ip";
$server lgsl_query_cached("halflife",$dns_server,"27015","27015","27015","sep");

$detalii_server $server['s'];
$date_server    $server['e'];
$array_jucatori $server['p'];
$fp=fopen(''.$dns_server.'-jucatori','w+');
fwrite($fp''.$detalii_server['players'].'/'.$detalii_server['playersmax']."\n");
fclose($fp);

?>


My temporary solution is to ask cached info and stop query, and that means sepc request. Final code:


<?php
error_reporting
(0);
require 
"path-to/lgsl_files/lgsl_class.php";
$dns_server "server-ip";
$server lgsl_query_cached("halflife",$dns_server,"27015","27015","27015","sepc");

$detalii_server $server['s'];
$date_server    $server['e'];
$array_jucatori $server['p'];
$fp=fopen(''.$dns_server.'-jucatori','w+');
fwrite($fp''.$detalii_server['players'].'/'.$detalii_server['playersmax']."\n");
fclose($fp);

?>


If someone can help me with a little script that makes a live query without disturb lgsl, i just need number of players / total players, map and hostname, I appreciate!

Kind regards and thank you for your support.
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