Home   Help Search Login Register  

Author Topic: Solved  (Read 992 times)

0 Members and 2 Guests are viewing this topic.

ticilli

  • Guest
Solved
« on: 17 May 2004, 19:19:24 »
Hi, i need some help with one of my 1st from scratch .cpps when i load it i get the error:

no entry 'config.bin/CfgWeapons.MP5mag'.

and when i place my Saboteur i get the error

no entry '.modelspecial'.

Being new to CPP i have no idea what this means, if anyone can help i'd appreciate it.

Quote
// MP5SD6 by TIC

// Basic def.
#define TEast 0
#define TWest 1
#define TGuerrila 2
#define TCivilian 3
#define TSideUnknown 4
#define TEnemy 5
#define TFriendly 6
#define TLogic 7

#define true 1
#define false 0

// type scope
#define private 0
#define protected 1
#define public 2


class CfgPatches
{
   class TIC_Saboteur
   {
      units[]={TICSab};
      weapons[]={MP5SD6};
      requiredVersion=1.00000;
   };
};

class CfgModels
{
   class Default{};
 Â Â Â class Weapon: Default{};
 Â Â Â class MP5SD6 : Weapon{};

};

class CfgAmmo
{
   class default {};
   class BulletSilencedSingle: Default {};
   class BulletSilencedBurst: BulletSilencedSingle {};
    class MP5Ammo: BulletSilencedSingle {};
};

class CfgWeapons
{
   class Default {};
   class MGun: Default {};
   class Riffle: MGun {};   
   
   class MP5SD6: Riffle
   {
      model="\pkcsd6\pkcsd6";
      displayName="H&K MP5SD6";
      displayNameMagazine="Mp5 Mag";
      magazines[]={"Mp5mag"};
      ammo=MP5Ammo;
      
   };

};

class CfgVehicles
{
   class All{};
   class AllVehicles:All{};
   class Land:AllVehicles{};
   class Man:Land{};
   class Soldier:Man{};
    class Civilian:Soldier{};

   class TICSaboteur: Civilian
   {
             Â Â Â Â Â Â access=2
      scope=public;
      //picture=isaboteur;
      picture="\misc\meciky.paa";

      accuracy=3.5; // hard to recognize
      cost=2500;
      
      displayName="Saboteur Sd";
      weapons[]={"MP5SD6","Throw","Put"};
      magazines[]={"mp5mag", "mp5mag", "mp5mag", "mp5mag",
      "TimeBomb", "TimeBomb", "TimeBomb"
      };
      camouflage=0.7; // how easy to spot -> bigger means better spotable

      //threat[] VSoft, VArmor, VAir
      threat[]={1, 0.5, 0.1};
      model= "mc saboteur.p3d";

      canHideBodies = true;
      canDeactivateMines=true;
      nightVision=true;
   };   
};

class CfgNonAIVehicles
{
   class ProxyWeapon {};
   class ProxyTICSab : ProxyWeapon {};

};
« Last Edit: 18 May 2004, 18:38:30 by ticilli »

Offline oyman

  • Members
  • *
  • king of pings
Re:1st .cpp help
« Reply #1 on: 18 May 2004, 03:08:42 »
i think you are missing the magazine part of the cfg weapons part so it should look like this.Dont know if it will work or not :-\

Code: [Select]
class CfgWeapons
{
   class Default {};
   class MGun: Default {};
   class Riffle: MGun {};  
   
   class MP5SD6: Riffle
   {
      model="\pkcsd6\pkcsd6";
      displayName="H&K MP5SD6";
      displayNameMagazine="Mp5 Mag";
      magazines[]={"Mp5mag"};
      ammo=MP5Ammo;
     
   };

};
   
class MP5mag: MP5SD6
      {
      picture="\pkcsd6\pic.paa";
      scopeWeapon=0;
      scopeMagazine=2;
      };
};

ticilli

  • Guest
Re:1st .cpp help
« Reply #2 on: 18 May 2004, 18:37:16 »
this can be closed now i figured out what i did wrong with the magazine error, and the modelspecial error was because i hadn't point the "mc saboteur.p3d" to the right place, it should of been "\data3d\mc saboteur.p3d"

No worries ;D

Offline Pathy

  • Former Staff
  • ****
  • I'm not a F***in llama!
    • Volcbat.
Re:Solved
« Reply #3 on: 18 May 2004, 18:43:05 »
Click the "solve" button, its down the bottom..... ;)