ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   Lua/XML Help (https://www.esoui.com/forums/forumdisplay.php?f=175)
-   -   lua error when following the tutorial on wiki (https://www.esoui.com/forums/showthread.php?t=589)

zeox 04/05/14 02:22 PM

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

Wukar 04/05/14 03:42 PM

nil means nothing or not set at all where an integer is expected. You missed something ;)

Gillymead 04/08/14 04:44 AM

If you're still having this issue Zeox can you post both the LUA code and the XML you have?


All times are GMT -6. The time now is 12:51 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI