I Have this script and have error in console ( attached file )
How to solve this?
- - - Updated - - -
Solved by tetra20 - Very Thanks
How to solve this?
Code:
function onUse(cid, item, frompos, item2, topos)
if(item.actionid == 32146) and getPlayerStorageValue(cid,42830) == 5 then -- teleport to the last room
for x = 33357, 33362 do
for y = 31404, 31409 do
pos = {x = x, y = y, z = getCreaturePosition(cid).z}
if(isPlayer(getTopCreature(pos).uid)) then
doTeleportThing(cid, {x=33359, y=31407, z=10})
doSendMagicEffect(getPlayerPosition(cid), 23)
end
end
if(not(getCreatureByName("snake god essence"))) then
doSummonCreature("snake god essence", {x = 33363, y = 31400, z = 10})
end
return TRUE
end
- - - Updated - - -
Solved by tetra20 - Very Thanks
Code:
function onUse(cid, item, frompos, item2, topos)
if(item.actionid == 32146) and getPlayerStorageValue(cid,42830) == 5 then -- teleport to the last room
for x = 33357, 33362 do
for y = 31404, 31409 do
pos = {x = x, y = y, z = getCreaturePosition(cid).z}
if(isPlayer(getTopCreature(pos).uid)) then
doTeleportThing(cid, {x=33359, y=31407, z=10})
doSendMagicEffect(getPlayerPosition(cid), 23)
end
end
if(not(getCreatureByName("snake god essence"))) then
doSummonCreature("snake god essence", {x = 33363, y = 31400, z = 10})
end
return TRUE
end
end
end
Attachments
-
Sem título.jpg50.5 KB · Views: 8 · VirusTotal
Last edited: