hello guys, I installed the function "onTalk" in my sources, it works ok. but I tried to create with this function.
I want when the player with access high than 3 talk, says in RED COLOR, and when a player with access == 3 talk, says in ORANGE COLOR, but when I try to talk with this script, appear "C: stack overflow" on the exe.
currently script is the following.
thanks for the help guys.
I use TFS 0.4 r3777
I want when the player with access high than 3 talk, says in RED COLOR, and when a player with access == 3 talk, says in ORANGE COLOR, but when I try to talk with this script, appear "C: stack overflow" on the exe.
currently script is the following.
Code:
function onTalk(cid, type, text, position)
if getPlayerAccess(cid) > 3 then
return doCreatureSay(cid, text, TALKTYPE_RED_1)
elseif getPlayerAccess(cid) == 3 then
doCreatureSay(cid, text, TALKTYPE_ORANGE_1)
elseif getPlayerAccess(cid) < 3 then
return true
end
return true
end
thanks for the help guys.
I use TFS 0.4 r3777