View Single Post
  #7  
Old 12-17-2015, 03:58 AM
ffcmike ffcmike is offline
Banned
Join Date: Jul 2004
Location: London
Posts: 2,029
ffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond repute
Send a message via AIM to ffcmike Send a message via MSN to ffcmike
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".
Reply With Quote