try this:
function onSay(cid, words, param, channel)
if(param == '') then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.")
return true
end
local t,ret = string.explode(param, ",")
local id = tonumber(t[1]) or getItemIdByName(t[1], false) or...