Thread: Era's Radio
View Single Post
  #4  
Old 08-24-2011, 06:43 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
What happens when you use playlooped instead of play?

That script identifies what NPC is stopping it from playing. Might benefit from echo'ing the NPCs id, name and joinedclasses if it has any as well.

Can also try this test:

PHP Code:
//#CLIENTSIDE
function onCreated() {
  
music();
  
test();
}

function 
music() {
  
stopmusic();
  
play("http://GraalEra.com/personal/LoveMyGang.mp3");
  
sleep(1);
}

function 
test() {
  for (
temp.wepplayer.weapons) {
    if (
temp.wep != this) {
      
temp.wep.trigger("PlayerEnters""");
      
sleep(0.2);
      if (!
ismusicplaying()) {
        echo(
"music stopped playing after onPlayerEnters was called in " temp.wep.name);
        
music();
      }
    }
  }

__________________
Quote:
Reply With Quote