Page 1 of 1

IsPlayingMusic() has a bug?

Posted: Sun Jan 01, 2012 12:52 pm
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?

Re: IsPlayingMusic() has a bug?

Posted: Wed Jan 04, 2012 12:21 pm
by airsoftsoftwair
That's not a bug. Of course IsMusicPlaying() will fail if you pass a non-existent id to it.

Re: IsPlayingMusic() has a bug?

Posted: Wed Jan 04, 2012 3:16 pm
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.

Re: IsPlayingMusic() has a bug?

Posted: Thu Jan 05, 2012 11:21 am
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?