Home   Help Search Login Register  

Author Topic: Sound problem  (Read 439 times)

0 Members and 1 Guest are viewing this topic.

mackan444

  • Guest
Sound problem
« on: 16 Apr 2003, 21:59:46 »
Hi, I need some music to my new mission. I'll code the sounds like this

class CfgMusic
{
  tracks[]=
  {
      East_Win, West_Win
  };
 
  class East_Win
  {
      name = "East_Win";
      sound[] = {\music\win_american.ogg, db+50, 1.0};
  };
  class West_Win
  {
      name = "West_Win";
      sound[] = {\music\win_british.ogg, db+50, 1.0};
  };
};



but it wont play the music, help me!

Captain Winters

  • Guest
Re:Sound problem
« Reply #1 on: 16 Apr 2003, 22:47:49 »
Your description should look like this:

class CfgMusic
{
  tracks[] = {East_Win, West_Win}
  }
  class East_Win
  {
      name = "East_Win";
      sound[] = {\music\win_american.ogg, db+50, 1.0};
  }
  class West_Win
  {
      name = "West_Win";
      sound[] = {\music\win_british.ogg, db+50, 1.0};
  };
};

You just had too many brackets!

Tanks!  8)
« Last Edit: 16 Apr 2003, 22:48:48 by Captain Winters »

mackan444

  • Guest
Re:Sound problem
« Reply #2 on: 16 Apr 2003, 22:58:23 »
dosn't work, says like } Replacing ;

Or something

Captain Winters

  • Guest
Re:Sound problem
« Reply #3 on: 17 Apr 2003, 01:41:54 »
class CfgMusic  
{  
tracks[] = { "West_Win, East_Win" };  
class East_Win  
{  
name = "East Win";  
sound[] = {"\music\East_Win.ogg", db+50, 1.0};
}
class West_Win  
{  
name = "West Win";  
sound[] = {"\music\West_Win.ogg", db+50, 1.0};
};
};

There ya go!  8)

tanks!  8)

mackan444

  • Guest
Re:Sound problem
« Reply #4 on: 17 Apr 2003, 01:42:43 »
thnx