General > Developers Corner
Derma Question
MrPresident:
Stickly's previous post is pretty much exactly what I was trying to show, except he explained it much better than I did.
I hope this helps.
Bite That Apple:
Thank you all for assisting me, though it did not appear to work for me. It was also apparent to me that I did not send my entire code, so some of it was lacking information.
This is my NEW CLIENTSIDE that I got from Mr. President.
--- Code: ---function GM:ShowTeam( ply )
ply:SendLua("TeamDeathMatchMenu()")
end
--- End code ---
This is my entire SERVERSIDE that I attempted to modify using what first Mr. President said, and it didn't really work. So then I tried to use Sticky Man's, but this wouldn't work at all, like not an error, no nothing, just nothing worked.
--- Code: ---function TeamDeathMatchMenu(ply)
MainMenuFrame = vgui.Create( "DFrame" )
MainMenuFrame:SetSize( 600, 250 )
MainMenuFrame:SetTitle("Team Deathmatch Menu: Version" )
MainMenuFrame:Center()
MainMenuFrame:ShowCloseButton( true )
MainMenuFrame:SetDraggable( false )
if MainMenuFrame:IsVisible() then
MainMenuFrame:SetVisible(false)
else
MainMenuFrame:SetVisible(true)
end
function MainMenuFrame:Paint( w, h )
draw.RoundedBox( 0, 0, 0, w, h, Color(team.GetColor(LocalPlayer():Team()).r,team.GetColor(LocalPlayer():Team()).g,team.GetColor(LocalPlayer():Team()).b,50))
surface.SetDrawColor(0,0,0)
surface.DrawOutlinedRect(1,1,w-1,h-1)
end
end
concommand.Add( "TeamDeathMatchMenu", TeamDeathMatchMenu )
--- End code ---
An Error Has Occurred!
array_keys(): Argument #1 ($array) must be of type array, null given
[0] Board index
Go to full version