Administrator
Location: Flensburg
Occupation: Industrieelektroniker
wcf.user.option.userOption53: Nein
Administrator
Location: Flensburg
Occupation: Industrieelektroniker
wcf.user.option.userOption53: Nein
Source code |
|
1 |
var $A2S_SERVERQUERY_GETCHALLENGE = "\x57"; // challenge |
Source code |
|
1 |
var $A2S_SERVERQUERY_GETCHALLENGE = "\x55\xFF\xFF\xFF\xFF"; // challenge |
This post has been edited 3 times, last edit by "MadMakz" (Jan 13th 2012, 5:36pm)
Administrator
Location: Flensburg
Occupation: Industrieelektroniker
wcf.user.option.userOption53: Nein
Hab noch einen Fehler bemerkt, der ziemlich fatal ist:
Wenn man einen Server Abfragen will, der entweder gar nicht existiert oder down ist, hängt das script gleich den ganzen apache2/Webserver auf.
Man müsste zuerst mal überprüfen, ob der Server überhaupt antwortet, sonst muss man jedes mal den Webserver restarten.
PHP Source code |
|
1 2 3 4 5 6 7 |
$ip = '85.131.139.27';
$port = '27015';
if ($socket = @fsockopen($ip, $port, $errno, $errstr, "2")){
// Online
}else{
// Offline
}
|
Administrator
Location: Flensburg
Occupation: Industrieelektroniker
wcf.user.option.userOption53: Nein
Quoted
Warning:As of September 29, 2009, Left4Dead2 returns an index of zero for all players.
Administrator
Location: Flensburg
Occupation: Industrieelektroniker
wcf.user.option.userOption53: Nein
Source code |
|
1 |
$unpacked[int] |
Source code |
|
1 |
$unpacked["int"] |
This post has been edited 1 times, last edit by "SDKMaster" (Feb 13th 2013, 4:13pm)