Jump to content
Sign in to follow this  
Flat!!!

Config Prob member allready defined

Recommended Posts

I have a problem with my config which I think is to to 2 units using the same model. I hope somebody can help me. Here is the config:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgPatches

{

class Navysealdes

{

units[] = {"despilotseal", "desteamleaderseal", "desgrenadierseal", "desrfseal", "dessniperseal", "desmgseal"};

weapons[] = {};

};

};

class CfgVehicleClasses

{

class Navysealdes

{

displayName = "Navy Seals (Desert)";

};

};

class CfgVehicles

{

/*extern*/ class SoldierWPilot;

class despilotseal: SoldierWPilot

{

displayName="Pilot (Desert)";

vehicleClass="Navysealdes";

model = "\BOS_navyseals\us_soldier_pilot";

scope = 2;

canHideBodies = 1;

canDeactivateMines = 1;

nightVision = 1;

weapons[] = {"M9", "M4A1", "NVgoggles", "Throw", "Put"};

magazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "15Rnd_9x19_M9", "15Rnd_9x19_M9", "15Rnd_9x19_M9","15Rnd_9x19_M9", "15Rnd_9x19_M9", "15Rnd_9x19_M9", "15Rnd_9x19_M9","15Rnd_9x19_M9", "SmokeShellRed", "SmokeShellGreen"};

};

/*extern*/ class SoldierWSaboteur;

class desteamleaderseal: SoldierWSaboteur

{

displayName="Team Leader (Desert)";

vehicleClass="Navysealdes";

model = "\BOS_navyseals\us_soldier_sabasb";

scope = 2;

canHideBodies = 1;

canDeactivateMines = 1;

nightVision = 1;

weapons[] = {"M9", "M4A1", "NVgoggles", "Throw", "Put"};

magazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "15Rnd_9x19_M9", "15Rnd_9x19_M9", "15Rnd_9x19_M9","15Rnd_9x19_M9", "15Rnd_9x19_M9", "15Rnd_9x19_M9", "15Rnd_9x19_M9","15Rnd_9x19_M9", "SmokeShellRed", "SmokeShellGreen"};

};

/*extern*/ class SoldierWSaboteurPipe;

class desgrenadierseal: SoldierWSaboteurPipe

{

displayName="Grenadier (Desert)";

vehicleClass="Navysealdes";

model = "\BOS_navyseals\us_soldide_sabot";

scope = 2;

canHideBodies = 1;

canDeactivateMines = 1;

nightVision = 1;

weapons[] = {"M9", "M4A1", "NVgoggles", "Throw", "Put"};

magazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "15Rnd_9x19_M9", "15Rnd_9x19_M9", "15Rnd_9x19_M9","15Rnd_9x19_M9", "15Rnd_9x19_M9", "15Rnd_9x19_M9", "15Rnd_9x19_M9","15Rnd_9x19_M9", "SmokeShellRed", "SmokeShellGreen"};

};

/*extern*/ class SoldierWSaboteur;

class desrfseal: SoldierWSaboteur

{

displayName="Rifleman (Desert)";

vehicleClass="Navysealdes";

model = "\BOS_navyseals\us_soldier_sabass";

scope = 2;

canHideBodies = 1;

canDeactivateMines = 1;

nightVision = 1;

weapons[] = {"M9", "M4A1", "NVgoggles", "Throw", "Put"};

magazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "15Rnd_9x19_M9", "15Rnd_9x19_M9", "15Rnd_9x19_M9","15Rnd_9x19_M9", "15Rnd_9x19_M9", "15Rnd_9x19_M9", "15Rnd_9x19_M9","15Rnd_9x19_M9", "SmokeShellRed"};

};

/*extern*/ class SoldierWSaboteur;

class desrfseal: SoldierWSaboteur

{

displayName="Sniper (Desert)";

vehicleClass="Navysealdes";

model = "\BOS_navyseals\us_soldier_sabass";

scope = 2;

canHideBodies = 1;

canDeactivateMines = 1;

nightVision = 1;

weapons[] = {"M9", "M4A1", "NVgoggles", "Throw", "Put"};

magazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "15Rnd_9x19_M9", "15Rnd_9x19_M9", "15Rnd_9x19_M9","15Rnd_9x19_M9", "15Rnd_9x19_M9", "15Rnd_9x19_M9", "15Rnd_9x19_M9","15Rnd_9x19_M9", "SmokeShellRed"};

};

/*extern*/ class SoldierWSaboteur;

class desmgseal: SoldierWSaboteur

{

displayName="Machinegunner (Desert)";

vehicleClass="Navysealdes";

model = "\BOS_navyseals\us_soldier_sabasb";

scope = 2;

canHideBodies = 1;

canDeactivateMines = 1;

nightVision = 1;

weapons[] = {"M9", "M4A1", "NVgoggles", "Throw", "Put"};

magazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "15Rnd_9x19_M9", "15Rnd_9x19_M9", "15Rnd_9x19_M9","15Rnd_9x19_M9", "15Rnd_9x19_M9", "15Rnd_9x19_M9", "15Rnd_9x19_M9","15Rnd_9x19_M9", "SmokeShellRed"};

};

};

};

The error I get is:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">File bos_navyseals\config.cpp, line 62: /CfgVehicles.SoldierWsaboteur: Member allready defined.

If I remove the Sniper and machinegunner then the addon works that's why I suspect it is to do with models using the same name...

Plz tell me what I am dong wrong cuz I have basicly tried to fix it for 5 hours now...

Share this post


Link to post
Share on other sites

Only add 1

/*extern*/ class SoldierWSaboteur;

for each external class you need, instead of repeating the same /*extern*/ classes smile_o.gif

Share this post


Link to post
Share on other sites

I tried what you told me Sickboy but no luck... This is what I did to the config:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgPatches

{

class Navysealdes

{

units[] = {"despilotseal", "desteamleaderseal", "desgrenadierseal", "desrfseal", "dessniperseal", "desmgseal"};

weapons[] = {};

};

};

class CfgVehicleClasses

{

class Navysealdes

{

displayName = "Navy Seals (Desert)";

};

};

class CfgVehicles

{

/*extern*/ class SoldierWPilot;

class despilotseal: SoldierWPilot

{

displayName="Pilot (Desert)";

vehicleClass="Navysealdes";

model = "\BOS_navyseals\us_soldier_pilot";

scope = 2;

canHideBodies = 1;

canDeactivateMines = 1;

nightVision = 1;

weapons[] = {"M9", "M4A1", "NVgoggles", "Throw", "Put"};

magazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "15Rnd_9x19_M9", "15Rnd_9x19_M9", "15Rnd_9x19_M9","15Rnd_9x19_M9", "15Rnd_9x19_M9", "15Rnd_9x19_M9", "15Rnd_9x19_M9","15Rnd_9x19_M9", "SmokeShellRed", "SmokeShellGreen"};

};

/*extern*/ class SoldierWSaboteur;

class desteamleaderseal: SoldierWSaboteur

{

displayName="Team Leader (Desert)";

vehicleClass="Navysealdes";

model = "\BOS_navyseals\us_soldier_sabasb";

scope = 2;

canHideBodies = 1;

canDeactivateMines = 1;

nightVision = 1;

weapons[] = {"M9", "M4A1", "NVgoggles", "Throw", "Put"};

magazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "15Rnd_9x19_M9", "15Rnd_9x19_M9", "15Rnd_9x19_M9","15Rnd_9x19_M9", "15Rnd_9x19_M9", "15Rnd_9x19_M9", "15Rnd_9x19_M9","15Rnd_9x19_M9", "SmokeShellRed", "SmokeShellGreen"};

};

/*extern*/ class SoldierWSaboteurPipe;

class desgrenadierseal: SoldierWSaboteurPipe

{

displayName="Grenadier (Desert)";

vehicleClass="Navysealdes";

model = "\BOS_navyseals\us_soldide_sabot";

scope = 2;

canHideBodies = 1;

canDeactivateMines = 1;

nightVision = 1;

weapons[] = {"M9", "M4A1", "NVgoggles", "Throw", "Put"};

magazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "15Rnd_9x19_M9", "15Rnd_9x19_M9", "15Rnd_9x19_M9","15Rnd_9x19_M9", "15Rnd_9x19_M9", "15Rnd_9x19_M9", "15Rnd_9x19_M9","15Rnd_9x19_M9", "SmokeShellRed", "SmokeShellGreen"};

};

class desrfseal: SoldierWSaboteur

{

displayName="Rifleman (Desert)";

vehicleClass="Navysealdes";

model = "\BOS_navyseals\us_soldier_sabass";

scope = 2;

canHideBodies = 1;

canDeactivateMines = 1;

nightVision = 1;

weapons[] = {"M9", "M4A1", "NVgoggles", "Throw", "Put"};

magazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "15Rnd_9x19_M9", "15Rnd_9x19_M9", "15Rnd_9x19_M9","15Rnd_9x19_M9", "15Rnd_9x19_M9", "15Rnd_9x19_M9", "15Rnd_9x19_M9","15Rnd_9x19_M9", "SmokeShellRed"};

};

class desrfseal: SoldierWSaboteur

{

displayName="Sniper (Desert)";

vehicleClass="Navysealdes";

model = "\BOS_navyseals\us_soldier_sabass";

scope = 2;

canHideBodies = 1;

canDeactivateMines = 1;

nightVision = 1;

weapons[] = {"M9", "M4A1", "NVgoggles", "Throw", "Put"};

magazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "15Rnd_9x19_M9", "15Rnd_9x19_M9", "15Rnd_9x19_M9","15Rnd_9x19_M9", "15Rnd_9x19_M9", "15Rnd_9x19_M9", "15Rnd_9x19_M9","15Rnd_9x19_M9", "SmokeShellRed"};

};

class desmgseal: SoldierWSaboteur

{

displayName="Machinegunner (Desert)";

vehicleClass="Navysealdes";

model = "\BOS_navyseals\us_soldier_sabasb";

scope = 2;

canHideBodies = 1;

canDeactivateMines = 1;

nightVision = 1;

weapons[] = {"M9", "M4A1", "NVgoggles", "Throw", "Put"};

magazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "15Rnd_9x19_M9", "15Rnd_9x19_M9", "15Rnd_9x19_M9","15Rnd_9x19_M9", "15Rnd_9x19_M9", "15Rnd_9x19_M9", "15Rnd_9x19_M9","15Rnd_9x19_M9", "SmokeShellRed"};

};

};

};

But now the error changed to:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">File bos_navyseals\config.cpp, line 88: /CfgVehicles.desrfseal: Member allready defined.

Hmm when I removed the whole desrfseal config part it works...

Share this post


Link to post
Share on other sites

yeah you have repeated this class:

Quote[/b] ]class desrfseal: SoldierWSaboteur

{

displayName="Rifleman (Desert)";

vehicleClass="Navysealdes";

model = "\BOS_navyseals\us_soldier_sabass";

scope = 2;

canHideBodies = 1;

canDeactivateMines = 1;

nightVision = 1;

weapons[] = {"M9", "M4A1", "NVgoggles", "Throw", "Put"};

magazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "15Rnd_9x19_M9", "15Rnd_9x19_M9", "15Rnd_9x19_M9","15Rnd_9x19_M9", "15Rnd_9x19_M9", "15Rnd_9x19_M9", "15Rnd_9x19_M9","15Rnd_9x19_M9", "SmokeShellRed"};

};

/*extern*/ class SoldierWSaboteur;

class desrfseal: SoldierWSaboteur

{

displayName="Sniper (Desert)";

vehicleClass="Navysealdes";

model = "\BOS_navyseals\us_soldier_sabass";

scope = 2;

canHideBodies = 1;

canDeactivateMines = 1;

nightVision = 1;

weapons[] = {"M9", "M4A1", "NVgoggles", "Throw", "Put"};

magazines[] = {"30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "30Rnd_556x45_Stanag", "15Rnd_9x19_M9", "15Rnd_9x19_M9", "15Rnd_9x19_M9","15Rnd_9x19_M9", "15Rnd_9x19_M9", "15Rnd_9x19_M9", "15Rnd_9x19_M9","15Rnd_9x19_M9", "SmokeShellRed"};

};

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×