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?
if music exist(player_action_sfx(which_slot_is_up,choosen_action)) = 1
stop music player_action_sfx(which_slot_is_up,choosen_action)
play music player_action_sfx(which_slot_is_up,choosen_action)
endif
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...