I have a VERY Noobie Question.
Why won’t this work?
Error:
autorun/client/combinemenu.lua:17: ')' expected near '"/y Citizen Stop or recive disiplanry action!"'
Code:
function CombineMenu()
local DermaPanel = vgui.Create( "DFrame" )
DermaPanel:SetPos( 50, 50 )
DermaPanel:SetSize( 500, 500 )
DermaPanel:SetTitle( "Combine Menu" )
DermaPanel:SetVisible( true )
DermaPanel:SetDraggable( true )
DermaPanel:ShowCloseButton( true )
local DermaButton1 = vgui.Create( "DButton" )
DermaButton1:SetParent( DermaPanel )
DermaButton1:SetText( "Stop!" )
DermaButton1:SetPos( 25, 50 )
DermaButton1:SetSize( 100, 25 )
DermaButton1.DoClick = function () -- This is DoClick
RunConsoleCommand( "say" "/y Citizen Stop or recive disiplanry action!" )
RunConsoleCommand( "say" "/g Pursuing Suspect. Please stand by." )
end
end
concommand.Add("+combinemenu", CombineMenu)