My script don't work and don't show error in cosole:
Code:
local toPos =
{
x = 1222,
y = 1029,
z = 8
}
function onUse(cid, item, fromPos)
if getPlayerItemCount(cid, 2044) == TRUE then
if getPlayerStorageValue(cid, 64234) == FALSE then
doTeleportThing(cid, toPos, TRUE)
setPlayerStorageValue(cid, 64234, TRUE)
elseif getPlayerItemCount(cid, 2044) == FALSE then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You do not have a lamp out of his house.")
end
end
return TRUE
end