Hallo,
ich brauch mal hilfe bei meinem Radio addon
hier istder code:
Lua Code:
local RadioPanel = vgui.Create( "DFrame" ) RadioPanel:SetPos( 50,50 ) RadioPanel:SetSize( 450, 100 ) RadioPanel:SetTitle( "Technobase.fm" ) RadioPanel:SetDraggable( true ) RadioPanel:ShowCloseButton( true ) RadioPanel:MakePopup() RadioPanel:SetVisible(false) Winmp = vgui.Create( "HTML" , RadioPanel); Winmp:SetPos(15,30); Winmp:SetSize(420,55); Winmp:SetVisible(true); Winmp:SetHTML( url ); Winmp:Refresh(true); url = [[ <EMBED TYPE="application/x-mplayer2" SRC = "http://listen.technobase.fm/dsl.asx" NAME = "MediaPlayer" WIDTH = "400" HEIGHT = "30" ShowControls = "1" ShowStatusBar = "0" ShowDisplay = "0" autostart = "0"></EMBED></OBJECT> ]] concommand.Add("+tb", function() RadioPanel:SetVisible(true) end ) concommand.Add("-tb", function() RadioPanel:SetVisible(false) end )
nur kommt wen ich den script lade:
danke für eure hilfePHP-Code:
autorun/client/stream.lua:13: bad argument #1 to 'SetHTML' (string expected, got nil)