Help me please my clientside Lua.

Anyone can help me with this lua please ive got some problem:

[lua]local function DMenu()
PropertySheet = vgui.Create( “DPropertySheet” )
PropertySheet:SetParent( DermaPanel )
PropertySheet:SetPos( 5, 30 )
PropertySheet:SetSize( 340, 315 )

local DermaListViewOne = vgui.Create(“DListView”)
DermaListView:SetParent(DermaPanel)
DermaListView:SetPos(25, 50)
DermaListView:SetSize(450, 625)
DermaListView:SetMultiSelect(false)
DermaListView:AddColumn(“Name”) – Add column
DermaListView:AddColumn(“Amount of kills”)

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

local DermaListViewTwo = vgui.Create( “DButton” )
DermaButton:SetParent( DermaPanel ) – Set parent to our “DermaPanel”
DermaButton:SetText( “Close It” )
DermaButton:SetPos( 25, 50 )
DermaButton:SetSize( 150, 50 )
DermaButton.DoClick = function ()
Dmenu:Close()
end

PropertySheet:AddSheet( “Some Menu”, DermaListViewOne, “gui/silkicons/user”, false, false, “WOW It’s a text box!!!” )
PropertySheet:AddSheet( “Super Menu”, DermaListViewTwo “gui/silkicons/group”, false, false, “Can I haz meh cheezburger now?” )

end

concommand.Add( “+DMenu”, DMenu )[/lua]

Whats the Error >:(

well :

autorun/client/dmenu.lua:8: attempt to index global ‘DermaListView’ (a nil value)

I dont know why and i also want to Be able to close the window.

Look to Part 8. Make it like i did

Ahh i see :smiley: thanks alot :slight_smile: So the code is :

[lua]local function DMenu()
PropertySheet = vgui.Create( “DPropertySheet” )
PropertySheet:SetParent( DermaPanel )
PropertySheet:SetPos( 5, 30 )
PropertySheet:SetSize( 340, 315 )

local DListViewOne = vgui.Create(“DListView”)
DListView:SetParent(DermaPanel)
DListView:SetPos(25, 50)
DListView:SetSize(450, 625)
DListView:SetMultiSelect(false)
DListView:AddColumn(“Name”) – Add column
DListView:AddColumn(“Amount of kills”)

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

local DListViewTwo = vgui.Create( “DButton” )
DermaButton:SetParent( DermaPanel ) – Set parent to our “DermaPanel”
DermaButton:SetText( “Close It” )
DermaButton:SetPos( 25, 50 )
DermaButton:SetSize( 150, 50 )
DermaButton.DoClick = function ()
Dmenu:Close()
end

PropertySheet:AddSheet( “Some Menu”, DListViewOne, “gui/silkicons/user”, false, false, “WOW It’s a text box!!!” )
PropertySheet:AddSheet( “Super Menu”, DListViewTwo “gui/silkicons/group”, false, false, “Can I haz meh cheezburger now?” )

end

concommand.Add( “+DMenu”, DMenu )[/lua]

You’re Welcome

Ahh now another Error.
] +dmenu
autorun/client/DMenu.lua:8: attempt to call method ‘SetParent’ (a nil value)
:confused:
[lua]local function DMenu()
PropertySheet = vgui.Create( “DPropertySheet” )
PropertySheet:SetParent( DermaPanel )
PropertySheet:SetPos( 5, 30 )
PropertySheet:SetSize( 340, 315 )

local DListViewOne = vgui.Create(“DListView”)
DListView:SetParent(DermaPanel)
DListView:SetPos(25, 50)
DListView:SetSize(450, 625)
DListView:SetMultiSelect(false)
DListView:AddColumn(“Name”) – Add column
DListView:AddColumn(“Amount of kills”)

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

local DListViewTwo = vgui.Create( “DButton” )
DermaButton:SetParent( DermaPanel ) – Set parent to our “DermaPanel”
DermaButton:SetText( “Close It” )
DermaButton:SetPos( 25, 50 )
DermaButton:SetSize( 150, 50 )
DermaButton.DoClick = function ()
Dmenu:Close()
end

PropertySheet:AddSheet( “Some Menu”, DListViewOne, “gui/silkicons/user”, false, false, “WOW It’s a text box!!!” )
PropertySheet:AddSheet( “Super Menu”, DListViewTwo “gui/silkicons/group”, false, false, “Can I haz meh cheezburger now?” )

end

concommand.Add( “+DMenu”, DMenu )[/lua]

[lua]local function DMenu()
PropertySheet = vgui.Create( “DPropertySheet” )
PropertySheet:SetParent( DermaPanel )
PropertySheet:SetPos( 5, 30 )
PropertySheet:SetSize( 340, 315 )

local DListViewOn = vgui.Create(“DListViewOne”)
DListViewOne:SetParent(DermaPanel)
DListViewOne:SetPos(25, 50)
DListViewOne:SetSize(450, 625)
DListViewOne:SetMultiSelect(false)
DListViewOne:AddColumn(“Name”) – Add column
DListViewOne:AddColumn(“Amount of kills”)

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

local DermaButton = vgui.Create( “DButton” )
DermaButton:SetParent( DermaPanel ) – Set parent to our “DermaPanel”
DermaButton:SetText( “Close It” )
DermaButton:SetPos( 25, 50 )
DermaButton:SetSize( 150, 50 )
DermaButton.DoClick = function ()
Dmenu:Close()
end

PropertySheet:AddSheet( “Some Menu”, DListViewOne, “gui/silkicons/user”, false, false, “WOW It’s a text box!!!” )
PropertySheet:AddSheet( “Super Menu”, DermaButton “gui/silkicons/group”, false, false, “Can I haz meh cheezburger now?” )

end

concommand.Add( “+DMenu”, DMenu )[/lua]

Sorry. I can’t help you. I’m not good in Derma ^^
/edith. okay… it’s already fix’d ^^