Inventory:Get(xxxx) only returns a single item (inventory slot). Inventory("itemid=xxxx") returns a table with however many stacks it found.
You'll need to add them up yourself.
Does that help?
how did you get the GUI field to size correctly?
-Andrew
You'll need to add them up yourself.
Does that help?
Code:
local inv= Inventory("itemid="..fishID)
if (inv) then
for k,item in pairs(inv) do
d("------------"..item.name..": "..item.count)
end
end
how did you get the GUI field to size correctly?
-Andrew