many spelling problems in my example due to hastly thrown together "forum exapmple":
Originally Posted by Wheels
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
"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()
...