idk why but when I open the chest i get the item and it returns
"You have found a reward, but you don't have enough space." and then i can do it again... you know why?
It's some kind of error i cant figure what it is, i know it is something right here:
if(doPlayerAddItemEx(cid, reward.uid, false) ~= RETURNVALUE_NOERROR) then
result = "You have found a reward weighing " .. getItemWeightByUID(reward.uid) .. " oz. It is too heavy or you have not enough space."
else
it was working before, i don't know what i've changed that now that is a bug i cant fix