What is wrong with this? It says that foo is global, and that it's nil.. when obviously it should be local (they all should), and not nil..
Code:
local frame=CreateFrame("Frame")
frame:SetScript("OnUpdate",function(self)
if not foo then local foo,bar,text="foo","bar","" end
text=foo..bar
end)
I'm really starting to
hate lua with a passion. To bad there are no alternatives.