qplug
Dette er en del af qplug script (et som tager noget information fra en quake server)Min troblem er at den tæller 1 for meget og jeg kan ikke finde ud af hvorfor!
$which = true;
foreach($players as $val) {
if ($i==0)
$val = eregi_replace("([a-zA-Z+])","",$val);
if ($which) {
$info = explode(" ",$val);
$this->player_info[$i] = array("score" => $info[0], "ping" => $info[1], "name" => "");
$this->scores[] = $info[0];
$this->pings[] = $info[1];
$which = false;
} else {
$this->player_info[$i-1]["name"] = $val;
$which = true;
}
$i++;
}
