I have this little code here receiving from another big Dictionary:
local ITEM_ID = frame.Item_ID.Value
local ITEM_INFO = {}
warn(ITEM_INFO)
for i, data in pairs(TABELA_RECEBIDA) do
print(i)
warn(data)
if data[1] == ITEM_ID then
print("Data do item ID!")
ITEM_INFO = data[2]
break
end
end
print("NOVA TABELA: ITEM_INFO:")
print(ITEM_INFO) -- this prints fine as a usual dictionary
print(ITEM_ID.Nome) -- LINE GIVING ERROR!!!!!!!!
THE OUTPUT: error 83: attempt to index number with “Nome”
as you can see the error makes no sense, since the Dictionary is simple:
ITEM_INFO = {
["Nome"] = "Rossi",
["Pos Padrão"] = ....
}