Aeronx
Intermediate OT User
- Joined
- Dec 17, 2015
- Messages
- 736
- Solutions
- 9
- Reaction score
- 121
for i = 0, getContainerSize(getPlayerSlotItem(cid, CONST_SLOT_BACKPACK).uid)-1 do
thing = getContainerItem(getPlayerSlotItem(cid, CONST_SLOT_BACKPACK).uid, i)
local resto = isInArray(thing.itemid, 8293)
print(resto)
print(thing.itemid)
end
resto prints all false..
thing.itemid prints all the items in bp.. item 8293 is in bp, but still return false.
is this part wrong? isInArray(thing.itemid, 8293) or what am i doing wrong?
Thanks in advance.
thing = getContainerItem(getPlayerSlotItem(cid, CONST_SLOT_BACKPACK).uid, i)
local resto = isInArray(thing.itemid, 8293)
print(resto)
print(thing.itemid)
end
resto prints all false..
thing.itemid prints all the items in bp.. item 8293 is in bp, but still return false.
is this part wrong? isInArray(thing.itemid, 8293) or what am i doing wrong?
Thanks in advance.