function GM:ScoreboardShow() Problems


function GM:ForceDermaSkin()
	return "Stramic"
end
function GM:ScoreboardShow()

Dermascore = vgui.Create(DFrame)
Dermascore:SetSize(500,800)
Dermascore:SetPos(300,200)
Dermascore:SetTitle("Stramic Lobby and Lounge")
Dermascore:SetVisible( true )
Dermascore:SetDraggable( false )
Dermascore:ShowCloseButton( false )

Dermacolumn = vgui.Create(DLabel, Dermascore)
Dermacolumn:SetSize(300,100)
Dermacolumn:SetPos (1,1)
Dermacolumn:SetText("Players")


end
  function GM:ScoreboardHide()
	
end

  
 function GM:HUDDrawScoreBoard()  
   
 end 

Thats all i have for my scoreboard, I JUST start coding it and i get problems. This error specifically.

ERROR: GAMEMODE:‘ScoreboardShow’ Failed: includes/extensions/vgui_sciptedpanels.lua:150: bad argument #1 to ‘CreateX’ (string expected, got table)

What does that even mean! Did something in the base file where the scoreboardshow func is located Mess up?

Use [lua ][/lua ] tags without the spaces in them, works better instead of [ code ].

Shows which line is which.

Edit:
Whoah just looked at a really weird error, is that the same function/hook other custom scoreboards use?

I could be wrong but dosent vgui.Create() take a string.
[lua]
function GM:ForceDermaSkin()
return “Stramic”
end

function GM:ScoreboardShow()
Dermascore = vgui.Create(“DFrame”)
Dermascore:SetSize(500,800)
Dermascore:SetPos(300,200)
Dermascore:SetTitle(“Stramic Lobby and Lounge”)
Dermascore:SetVisible( true )
Dermascore:SetDraggable( false )
Dermascore:ShowCloseButton( false )

Dermacolumn = vgui.Create("DLabel", Dermascore)
Dermacolumn:SetSize(300,100)
Dermacolumn:SetPos (1,1)
Dermacolumn:SetText("Players")

end

function GM:ScoreboardHide()

end

function GM:HUDDrawScoreBoard()

end
[/lua]

You’re right, I completely overlooked that.

Oh man how could i have overlooked that. Thanks :smiley: