Thread Tools Display Modes
09/23/20, 07:33 AM   #1
Wheels
AddOn Author - Click to view addons
Join Date: Feb 2017
Posts: 60
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'.
  Reply With Quote
09/23/20, 08:27 AM   #2
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

ESOUI » Developer Discussions » Lua/XML Help » table behaviour


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off