Discord
Steam
/
Developers
/
Why isnt my db..
Login/Join
Event Log
Why isnt my dbutton working
7 replies, posted
Search
In This Thread
title function openmenu() local Frame = vgui.Create( "DFrame" ) Frame:SetTitle( " " ) Frame:SetSize( 500, 750 ) Frame:Center() Frame:MakePopup() Frame.Paint = function( self, w, h ) -- 'function Frame:Paint( w, h )' works too draw.RoundedBox( 0, 0, 0, w, h, Color( 72, 72, 72, 255 ) ) -- Draw a red box instead of the frame local HowThisServerWorks = vgui.Create("DButton", Frame) HowThisServerWorks:SetPos(50, 500) HowThisServerWorks:SetSize(400, 50) HowThisServerWorks:SetText("How The Server Works") function HowThisServerWorks:Paint( w, h ) draw.RoundedBox( 8, 0, 0, w, h, Color( 200, 200, 200 ) ) end function HowThisServerWorks:DoClick() Frame:Remove() TutoralStart()
youre not ending the function DoClick () also next time please put the code in the code format, its hard to read it as normal text
@Trackster im sorry about the code thing but i do have 2 ends to it i just forgot to add them
._. what help do you expect from a code forum if you paste your code not as whole
Past your code in full with code tags
fixed
Are you receiving any errors?
thanks just
Sorry, you need to
Log In
to post a reply to this thread.