Hello otlanders, fyruz again, I have an error creating my teleport, i've been testing alot of tutorials you never imagine! and the teleport never appear, says that i have 1 minute to get out but where is the teleport! look what its says:

Uploaded with ImageShack.us
look my scripts:
local m = {
["Ushuriel"] = {
message = "Escape through the teleport quickly before it closes!",
cfg = {
{
time = 15,
to = {x = 1185, y = 1067, z = 12},
tp = {x = 1097, y = 1214, z = 12}
},
}
},
["Zugurosh"] = {
message = "Escape through the teleport quickly before it closes!",
cfg = {
{
time = 10,
to = {x = 1112, y = 1253, z = 12},
tp = {x = 1149, y = 1213, z = 12}
},
}
}
}
function onKill(cid, target)
if isPlayer(target) then
return true
end
local monster = m[getCreatureName(target)]
if monster then
for i = 1, #monster.cfg do
local c = monster.cfg
local function deleteTeleport()
local teleport = getTileItemById(c.tp, 1387).uid
if(teleport > 0) then
doRemoveItem(teleport)
doSendMagicEffect(c.tp, CONST_ME_POFF)
end
return true
end
doCreateTeleport(1387, c.to, c.tp)
doSendMagicEffect(c.tp, CONST_ME_ENERGYAREA)
addEvent(deleteTeleport, c.time * 1000)
end
doCreatureSay(cid, monster.message, TALKTYPE_ORANGE_1)
end
return true
end
I dont have teleport on the map, i think would create automatically, or i put it? please help!! i put rep+++
Also if u can help me with the table

Uploaded with ImageShack.us
look my scripts:
local m = {
["Ushuriel"] = {
message = "Escape through the teleport quickly before it closes!",
cfg = {
{
time = 15,
to = {x = 1185, y = 1067, z = 12},
tp = {x = 1097, y = 1214, z = 12}
},
}
},
["Zugurosh"] = {
message = "Escape through the teleport quickly before it closes!",
cfg = {
{
time = 10,
to = {x = 1112, y = 1253, z = 12},
tp = {x = 1149, y = 1213, z = 12}
},
}
}
}
function onKill(cid, target)
if isPlayer(target) then
return true
end
local monster = m[getCreatureName(target)]
if monster then
for i = 1, #monster.cfg do
local c = monster.cfg
local function deleteTeleport()
local teleport = getTileItemById(c.tp, 1387).uid
if(teleport > 0) then
doRemoveItem(teleport)
doSendMagicEffect(c.tp, CONST_ME_POFF)
end
return true
end
doCreateTeleport(1387, c.to, c.tp)
doSendMagicEffect(c.tp, CONST_ME_ENERGYAREA)
addEvent(deleteTeleport, c.time * 1000)
end
doCreatureSay(cid, monster.message, TALKTYPE_ORANGE_1)
end
return true
end
I dont have teleport on the map, i think would create automatically, or i put it? please help!! i put rep+++
Also if u can help me with the table