Lua proplems

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 );

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” )

end
concommand.Add( “rp_menu”, RpDERMA );

You need a end at the end of your function to close the function.

uh thanks new i needed one some where but wasnt sure

Em, Did you just spell “Proplems” in replacement of “problems”

[editline]08:22PM[/editline]

for k,v in pairs(player.GetAll()) do
SheetItemThree:AddLine(v:Nick(),v:Frags()) – Add lines
end

That is what you posted, Think about that for a minute… What is v:Frags going to do? v:Nick also.

It’s going to return the number of kills and the player’s nickname.

yeah for some reason i type problems wrong a lot

That’s a bit of a problem.

I myself know what it does… -.-, I’m helping the OP learn Lua a bit.

[editline]11:12PM[/editline]

That.