Кольца стакались в одном слоте потому что у них один тип.
This commit is contained in:
parent
d2f793f3d1
commit
2007b38dc3
2
main.php
2
main.php
@ -315,7 +315,7 @@ function dressitem($id)
|
|||||||
$itemInSlotRow = db::c()->query('SELECT dressed_slot FROM inventory WHERE owner_id = ?i AND dressed_slot > 0 AND item_type = ?i', $_SESSION['uid'], $selectedItem->item_type);
|
$itemInSlotRow = db::c()->query('SELECT dressed_slot FROM inventory WHERE owner_id = ?i AND dressed_slot > 0 AND item_type = ?i', $_SESSION['uid'], $selectedItem->item_type);
|
||||||
$itemInSlotQuantity = $itemInSlotRow->getNumRows();
|
$itemInSlotQuantity = $itemInSlotRow->getNumRows();
|
||||||
if ($itemInSlotQuantity) {
|
if ($itemInSlotQuantity) {
|
||||||
$itemInSlot = $itemInSlotRow->fetch_assoc();
|
$itemInSlot = $itemInSlotRow->fetch_assoc_array();
|
||||||
print_r($itemInSlot).'<br>';
|
print_r($itemInSlot).'<br>';
|
||||||
}
|
}
|
||||||
if (in_array($selectedItem->item_type,[HELMET,ARMOR,LEGS,BOOTS,GLOVES,WEAPON,SHIELD,BELT,AMULET])) {
|
if (in_array($selectedItem->item_type,[HELMET,ARMOR,LEGS,BOOTS,GLOVES,WEAPON,SHIELD,BELT,AMULET])) {
|
||||||
|
Loading…
Reference in New Issue
Block a user