Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / music exist not working??

Author
Message
Cybermind
Valued Member
23
Years of Service
User Offline
Joined: 28th Nov 2002
Location: Denmark
Posted: 4th Jun 2013 13:15 Edited at: 4th Jun 2013 13:19
Hi, I have this piece of code that despite checking if music exist before playing it still gives me a runtime error saying that music does not exist???

Does anybody have a clue of what might be wrong?



EDIT: Nevermind, the "player_action_sfx(which_slot_is_up,choosen_action)" could be zero and music number can't be zero So it was the "music exist(0)" that gave the error

The byte chrunchers are coming...
DIVIDING BY ZERO/BECAUSE WE SUCK...

Login to post a reply

Server time is: 2026-07-07 07:36:21
Your offset time is: 2026-07-07 07:36:21