• Why do I get this error msg?
    3 replies, posted
Hello, I'm back xd I want to ask you why do I get this error msg? https://files.facepunch.com/forum/upload/308740/7cdd68a4-6f7c-43ab-858d-7757c6fdea30/Screenshot_24.png The Code: local frame=vgui.Create("DFrame") frame:SetSize(600,600) frame:Center() frame:SetVisible(true) frame:MakePopup() frame.Paint = function(s,w,h) draw.RoundedBox(0,0,0,w,h,Color(255,0,0)) --UMRANDUNG draw.RoundedBox(0,2,2,w-4 ,h-4,Color(40,40,40)) --INNEN end local button=vgui.Create("DButton",frame) button:SetPos(225,30) button:SetSize(150,50) button:SetText("GodMode ON") button.Paint=function(s,w,h) draw.RoundedBox(0,0,0,w,h,Color(153, 0, 0) end Thx you guys for ur help
look at the RoundedBox function used inside the button paint function
Place a ) at the end of the draw.RoundedBox in the DButton paint function.
Im sorry, but comeon..the console tells you EXACLY whats wrong, and even where it is, and what to do to fix it..
Sorry, you need to Log In to post a reply to this thread.