another final version
This commit is contained in:
parent
e1b3603738
commit
84bc896313
@ -30,6 +30,7 @@ function setProfession($name, $type, $needMoney, $needLevel)
|
||||
if (!empty($profId)) {
|
||||
db::c()->query('UPDATE `users` SET ?f = ?i, `money` = `money` - ?i WHERE `id` = ?i', 'prof' . $type, $profId, $needMoney, $_SESSION['uid']);
|
||||
$user['prof'.$type] = true;
|
||||
$user['money'] -= $needMoney;
|
||||
return 'Вы получили профессию!';
|
||||
} else return 'Что-то пошло не так...';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user