notices fix
This commit is contained in:
parent
6be5fa9647
commit
d90e1af97b
7
city.php
7
city.php
@ -30,6 +30,7 @@ if ($user['zayavka'] != 0) {
|
|||||||
*/
|
*/
|
||||||
function can_i_move()
|
function can_i_move()
|
||||||
{
|
{
|
||||||
|
global $user;
|
||||||
$d = db::c()->query('SELECT SUM(`massa`) AS `mass` FROM `inventory` WHERE `owner` = ?i AND `setsale` = 0', $user['id'])->fetch_assoc();
|
$d = db::c()->query('SELECT SUM(`massa`) AS `mass` FROM `inventory` WHERE `owner` = ?i AND `setsale` = 0', $user['id'])->fetch_assoc();
|
||||||
$eff = db::c()->query('SELECT `type` FROM `effects` WHERE `owner` = ?i AND (`type` = 10 OR `type` = 13 OR `type` = 14)', $user['id'])->fetch_assoc();
|
$eff = db::c()->query('SELECT `type` FROM `effects` WHERE `owner` = ?i AND (`type` = 10 OR `type` = 13 OR `type` = 14)', $user['id'])->fetch_assoc();
|
||||||
if ($d['mass'] > get_meshok()) {
|
if ($d['mass'] > get_meshok()) {
|
||||||
@ -401,9 +402,9 @@ $online = db::c()->query('SELECT 1 FROM `online` WHERE `real_time` >= ?i', (time
|
|||||||
buildset(222, "cap_arr_top", 180, 650, "Торговая улица", 1);
|
buildset(222, "cap_arr_top", 180, 650, "Торговая улица", 1);
|
||||||
buildset(8, "cap_arr_left", 258, 21, "Большая парковая улица",1);
|
buildset(8, "cap_arr_left", 258, 21, "Большая парковая улица",1);
|
||||||
buildset(17, "cap_berezka", 205, 435, "Березка");
|
buildset(17, "cap_berezka", 205, 435, "Березка");
|
||||||
buildset(11, "cap_loto", 230, 615, "Лотерея Сталкера");
|
buildset(11, "cap_loto", 230, 615, "Лотерея");
|
||||||
buildset(9, "cap_tree2", 260, 530, "Новогодняя елка");
|
//buildset(9, "cap_tree2", 260, 530, "Новогодняя елка");
|
||||||
buildset(14, "cap_sneg_3", 210, 390, "Снеговик");
|
//buildset(14, "cap_sneg_3", 210, 390, "Снеговик");
|
||||||
echo "</div>";
|
echo "</div>";
|
||||||
} elseif ($user['room'] == 21) {
|
} elseif ($user['room'] == 21) {
|
||||||
bgset('cap_strash');
|
bgset('cap_strash');
|
||||||
|
@ -5177,8 +5177,8 @@ function tele_check($to, $text)
|
|||||||
function get_meshok()
|
function get_meshok()
|
||||||
{
|
{
|
||||||
global $user;
|
global $user;
|
||||||
$d = db::c()->query('SELECT SUM(`gmeshok`) FROM `inventory` WHERE `owner` = ?i AND `setsale` = 0 AND `gmeshok` > 0', $user['id'])->fetch_assoc();
|
$d = db::c()->query('SELECT SUM(`gmeshok`) AS `ves` FROM `inventory` WHERE `owner` = ?i AND `setsale` = 0 AND `gmeshok` > 0', $user['id'])->fetch_assoc();
|
||||||
return ($user['sila'] * 4 + $d[0]);
|
return ($user['sila'] * 4 + $d['ves']);
|
||||||
}
|
}
|
||||||
|
|
||||||
function get_meshok_to($to)
|
function get_meshok_to($to)
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 2.7 KiB |
Binary file not shown.
Before Width: | Height: | Size: 2.8 KiB |
Loading…
Reference in New Issue
Block a user