OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Flauta on 10 Mar 2005, 23:14:20

Title: Rare Problem!
Post by: Flauta on 10 Mar 2005, 23:14:20
Yesterday, i was making a mision (when dont I?:p), i put in the description.ext, the snippet to add music to that mission, i tested it (it worked) and continuing makin the mission, Till I got a OFP:R breackdown when saving the mission...
after restarting I tried to open the mission, but says that enountered in description.ext\cfgmusic "c" insteas of ";" and shut off wolle OFP
I have Disable the description.ext and the mission worked normaly...

What a'hell is wrong whit this??!?!!?!!1

Code: [Select]

onLoadMission = "Dia 1: Tomando Fuerza"
onLoadMissionTime = false

showWatch = 1
showCompass = 1
showNotepad = 1
showGPS = 0
showMap = 1




class CfgMusic
{
   tracks[]={soldado,truble}

   class soldado
   {
      name = "Ska-p - Niño Soldado";
      sound[] = {\Music\Soldado.ogg, db, 1.0};
   };
   class truble
   {
      name = "Bob Marley - So much Truble";
      sound[] = {\Music\truble.ogg, db, 1.0};
   };
};

want any explain!! there is a sintax error? maybe I've Deleted a letter or something else...
Title: Re:Rare Problem!
Post by: Planck on 10 Mar 2005, 23:27:48
Possibly you need the ';' after this line:

tracks[]={soldado,truble}

Like so:

tracks[]={soldado,truble};


Planck
Title: Re:Rare Problem!
Post by: Flauta on 10 Mar 2005, 23:53:29
lol! it solved the problem, bloody sintax problem!

Thanks a lot1