IsPlayingMusic() has a bug?
- Juan Carlos
- Posts: 933
- Joined: Mon Sep 06, 2010 1:02 pm
IsPlayingMusic() has a bug?
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?
- airsoftsoftwair
- Posts: 5848
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: IsPlayingMusic() has a bug?
That's not a bug. Of course IsMusicPlaying() will fail if you pass a non-existent id to it.
- Juan Carlos
- Posts: 933
- Joined: Mon Sep 06, 2010 1:02 pm
Re: IsPlayingMusic() has a bug?
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.
- airsoftsoftwair
- Posts: 5848
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: IsPlayingMusic() has a bug?
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?