• Dlabel paint?
    3 replies, posted
Okay so I have this old addon that was released for free, but for some reason I get this error (most likely removed code). "attempt to call field 'Paint' (a nil value)" This is the line it is saying is nil: "return DLabel.Paint(self , ...)". What would I put paint to now in this case?
[code] DLabel.Paint = function() end [/code] I think is what you are looking for
[QUOTE=NiandraLades;47963099][code] DLabel.Paint = function() end [/code] I think is what you are looking for[/QUOTE] I really have no idea. This is what it currently is doing. [QUOTE] function dlabel:Paint(...) self:SetText(string.format("Autoreconnect in %d seconds!" , retrytime - CurTime())) return DLabel.Paint(self , ...) end [/QUOTE]
[QUOTE=tripps41;47963623]I really have no idea. This is what it currently is doing.[/QUOTE] Replace all of that code with [code] dlabel:SetText(string.format("Autoreconnect in %d seconds!" , retrytime - CurTime())) [/code]
Sorry, you need to Log In to post a reply to this thread.