Home   Help Search Login Register  

Author Topic: [SOLVED]Description.ext problem  (Read 1423 times)

0 Members and 1 Guest are viewing this topic.

Offline Rytuklis

  • Members
  • *
[SOLVED]Description.ext problem
« on: 28 Aug 2012, 12:57:15 »
Code: [Select]
//////////////////////////////////////////////////////////////////////////
// Operation Flashpoint Description File
// Generated by Chris' OFP Script Editor
// Version 3.1.0000
//////////////////////////////////////////////////////////////////////////

class CfgSounds
{
// List of sounds (.ogg files without the .ogg extension)
sounds[] = {intro};

// Class definition needed for each sound
class intro
{
// Name to display in mission editor
name = "intro";
// Sound path, volume, pitch
sound[] = {\sound\intro.ogg, db + 10, 1.0};
// Sound title text (set to no text)
titles[] = {0, ""};
};
};
class CfgIdentities
{
  class Slava
  {
    name = "Commander Slava";
    face = "Face1";
    glasses="None";
    speaker = "Dan";
    pitch = 1.00;
  };
};
{
class Tomas
{
name="Commander Tomas";
face="Face14";
glasses="None";
speaker="Adam";
pitch=1.1;
};
};

I dont understand what's wrong with the code. When i want to load my mission with this Description.ext i get an error about some brackets encountered instead of equals.
« Last Edit: 28 Aug 2012, 14:02:06 by Rytuklis »

Offline Gruntage

  • Missions Depot
  • Administrator
  • *****
  • How do I get outta this chickensh*t outfit?
Re: Description.ext problem
« Reply #1 on: 28 Aug 2012, 13:24:15 »
The problem is that you've got brackets and semi-colons in the wrong places. Try this:

Code: [Select]
class CfgIdentities
{
class webb
{
name = "David Webb";
face = "face7";
glasses = "none";
speaker = "Jonah";
pitch = 1.0;
};
class jackson
{
name = "Eugene Jackson";
face = "face25";
glasses = "none";
speaker = "Peter";
pitch = 1.0;
       };
       class preacher
       {
      name = "Robert Preacher";
      face = "face16";
      glasses = "none";
      speaker = "Rob";
      pitch = 1.0;
       };
};
« Last Edit: 28 Aug 2012, 13:26:03 by Gruntage »
"But one thing I can tell you from not just OFP but life in general:  criticism is directly proportional to quality. The more criticism a mission receives, the better the outcome" - macguba

Offline Rytuklis

  • Members
  • *
Re: Description.ext problem
« Reply #2 on: 28 Aug 2012, 14:01:45 »
It worked. Thank you for your help  :good: :clap: