another final version

This commit is contained in:
lopar 2019-01-16 00:33:03 +02:00
parent b93e71de36
commit 05d8728819

View File

@ -37,9 +37,9 @@ function setProfession($name, $type, $needMoney, $needLevel)
} else return 'Что-то пошло не так...'; } else return 'Что-то пошло не так...';
} }
if ($get == 'smith') $status = setProfession('smith', 1, 300, 3); if ($get == 'smith') $status = setProfession('оружейник', 1, 300, 3);
if ($get == 'mercenary') $status = setProfession('mercenary', 2, 700, 5); if ($get == 'mercenary') $status = setProfession('наёмник', 2, 700, 5);
if ($get == 'medic') $status = setProfession('medic', 2, 700, 5); if ($get == 'medic') $status = setProfession('лекарь', 2, 700, 5);
if ($get == 'exit') { if ($get == 'exit') {
db::c()->query('UPDATE `users`,`online` SET `users`.`room` = 2702, `online`.`room` = 2702 WHERE `users`.`id` = ?i AND `online`.`id` = ?i', $user['id'], $user['id']); db::c()->query('UPDATE `users`,`online` SET `users`.`room` = 2702, `online`.`room` = 2702 WHERE `users`.`id` = ?i AND `online`.`id` = ?i', $user['id'], $user['id']);