try this
function onSay(cid, words, param, channel)
local money = 0
for id, price in pairs({[7636] = 5, [7635] = 10}) do
if isContainer(id) then
if getContainerCapById(id) == 20 then
local a = getPlayerItemCount(cid, id)
doPlayerRemoveItem(cid, id, a)
money =...