mysql_query('UPDATE `battle` SET `otmorozok_use` = 1 WHERE `id` = "'.$pl['id'].'" LIMIT 1');
//
$usr=mysql_fetch_array(
mysql_query(
'SELECT `level`,`city` FROM `users` WHERE `battle` = "'.$pl['id'].'" ORDER BY `level` DESC LIMIT 1'
)
);
$bot=mysql_fetch_array(
mysql_query('SELECT * FROM `test_bot` WHERE `login` LIKE "%<25><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> [%'.$usr['level'].'%]%" LIMIT 1')
'SELECT COUNT(*) FROM `users` WHERE `login` LIKE "%<25><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (%" AND `battle` = "'.$pl['id'].'" LIMIT 1'
)
);
//
$otmz[0]++;
//
mysql_query(
'UPDATE `users` SET `city` = "'.$usr['city'].'",`login` = "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ('.$otmz[0].')",`battle` = "'.$pl['id'].'" WHERE `id` = "'.$bot['id'].'" LIMIT 1'
);
//
mysql_query('UPDATE `stats` SET `team` = "'.$tmr.'" WHERE `id` = "'.$bot['id'].'" LIMIT 1');