I’m having this problem:
perpbuild\gamemode\Music.lua:36: attempt to index global 'vgui' (a nil value)
with this script:
[lua]
local start_html = [[
<html>
<head>
<style type=“text/css”>
body, html{
padding:0px 0px 0px 0px;
margin:0px 0px 0px 0px;
text-align: center;
vertical-align:100%;
height:100%;
}
</style>
</head>
<body scroll=“no”; bgcolor=“black”>
</body>
</html>
]]
–http.Get(“http://gamerfm.co.uk”, “”, Create)
local function Create_Browser(contents, size)
--local offsets = Screen_Offsets[Entity:GetModel()]
--BW = offsets.w
--BH = offsets.h
--Scale = offsets.scale
Browser = vgui.Create( "HTML" )
Browser:SetSize( 90, 90 )
Browser:SetPaintedManually( true )
Browser:SetVerticalScrollbarEnabled( false )
Browser:SetHTML( contents )
Browser:StartAnimate( 1000 )
end
http.Get(“http://gamerfm.co.uk”, “”, Create_Browser)
concommand.Add( “gamerfm”, Create_Browser ) //Now we add a console command for the function we just created. It can be run straight from the console. If you look under the first couple of lines under init.lua, we[/lua] and can’t for the life of me figure out why…
[editline]08:07PM[/editline]
oh god please help…