[21:48:46.253] [Warning - ConjureSpell::loadFunction] Function "conjureFood" does not exist.
[21:48:46.284] [Warning - Actions::registerEvent] Duplicate registered item id: 2036
[21:48:46.292] [Warning - TalkAction::configureEvent] Duplicate registered talkaction with words: /save
Ofcourse I understand the errors, but I dont know how/where to fix them. This is what I think is wrong:
First one is possibly missing a spell?
2nd one got the same id twice?
third one got the same talk action twice?
Though, I still dont know how to correct them so I hearby ask for your mighty guidance! XD
Here's the code for save.lua
[21:48:46.284] [Warning - Actions::registerEvent] Duplicate registered item id: 2036
[21:48:46.292] [Warning - TalkAction::configureEvent] Duplicate registered talkaction with words: /save
Ofcourse I understand the errors, but I dont know how/where to fix them. This is what I think is wrong:
First one is possibly missing a spell?
2nd one got the same id twice?
third one got the same talk action twice?
Though, I still dont know how to correct them so I hearby ask for your mighty guidance! XD
Here's the code for save.lua
PHP:
local savingEvent = 0
function onSay(cid, words, param, channel)
if(isNumber(param)) then
stopEvent(savingEvent)
save(tonumber(param) * 60 * 1000)
else
doSaveServer()
end
return true
end
function save(delay)
doSaveServer()
if(delay > 0) then
savingEvent = addEvent(save, delay, delay)
end
end
Last edited: