12-17-2015, 03:58 AM
|
Banned
|
Join Date: Jul 2004
Location: London
Posts: 2,029
|
|
It looks as if getmusicfilename() may be acting faulty. You could try out-putting it's value for debugging to see if it's somehow being reset, and if necessary store the current playing song in a variable instead.
I actually use stopmidi() even though it's supposedly the same function as stopmusic() and kept just for compatibility purposes, does this work better?
Also while this is not the problem here player.level is an object, to compare it with a string it's better to use "player.level.name". |
|
|