Math.random broken after Steam-Pipe?

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 :slight_smile:

mp3 files are no longer supported. Convert your songs to ogg.

wow, really?

does wav still work then?

mp3 playback is disabled, garry is bringing back though

http://forum.facepunch.com/showthread.php?t=1276264&page=2

thant explaines why the script didnt return any errors :slight_smile:

EDIT:

Thanks a lot. Working now :slight_smile: