Home   Help Search Login Register  

Author Topic: Could anyone help me with an error in my config-file?  (Read 2037 times)

0 Members and 3 Guests are viewing this topic.

max

  • Guest
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.)

major asshole

  • Guest
Re:Could anyone help me with an error in my config-file?
« Reply #1 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

max

  • Guest
Re:Could anyone help me with an error in my config-file?
« Reply #2 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 ???

major asshole

  • Guest
Re:Could anyone help me with an error in my config-file?
« Reply #3 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

max

  • Guest
Re:Could anyone help me with an error in my config-file?
« Reply #4 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 ???

CrunchyFrog

  • Guest
Re:Could anyone help me with an error in my config-file?
« Reply #5 on: 04 Nov 2002, 20:07:42 »
Is the rifle a "Custom" p3d, or just one made by BIS

max

  • Guest

max

  • Guest
Re:Could anyone help me with an error in my config-file?
« Reply #7 on: 06 Nov 2002, 16:51:52 »
Anyone?