o meu aqui funcionou:
function onSay(cid, words, param, channel)
local storage = 66988
if param == "" then
return doPlayerSendTextMessage(cid, 27, "Param missing! !post [msg]")
elseif exhaustion.check(cid, storage) then
return doPlayerSendTextMessage(cid, 27, "You need to wait ".. exhaustion.get(cid, storage).."segs to use this command again!")
end
if doPlayerRemoveMoney(cid, 100000) == true then
for _, player in pairs(getPlayersOnline()) do
doPlayerSendTextMessage(player, 20, ""..getCreatureName(cid).."["..getPlayerLevel(cid).."] está vendendo "..param.."")
end
exhaustion.set(cid, storage,120)
else
return doPlayerSendTextMessage(cid, 27, "You need at least 1 crystal coin to use this command!")
end
return true
end
era linha 13 que tava errada, arrumei pra você e testei.
ta assim