Ecstacy
Mothafuckaaa
Hey,
I need some help on this part of my script,
I wan't it to check for tiles in an array, but it doesn't work.
array
(sorry about the far away tabbing, but that's because it's somewhere far in my script.)
It teleports me even if it is in the array.
I need some help on this part of my script,
I wan't it to check for tiles in an array, but it doesn't work.
array
Code:
local water = {4608,4609,4610,4611,4612,4613,4614,4615,4616,4617,4618,4619,4664,4665,4666,5757,5756,5755,5759,5760,5758,5761}
Code:
if(getTileItemById(down,(isInArray(water,itemid)),false)) then
doPlayerSendTextMessage(cid,20,'[Flying] You have flown down.')
doSendMagicEffect(down,10)
doCreatureSay(cid,'Down!',19)
doTeleportThing(cid,down)
return doSendMagicEffect(down,10)
else
doPlayerSendTextMessage(cid,20,'[Flying] You can\'t fly on water.')
end
It teleports me even if it is in the array.