OFPEC Forum

Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: max on 03 Nov 2002, 15:03:23

Title: Could anyone help me with an error in my config-file?
Post by: max on 03 Nov 2002, 15:03:23
When I try to load OFP i get this error message:
 
Quote
'ak5blj\config.cpp/CfgWeapons/AK5BLJ. ': '{' encountered insted of '='

Could anyone help me?

This is my first time making a CPP-file so there could lots errors that I'm not aware of yet.

Thanks!

(I had to convert the file into txt so that I could attach it.)
Title: Re:Could anyone help me with an error in my config-file?
Post by: major asshole on 04 Nov 2002, 07:56:08

G;day

As far as I can tell you have 2 "{" doing nothing

The first one is at the end of the class FullAuto section
remove it

And the second one is at the end of the magazine definitions section
remove this too

hope this helps

L8R
Title: Re:Could anyone help me with an error in my config-file?
Post by: max on 04 Nov 2002, 17:37:31
Thanks m8.
But now I get a new error:
Quote
ak5blj\config.cpp/CfgVehicles/: Undenfined base class 'All'

Any ideas ???
Title: Re:Could anyone help me with an error in my config-file?
Post by: major asshole on 04 Nov 2002, 18:11:15

G'day

Ok. You forgot to put  class All {}; in your CfgVehicles section

so it's
 class CfgVehicles
{
class All {};
class AllVehicles: All {};
etc.

hth

L8R
Title: Re:Could anyone help me with an error in my config-file?
Post by: max on 04 Nov 2002, 18:52:21
Thanks again m8 ;)
Just one more problem left now :D
The sight doesn't work, I can't aim the thing! And when I go into "scope-mod" I just spinn around!
It's probably because I've missed to add something to the CPP-file again  ::)

Any ideas ???
Title: Re:Could anyone help me with an error in my config-file?
Post by: CrunchyFrog on 04 Nov 2002, 20:07:42
Is the rifle a "Custom" p3d, or just one made by BIS
Title: Re:Could anyone help me with an error in my config-file?
Post by: max on 04 Nov 2002, 20:14:12
Custom, made it myself. My first model :)

http://www.imgstudio.com/IMGphotos/2002/November/4/stamp_original/1104200210050955.jpg (http://www.imgstudio.com/IMGphotos/2002/November/4/stamp_original/1104200210050955.jpg)
Title: Re:Could anyone help me with an error in my config-file?
Post by: max on 06 Nov 2002, 16:51:52
Anyone?