QuestionSolvedWhy doesnt this work??

Posts 1–2 of 2 · Page 1 of 1
Why doesnt this work??
 
Code

Totalpoints = 0
local trigger= vgui.Create ("DFrame");
trigger:RegisterEvent("CHAT_MSG_SAY");
trigger:SetScript("OnEvent",function(self,event,ms g)
if event=="CHAT_MSG_SAY" and msg==".givepoint" then
Totalpoints = Totalpoints + 1
end
end);


Why does this not work?

Current error message:
[ERROR] lua/code.lua:10: attempt to call global 'CreateFrame' (a nil value)
1. unknown - lua/splash.lua:10

- - - Updated - - -

Nevermind close thread Im stupid, i figured it out
/Moved to the correct section, solved & closed.
Posts 1–2 of 2 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us