endq((int)$_GET['end_qst_now'], 'end', $user); } if ($qEnd) { $q->winqst((int)$_GET['end_qst'], $user); } $qsee = ''; $qx = 0; $error = ''; Template::header('module_quest'); ?> query('SELECT `vars` FROM `actions` WHERE `vars` LIKE "?S" AND `vals` = "?s" AND `uid` = ?i LIMIT 100', "%start_quest%", "go", User::getInstance()->getId()); while ($pl = $sp->fetch_assoc()) { $questId = str_replace('start_quest', '', $pl['vars']); $pq = db::c()->query('SELECT `id`,`name`,`info` FROM `quests` WHERE `id` = ?i', $questId)->fetch_assoc(); $qsee .= sprintf(' %sВыполнить
%s
$s

', $pq['id'], $pq['name'], $pq['id'], $pq['info'], $q->info($pq, User::getInstance()->getId())); $qx++; } if (!$qsee) { $qsee = 'У вас нет заданий.'; } if ($q->error) { $error = $q->error; } ?>
Состояние персонажа,