I have this error in console:
and this is my script:
What wrong is here?
[19/01/2010 13:55:21] [Error - MoveEvents Interface]
[19/01/2010 13:55:21] data/movements/scripts/inq_bossowie.luanStepIn
[19/01/2010 13:55:21] Description:
[19/01/2010 13:55:21] (luaDoPlayerSendTextMessage) Player not found
and this is my script:
PHP:
local CONFIG = {
[30000]={storage = 30000, seal = "Ushuriela"},
[30001]={storage = 30001, seal = "Zugurosha"},
[30002]={storage = 30002, seal = "Madaretha"},
[30003]={storage = 30003, seal = "Latrivana & Golgordana"},
[30004]={storage = 30004, seal = "Annihilona"},
[30005]={storage = 30005, seal = "Hellgoraka"}
}
function onStepIn(cid, item, position, fromPosition)
if getPlayerStorageValue(cid, CONFIG[item.actionid].storage) == -1 then
doPlayerSendTextMessage(cid, 22,"Pokonales moc " .. CONFIG[item.actionid].seal .. "\'s i absorbowales czesc jego energii.")
setPlayerStorageValue(cid, CONFIG[item.actionid].storage, 1)
else
doPlayerSendTextMessage(cid, 22,"Obecnie zaliczyles " .. CONFIG[item.actionid].seal .. "\'s i absorbowales czesc jego energii.")
end
return TRUE
end
What wrong is here?