hey my script /makesay dosent work i need help to fix this error.
This command do like /makesay admin tko, im gay
Then my char say that with out me writing im gay!
error:
script:
This command do like /makesay admin tko, im gay
Then my char say that with out me writing im gay!
error:
Code:
[08/12/2009 11:25:53] [Error - TalkAction Interface]
[08/12/2009 11:25:53] data/talkactions/scripts/makesay.lua:onSay
[08/12/2009 11:25:53] Description:
[08/12/2009 11:25:54] (luaDoCreatureSay) Creature not found
script:
Code:
function onSay(cid, words, param)
local param2 = string.explode(param, ",")
if(param2[1] ~= nil) then
local pname = getPlayerByNameWildcard(param2[1])
if(param2[2] ~= nil) then
text = param2[2]
end
doCreatureSay(pname, text, TALKTYPE_SAY)
else
doPlayerSendCancel(cid, "Failed. Please try again.")
end
return TRUE
end