anyone know whats wrong with my lua? it has a error in console like
autorun/RpMenu.lua:52: ‘end’ expected (to close ‘function’ at line 1 or 17) near ‘<eof>’
ive tryed changing a few things and it just gives eigher one of those errors
any idea? or a link to a tutorial?
Code Below
function RpDERMA( )
local DermaPanel = vgui.Create( “DFrame” )
DermaPanel:SetPos( 50,50 )
DermaPanel:SetSize( 1000, 900 )
DermaPanel:SetTitle( “Rpmenu” )
DermaPanel:SetVisible( true )
DermaPanel:SetDraggable( true )
DermaPanel:ShowCloseButton( true )
DermaPanel:MakePopup()
local SheetItemOne = vgui.Create( “DButton” )
SheetItemOne:SetParent( SheetItemOne )
SheetItemOne:SetText( “Kill” )
SheetItemOne:SetPos( 25, 50 )
SheetItemOne:SetSize( 150, 50 )
SheetItemOne.DoClick = function ()
RunConsoleCommand( “Kill” )
local SheetItemOne = vgui.Create( “DCheckBoxLabel” )
SheetItemOne:SetText( “Use Props?” )
SheetItemOne:SetConVar( “some_convar” )
SheetItemOne:SetValue( 1 )
SheetItemOne:SizeToContents()
local SheetItemTwo = vgui.Create( “DCheckBoxLabel” )
SheetItemTwo:SetText( “Use SENTs?” )
SheetItemTwo:SetConVar( “some_convar” )
SheetItemTwo:SetValue( 1 )
SheetItemTwo:SizeToContents()
local SheetItemThree = vgui.Create(“DListView”)
SheetItemThree:SetParent(DermaPanel)
SheetItemThree:SetPos(25, 50)
SheetItemThree:SetSize(450, 625)
SheetItemThree:SetMultiSelect(false)
SheetItemThree:AddColumn(“Name”) – Add column
SheetItemThree:AddColumn(“Amount of kills”)
for k,v in pairs(player.GetAll()) do
SheetItemThree:AddLine(v:Nick(),v:Frags()) – Add lines
end
PropertySheet:AddSheet( “Commands”, SheetItemOne, “gui/silkicons/user”, false, false, “A list of Commands” )
PropertySheet:AddSheet( “GunDealer”, SheetItemTwo, “gui/silkicons/group”, false, false, “Gundealer Commands” )
PropertySheet:AddSheet( “PlayerList”, SheetItemThree, “gui/silkicons/group”, false, false, “A list of players” )
concommand.Add( “rp_menu”, RpDERMA );