IsPlayingMusic() has a bug?

Find quick help here to get you started with Hollywood
Post Reply
User avatar
Juan Carlos
Posts: 933
Joined: Mon Sep 06, 2010 1:02 pm

IsPlayingMusic() has a bug?

Post by Juan Carlos »

I use this instruction for my current project but I have problems because if I don't begin with song music this instruction gives me a mistake, if there isn't a music why this instruction give a error instead of stop, because when I use to test other times when there is play music, this instruction works fine, some idea?
User avatar
airsoftsoftwair
Posts: 5848
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: IsPlayingMusic() has a bug?

Post by airsoftsoftwair »

That's not a bug. Of course IsMusicPlaying() will fail if you pass a non-existent id to it.
User avatar
Juan Carlos
Posts: 933
Joined: Mon Sep 06, 2010 1:02 pm

Re: IsPlayingMusic() has a bug?

Post by Juan Carlos »

Thanks for your answer Andreas, but I use this instruction as the guide explains, variable=IsPlayingMusic(id) in this case 1, because I have assigned the background music as 1 in OpenMusic and PlayMusic(1), I have though in use an interval instead of IsPlayingMusic, because although you don't PlayMusic(1) and there isn't music of background the instruction doens't give this problem, it only checked if there is music not should stop the program.
User avatar
airsoftsoftwair
Posts: 5848
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: IsPlayingMusic() has a bug?

Post by airsoftsoftwair »

Sorry, I'm not sure whether I understand you correctly. Can you post a very small code snippet (max. 10 lines) that illustrates the problem?
Post Reply