Jump to content

Erro attempt to index field '?' (a nil value)


Luiz_Eduardo21

Recommended Posts

Posted

attempt to index field '?' (a nil value)
```lua
function FormatTableItens(tablei)
    TabelaItens = tablei
    if #tablei ~= 0 then
        for i, v in ipairs(tablei) do
            local Item = v.Item
            => v.Peso = Config.Itens[Item].peso * v.Quantidade
        end
    end
    return TabelaItens
end```

  • Tut locked this topic
  • Moderators
Posted

Welcome to the forums!

Locking this as it's not to do with a resource.

If you're looking for help with scripting, please use one of these:
Scripting section (EN/US)
Other languages

Give a man a fish and you feed him for a day. Teach him how to fish and you feed him for a lifetime - Lao Tzu

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...