Hey guys. Im running a TTT server, and I had a "play music on round end" script installed.
But after the update to Steam Pipe, the script stopped working.
[LUA]
local function PlayMusic(wintype)
if wintype == WIN_INNOCENT then
BroadcastLua('surface.PlaySound("i'..math.random(1,4)..'.mp3")')
elseif wintype == WIN_TRAITOR then
BroadcastLua('surface.PlaySound("t'..math.random(1,4)..'.mp3")')
elseif wintype == WIN_TIMELIMIT then
BroadcastLua('surface.PlaySound("timeup.mp3")')
end
end
hook.Add("TTTEndRound", "MyMusic", PlayMusic)
[/LUA]
Did Garry change the math.random function or something? How about the new math.Remap? The script returnes no errors, and ive placed it in /autorun as always.
Any help will be much appreciated :)
mp3 files are no longer supported. Convert your songs to ogg.
[QUOTE=Lexic;40939057]mp3 files are no longer supported. Convert your songs to ogg.[/QUOTE]
wow, really?
does wav still work then?
mp3 playback is disabled, garry is bringing back though
[url]http://facepunch.com/showthread.php?t=1276264&page=2[/url]
[QUOTE=Rocketsurgery;40939091]mp3 playback is disabled, garry is bringing back though
[url]http://facepunch.com/showthread.php?t=1276264&page=2[/url][/QUOTE]
thant explaines why the script didnt return any errors :)
EDIT:
Thanks a lot. Working now :)
Sorry, you need to Log In to post a reply to this thread.