Flat!!! 0 Posted August 4, 2007 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
sickboy 13 Posted August 4, 2007 Only add 1 /*extern*/ class SoldierWSaboteur; for each external class you need, instead of repeating the same /*extern*/ classes Share this post Link to post Share on other sites
Flat!!! 0 Posted August 4, 2007 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
Linker Split 0 Posted August 4, 2007 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
Flat!!! 0 Posted August 4, 2007 Thx Linker Split and sickboy you rock Share this post Link to post Share on other sites