Thread: table behaviour
View Single Post
09/23/20, 08:27 AM   #7
Mipps
Join Date: Sep 2020
Posts: 10
many spelling problems in my example due to hastly thrown together "forum exapmple":

Originally Posted by Wheels View Post
Additionally to what is said above, make sure you're consistent with your table names.
On line 1 you declare a table called addonName
On line 2 you try and place a string into addon.name, but the table 'addon' is not the same as 'addonName'.

Originally Posted by sirinsidiator View Post
"function" is a keyword, not a table. When you write "function.OnAddOnLoaded()" it's invalid code. Look closely at the tutorial in your image. It has "function FooAddon.OnAddOnLoaded" in that line.

should be:

function addonName.OnAddOnLoaded()
...

Last edited by Mipps : 09/23/20 at 08:32 AM.
  Reply With Quote