hey everyone i got this aol script :
and when i buy !aol ingame i receive this error in distro
[Error - TalkAction Interface]
[11/07/2011 21:48:52] data/talkactions/scripts/aol.lua
nSay
[11/07/2011 21:48:52] Description:
[11/07/2011 21:48:52] data/talkactions/scripts/aol.lua:6: attempt to call global 'doSendPlayerTextMessage' (a nil value)
[11/07/2011 21:48:52] stack traceback:
[11/07/2011 21:48:52] data/talkactions/scripts/aol.lua:6: in function <data/talkactions/scripts/aol.lua:1>
LUA:
function onSay(cid, words, param)
local preco = 10000
if doPlayerRemoveMoney(cid, preco) == TRUE then
doPlayerAddItem(cid,2173,1)
doSendMagicEffect(getPlayerPosition(cid),6)
doSendPlayerTextMessage(cid,"Você comprou um aol por 10k!",23)
else
doPlayerSendCancel(cid,"Você nao tem 10k.")
end
return TRUE
end
and when i buy !aol ingame i receive this error in distro
[Error - TalkAction Interface]
[11/07/2011 21:48:52] data/talkactions/scripts/aol.lua
[11/07/2011 21:48:52] Description:
[11/07/2011 21:48:52] data/talkactions/scripts/aol.lua:6: attempt to call global 'doSendPlayerTextMessage' (a nil value)
[11/07/2011 21:48:52] stack traceback:
[11/07/2011 21:48:52] data/talkactions/scripts/aol.lua:6: in function <data/talkactions/scripts/aol.lua:1>