console give error
[Error -action Inteface]
data/actions/teleports.lua:inUse
Description:
data/actions/teleports.lua:51:attempt to call global 'doSetItemAction' <a nil value>
stack traceback:
data/actions/teleports.lua:51: in function <data/actions/scripts/teleports.lua:1
im using tfs 0.3.6
thz for you time
[Error -action Inteface]
data/actions/teleports.lua:inUse
Description:
data/actions/teleports.lua:51:attempt to call global 'doSetItemAction' <a nil value>
stack traceback:
data/actions/teleports.lua:51: in function <data/actions/scripts/teleports.lua:1
im using tfs 0.3.6
PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
-- tablica z pozycjami lawy
local Lawa = {
{x=314,y=812,z=15},
{x=314,y=811,z=15},
{x=314,y=810,z=15},
{x=314,y=809,z=15},
{x=314,y=808,z=15},
{x=314,y=807,z=15},
{x=313,y=808,z=15},
{x=313,y=809,z=15},
{x=313,y=810,z=15},
{x=313,y=811,z=15},
{x=313,y=812,z=15},
{x=313,y=813,z=15},
}
if (itemEx.uid == 12344) then -- unique kamienia
if (getGlobalStorageValue(5544) == -1) then
local Teleport = doCreateTeleport(1387, {x=314,y=809,z=15}, {x=322,y=841,z=15}) -- tworzenie teleportu
doSetItemActionId(Teleport, 12345)
for i = 1, #Lawa do -- petla tworzenia lawy
doCreateItem(5815, 1, Lawa[i]) -- funkcja tworzenia lawy
doSendMagicEffect(Lawa[i], CONST_ME_POFF)
end
end
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "It\'s not time yet.")
end
end
thz for you time