to me I think this code should work but it doesn’t. I am not shure what to do
[code]
song = math.random (1, 5)
function play1 (event)
if (song==1) then
song1 = audio.loadStream(“Maximegame.m4a”)
audio.play(song1)
timer.performWithDelay( 10000, play2s)
end
end
function play2 (event)
if (song==2) then
song2 = audio.loadStream(“Checkmate.mp3”)
audio.play(song2)
timer.performWithDelay( 10000, play3s)
end
end
function play3 (event)
if (song==3) then
song3 = audio.loadStream(“08TechNStuff.mp3”)
audio.play(song3)
timer.performWithDelay( 10000, play4s)
end
end
function play4 (event)
if (song==4) then
song4 = audio.loadStream(“06RatherEscape.mp3”)
audio.play(song4)
timer.performWithDelay( 10000, play5s)
end
end
function play5 (event)
if (song==5) then
song5 = audio.loadStream(“05CrazyPlane.mp3”)
audio.play(song5)
timer.performWithDelay( 10000, play1s)
end
end
function play1s (event)
song1 = audio.loadStream(“Maximegame.m4a”)
audio.play(song1)
timer.performWithDelay( 10000, play2s)
audio.pause(song5)
end
function play2s (event)
song2 = audio.loadStream(“Checkmate.mp3”)
audio.play(song2)
timer.performWithDelay( 10000, play3s)
audio.pause(song1)
end
function play3s (event)
song3 = audio.loadStream(“08TechNStuff.mp3”)
audio.play(song3)
timer.performWithDelay( 10000, play4s)
audio.pause(song2)
end
function play4s (event)
song4s = audio.loadStream(“06RatherEscape.mp3”)
audio.play(song4)
timer.performWithDelay( 10000, play5s)
audio.pause(song3)
end
function play5s (event)
song5 = audio.loadStream(“05CrazyPlane.mp3”)
audio.play(song5)
timer.performWithDelay( 10000, play1s)
audio.pause(song4)
end
timer.performWithDelay( 1, play1)
timer.performWithDelay( 1, play2)
timer.performWithDelay( 1, play3)
timer.performWithDelay( 1, play4)
timer.performWithDelay( 1, play5)
[import]uid: 23689 topic_id: 17367 reply_id: 317367[/import]