$info = chr(6).chr(0).chr(255).chr(255).'info'; //show source request if($_REQUEST['action']=='source'){ } else{ if ($sock) { //writes the info gotten by sending the server packet. $data=''; { } //players online and max (ex. Players online: 24 / 100) //Monster total (ex. Monsters: 23456) //Uptime (Uptime: 23h 12m) echo ' <ul> </ul>'; } else { } }
jest to skrypt do OTSa (otwartego serwera tibii). Błąd polega na tym, że czasami wyświetla dane normalnie:
on Players: 2/1000 Monsters: 2001 Uptime: 3h 30m
a czasami poprostu takie cos:
on Players: / Monsters: Uptime: 0h 0m