Quantcast
WoWInterface - View Single Post - Button:SetScript
View Single Post
08-21-14, 01:49 PM   #2
Vrul
An Onyxian Warder
 
Vrul's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2007
Posts: 362
That last line should just be:
Code:
btnLock:SetScript("OnClick", printTest)
Using printTest() is trying to use the return of the function call where just printTest is passing the function itself.
  Reply With Quote