Thread Tools Display Modes
04/05/14, 02:22 PM   #1
zeox
Join Date: Apr 2014
Posts: 1
lua error when following the tutorial on wiki

hello good people, I get the following error when writing the exact same code as here (the first part):
"attempt to index a nil value"

this is on the fourth line, which is this one:
MyFirstAddonCounter:SetText(string.format("Counter: %d", counter))

why is this? the counter variable is clearly initialized as 1 :S

This is my first time fiddling with lua, so I would appreciate any help here!
thanks
  Reply With Quote
04/05/14, 03:42 PM   #2
Wukar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 27
nil means nothing or not set at all where an integer is expected. You missed something
  Reply With Quote
04/08/14, 04:44 AM   #3
Gillymead
 
Gillymead's Avatar
Join Date: Mar 2014
Posts: 5
If you're still having this issue Zeox can you post both the LUA code and the XML you have?
  Reply With Quote

ESOUI » Developer Discussions » Lua/XML Help » lua error when following the tutorial on wiki


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