Could someone correct this script? and why appears this error on console?
NPC script
CONSOLE ERROR
It appears when I say the MSG like "first promotion"
NPC script
Code:
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end
function onThink() npcHandler:onThink() end
function creatureSayCallback(cid, type, msg)
if(not npcHandler:isFocused(cid)) then
return false
end
CONSOLE ERROR
Code:
[13/09/2011 19:29:47] [Error - Npc interface]
[13/09/2011 19:29:47] data/npc/scripts/vocations.lua:onCreatureSay
[13/09/2011 19:29:47] Description:
[13/09/2011 19:29:47] (internalGetPlayerInfo) Player not found when requesting player info #6
It appears when I say the MSG like "first promotion"