Home   Help Search Login Register  

Author Topic: config problems  (Read 1423 times)

0 Members and 1 Guest are viewing this topic.

Offline oyman

  • Members
  • *
  • king of pings
config problems
« on: 13 Oct 2003, 02:30:33 »
i am making a M2 AA post thing and whenever i try to start ofp up to play with it ingame i get this error

oy_m2AA\config.cpp/: 'c' encountered instead of '{'

im not really good at configs so i got confused ;D

and here is my config file
« Last Edit: 15 Oct 2003, 04:00:55 by oyman »

Offline oyman

  • Members
  • *
  • king of pings
Re:config problems
« Reply #1 on: 13 Oct 2003, 02:34:10 »
o ya and if u wondering y the config is .txt is cause it wouldnt let me attach the .cpp version

dharbert

  • Guest
Re:config problems
« Reply #2 on: 14 Oct 2003, 07:14:35 »
The top part of your config should look like this:

class CfgPatches
{
   class oy_m2AA
   {
      units[] = {"oy_m2AA"};
      weapons[] = {"nuke"};
      requiredVersion = 1.30;
   };
};

Everything else looked OK.  Let me know if it works.
« Last Edit: 14 Oct 2003, 07:15:31 by dharbert »

TMan10K

  • Guest
Re:config problems
« Reply #3 on: 14 Oct 2003, 17:49:34 »
While we're talking about config problems, can someone please help me sort out my config. It did originally work when I only had one unit and one gun, but now I have added another unit and another gun, but now it just crashes to desktop, and doesn't give me an error, so I'm not sure what to change  ???

I do know roughly how to do the config.cpp, but now I'm stumped, so if anyone could help me, I'd appreciate it.
By the way, I know it is called "configa" but that is because it screwed up for some reason when I tried attaching it.

(I bet it's something really stupid like I missed a ; somewhere :D )
« Last Edit: 14 Oct 2003, 17:53:33 by TMan10K »

Offline oyman

  • Members
  • *
  • king of pings
Re:config problems
« Reply #4 on: 14 Oct 2003, 19:00:22 »
o ya thats how u do it

im so stupid ::)

ill try now

TMan10K

  • Guest
Re:config problems
« Reply #5 on: 17 Oct 2003, 23:36:48 »
Can someone please sort out my config? It shouldn't take long for an experienced config writer to figure out the problem.

It's attached 2 posts above this one.