Aeronx
Intermediate OT User
- Joined
- Dec 17, 2015
- Messages
- 736
- Solutions
- 9
- Reaction score
- 121
Hello all!
I've been doing many test, but i've been totally unsuccessful.
And i get these prints:
to my understanding isInArray(table, value to search in table). As you can see on the prints 2376 false ------- 2376 should be true, why it isnt? >.<
Thank you for your help and time!
I've been doing many test, but i've been totally unsuccessful.
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local it = ItemType(itemEx.itemid)
for h = 2375, 2378 do
j = h
print(j)
print(isInArray(j, itemEx.itemid))
print("-----")
print(itemEx.itemid)
if isInArray(j, itemEx.itemid) == true then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You cannot upgrade items dropped from monsters.")
end
end
And i get these prints:
Code:
2375
false
-----
2376
2376
false
-----
2376
2377
false
-----
2376
2378
false
-----
2376
to my understanding isInArray(table, value to search in table). As you can see on the prints 2376 false ------- 2376 should be true, why it isnt? >.<
Thank you for your help and time!