OFPEC Forum
Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: LdMaster on 16 Sep 2002, 15:58:09
-
I have a CPP Error " Undefined base class " i dont now
why but i have a example for Weapon Editing and i do all
what whrite in there whit my own Names exp: M16_2 instead
Ak47_2 . If you have a answer please whrite it .
Ich komme aus Deutschland alle die das Lesen können müssen
gut in der Schule sein oder aus Deutschland kommen !
-
Copy the cpp file into the forum and I'm sure someone will fix that for you mate, it's probably just a small typing problem no big deal ;)
-
How i can copy this in here ?
-
Just attach the config.cpp
-
Or paste it ;)
-
It sounds like you have, well, undefined your M16_2.
The simple way to resolve this is where you see something like this:-
class M16_2: Riffle
{
scopeWeapon=2;
scopeMagazine=2;
model="m16_proxy";
modelOptics="optika_m16";
optics=1;
opticsZoomMin=0.350000;
opticsZoomMax=0.350000;
displayName="$STR_DN_M16";
displayNameMagazine="$STR_MN_M16";
shortNameMagazine="$STR_SN_M16";
drySound[]={"weapons\M16dry",0.010000,1};
magazines[]={"M16","Mortar"};
modes[]={"Single","Burst"};
class Single
{
ammo="BulletSingleW";
multiplier=1;
burst=1;
displayName="$STR_DN_M16";
dispersion=0.000200;
sound[]={"Weapons\M16Single",1.000000,1};
soundContinuous=0;
reloadTime=0.150000;
ffCount=1;
recoil="riffleSingle";
autoFire=0;
aiRateOfFire=5.000000;
aiRateOfFireDistance=500;
useAction=0;
useActionTitle="";
};
class Burst
{
ammo="BulletBurstW";
multiplier=1;
burst=3;
displayName="$STR_DN_M16_BURST";
dispersion=0.000400;
sound[]={"Weapons\M16Burst",1.000000,1};
soundContinuous=0;
reloadTime=0.100000;
ffCount=3;
recoil="riffleBurst3";
autoFire=0;
aiRateOfFire=5.000000;
aiRateOfFireDistance=500;
useAction=0;
useActionTitle="";
};
};
At the "M16_2: Riffle" bit, change the "Riffle" to M16 and above that type the line class M16: Riffle{};
. Hope this solves your problem. 8)
-
[attachment deleted by admin]
-
Hey waths up ? Please help me . I have write my CPP in
here .
-
what does the error message say? it normally tells you where to look and what the problem is
-
No , " only undefined base class "
-
class K_98
{
scopeWeapon = public;
scopeMagazine = private;
Should be:
class K_98: K_98Mag