Home   Help Search Login Register  

Author Topic: CPP Errors ?  (Read 2112 times)

0 Members and 1 Guest are viewing this topic.

LdMaster

  • Guest
CPP Errors ?
« 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 !

Skaven

  • Guest
Re:CPP Errors ?
« Reply #1 on: 16 Sep 2002, 16:00:50 »
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  ;)

LdMaster

  • Guest
Re:CPP Errors ?
« Reply #2 on: 16 Sep 2002, 18:00:31 »
How i can copy this in here ?

CrunchyFrog

  • Guest
Re:CPP Errors ?
« Reply #3 on: 16 Sep 2002, 21:10:16 »
Just attach the config.cpp

PunkerSXDX

  • Guest
Re:CPP Errors ?
« Reply #4 on: 17 Sep 2002, 05:04:00 »
Or paste it  ;)

I-RZ#

  • Guest
Re:CPP Errors ?
« Reply #5 on: 17 Sep 2002, 18:41:00 »
It sounds like you have, well, undefined your M16_2.

The simple way to resolve this is where you see something like this:-

Quote
   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
Quote
class M16: Riffle{};
.  Hope this solves your problem. 8)

LdMaster

  • Guest
Re:CPP Errors ?
« Reply #6 on: 17 Sep 2002, 19:01:00 »


[attachment deleted by admin]

LdMaster

  • Guest
Re:CPP Errors ?
« Reply #7 on: 18 Sep 2002, 21:21:43 »
Hey waths up ? Please help me . I have write my CPP in
here .

Eviscerator

  • Guest
Re:CPP Errors ?
« Reply #8 on: 18 Sep 2002, 22:08:25 »
what does the error message say? it normally tells you where to look and what the problem is

LdMaster

  • Guest
Re:CPP Errors ?
« Reply #9 on: 19 Sep 2002, 17:02:39 »
No , " only undefined base class "

CrunchyFrog

  • Guest
Re:CPP Errors ?
« Reply #10 on: 19 Sep 2002, 23:20:45 »
Quote
class K_98
 {
  scopeWeapon = public;
  scopeMagazine = private;

Should be:

class K_98: K_98Mag
« Last Edit: 19 Sep 2002, 23:21:20 by CrunchyFrog »