Home   Help Search Login Register  

Author Topic: Another sound problem...  (Read 763 times)

0 Members and 1 Guest are viewing this topic.

ProudPotter2490

  • Guest
Another sound problem...
« on: 15 Apr 2005, 23:27:43 »
Hello Comrades!
I've got a small problem with cfgMusic in my description.ext file. Heres the code:-
Quote
class cfgMusic
{
   tracks = { franz1,franz2 };

   class franz1
   {
      name = "";
      sound[] = {\music\franz1.ogg, db+20, 1.0};
   };
   class franz2
   {
      name = "";
      sound[] = {"\music\franz2.ogg, db+20, 1.0};
   };
};
The error message says:-
Quote
Config: End of line encountered after \music\franz2.ogg, db+20, 1.0};
If anyone could help, it'd be much appreachiated!
ProudPotter2490 :afro:

PS: ... And yes, it is Franz Ferdinand if your curious  :)!

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Another sound problem...
« Reply #1 on: 15 Apr 2005, 23:42:23 »
Try this one:

Code: [Select]
class cfgMusic
{
   tracks = { franz1,franz2 };

   class franz1
   {
      name = "";
      sound[] = {"\music\franz1.ogg", db+20, 1.0};
   };
   class franz2
   {
      name = "";
      sound[] = {"\music\franz2.ogg", db+20, 1.0};
   };
};


You only had one quote in the second music class, and none in the first.



Planck
I know a little about a lot, and a lot about a little.

ProudPotter2490

  • Guest
Re:Another sound problem...
« Reply #2 on: 16 Apr 2005, 00:05:12 »
Hey Planck!
Well spotted and thanks :)!
ProudPotter2490 :afro: