View Single Post
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