OFPEC Forum
Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: oyman 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
-
o ya and if u wondering y the config is .txt is cause it wouldnt let me attach the .cpp version
-
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.
-
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 )
-
o ya thats how u do it
im so stupid ::)
ill try now
-
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.