From ab1ca6cc4376cef1e9ec61bf63adc77d72afffb5 Mon Sep 17 00:00:00 2001 From: lopar Date: Wed, 16 Jan 2019 00:20:52 +0200 Subject: [PATCH] another final version --- akadem.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/akadem.php b/akadem.php index e29120b..85f0e3d 100644 --- a/akadem.php +++ b/akadem.php @@ -29,6 +29,7 @@ function setProfession($name, $type, $needMoney, $needLevel) if ($name == 'medic') $profId = 22; 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; return 'Вы получили профессию!'; } else return 'Что-то пошло не так...'; } @@ -50,7 +51,7 @@ if ($get == 'exit') { -
+