- Dołączył
- Luty 12, 2009
- Posty
- 168
- Liczba reakcji
- 6
Witam, posiadam silnik SQL(Avesta) i w moim acc makerze(nicaw) jest funkcja ktora pokazuje liste osob online na serwerze, niestety ta funkcja nie dziala,
pytanie tylko co to za tabelka, i czy da sie ten blad jakos naprawic
Z gory dziekuje!
Jestem pewien ze moj serwer jest w stanie obslugiwac ten skrypt. tutaj go zamieszaczam:Fatal error: Uncaught exception 'DatabaseException'
Message: Your server does not store information on players online state.
File: online-list.php on line: 34
Script was terminated because something unexpected happened. You can report this, if you think it's a bug.
Debug Backtraceisabled
Tutaj widac ze on pobiera te dane z odpowiedniej tabelki z bazy danychinclude ("include.inc.php");
$ptitle="Online Players - $cfg[server_name]";
include ("header.inc.php");
?>
<div id="content">
<div class="top">Online Players</div>
<div class="mid">
<?php
$SQL = AAC::$SQL;
try {
$SQL->myQuery('SELECT name, vocation, level FROM players WHERE online = 1 ORDER BY name ASC');
} catch(DatabaseQueryException $e) {
try {
$SQL->myQuery('SELECT name, vocation, level FROM players WHERE lastlogin > lastlogout ORDER BY name ASC');
} catch(DatabaseQueryException $e) {
throw new DatabaseException('Your server does not store information on players online state.');
}
}
if ($SQL->num_rows() == 0) {
echo 'Nobody is online :-O';
} else {
$i = 0;
echo '<table><tr class="color0"><td style="width:150px"><b>Name</b></td><td style="width:150px"><b>Vocation</b></td><td style="width:60px"><b>Level</b></td></tr>';
while ($player = $SQL->fetch_array()) {
$i++;
echo '<tr '.getStyle($i).'><td><a href="characters.php?player_name='.urlencode($player['name']).'">'.htmlspecialchars($player['name']).'</a></td><td>'.htmlspecialchars($cfg['vocations'][$player['vocation']]['name']).'</td><td>'.$player['level'].'</td></tr>'."\n";
}
}
?>
</table>
</div>
<div class="bot"></div>
</div>
<?php include ("footer.inc.php");?>
pytanie tylko co to za tabelka, i czy da sie ten blad jakos naprawic
Z gory dziekuje!
isabled

Czy tw?j ots dzia?a pod portem 7171? Masz poprawnie prowadzone IP?