info['battle'] == 0) { $u->info['battle'] = $btl_last['battle']; } if ($u->info['battle'] == 0 || isset($_GET['bend'])) { die(''); } $thisBattle = Battle::get($u->info['battle']); $allprice = Db::getValue('select sum(price1) from battle_users where battle = ?', [$u->info['battle']]); function finish(User $u): void { if (!isset($_GET['finish'])) { return; } Db::sql("update stats set battle_text = '', last_b = 0 where id = ?, $u->info['id'"); Db::sql('update battle_users set finish = 1 where uid = ?', [$u->info['id']]); header('location: main.php'); die(); } function convert($from, $to, $var) { if (is_array($var)) { $new = []; foreach ($var as $key => $val) { $new[convert($from, $to, $key)] = convert($from, $to, $val); } $var = $new; } else { if (is_string($var)) { $var = iconv($from, $to, $var); } } return $var; } function normJsonStr($str) { return preg_replace_callback( '/\\\u([a-f0-9]{4})/i', function ($m) { return chr(hexdec($m[1]) - 1072 + 224); }, $str ); } $allprice = Battle::getType($allprice, $thisBattle['smert'] == 1); ?>
|
|
|
На данный момент вами нанесено урона: info['battle_yron']); ?> HP .
(Опыт: +info['battle_exp']); ?> ед., Без учета процентов) |
Лог боя »»
(Бой идет с таймаутом NaN мин.) |