OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: ProudPotter2490 on 15 Apr 2005, 23:27:43

Title: Another sound problem...
Post by: ProudPotter2490 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  :)!
Title: Re:Another sound problem...
Post by: Planck 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
Title: Re:Another sound problem...
Post by: ProudPotter2490 on 16 Apr 2005, 00:05:12
Hey Planck!
Well spotted and thanks :)!
ProudPotter2490 :afro: