View Single Post
04-17-09, 11:18 PM   #8
Azul
Banned
 
Azul's Avatar
Join Date: Apr 2009
Posts: 19
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.

Last edited by Azul : 04-17-09 at 11:40 PM.