BNGetGameAccountInfo() returning nil
View Single Post
05-20-19, 05:24 AM
A Molten Giant
Join Date: Dec 2005
Originally Posted by
So the error is happening cause of something blizzard is doing then?
The manner in which you pass the function you use to process the events affects what arguments you get passed during runtime.
widget:SetScript("OnEvent, function(self, event, ...) end)
would (in most cases) be same as widget, followed by the event that called the function, and a list of potential arguments.
In your code you mislabel it like
widget:SetScript("OnEvent, function(event, ...) end)
thus you now use event thinking it's the event name, but it's actually the widget reference, and the arguments following when unpacked like
local arg1, arg2 = ...
now actually set arg1 to be the event, then arg2 would be the first argument of that event.
View Public Profile
Send a private message to Vlad
Find More Posts by Vlad