rbeni12 0 Posted May 22, 2003 Here's the script and the error massege: error: dwrnammp1\config.cpp/CfgVehicles/:'d' encountered instead of '{' config: // some basic defines #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 #define WeaponNoSlot 0// dummy weapons #define WeaponSlotPrimary 1// primary weapons #define WeaponSlotSecondary 16// secondary weapons #define WeaponSlotItem 256// items #define WeaponSlotBinocular 4096// binocular #define WeaponHardMounted 65536 class CfgPatches { class DWRnammp1 { units[] = {nm1,nm2}; weapons[] = {}; requiredVersion = 1.91; requiredAddons[] = {"BIS_Resistance","KM_M136AT4"}; }; }; class CfgVehicles { class All{}; class AllVehicles:All{}; class Land:AllVehicles{}; class Man:Land{}; class Soldier:Man{}; class SoldierWB:Soldier{}; class SoldierWG: SoldierWB{}; class SoldierWMG: SoldierWB{}; class SoldierWLAW: SoldierWB{}; class SoldierWAT: SoldierWLAW{}; class SoldierWAA: SoldierWLAW{}; class SoldierWMortar: SoldierWG{}; class OfficerWNight: SoldierWB{}; class SoldierWSniper: SoldierWB{}; class OfficerW: SoldierWB{}; class SoldierWMedic: SoldierWB{}; class nm1 : SoldierWB displayName="RifleMan"; vehicleClass = "NATOMOD (Arctic)"; model="\DWRNamMP1\nammp1"; cost=400000 sensitivity=1.25; accuracy=3.500000; nightVision=1; camouflage=0.750000; armor=5; armorStructural=2.0; armorHead=0.7; armorBody=5.5; armorHands=0.5; armorLegs=0.5; weapons[]={"C8XM16A2","Throw","Put","StrokeGun","Stroke Fist"}; magazines[]={"C8XM16Mag","C8XM16Mag","C8XM16Mag","HandGrenade" ,"HandGrenade","HandGrenade"}; }; }; }; class nm2 : SoldierWAT displayName="Anti-Tank"; vehicleClass = "NATOMOD (Arctic)"; model="\DWRNamMP1\nammp1"; cost=400000 sensitivity=1.25; accuracy=3.500000; nightVision=1; camouflage=0.750000; armor=5; armorStructural=2.0; armorHead=0.7; armorBody=5.5; armorHands=0.5; armorLegs=0.5; weapons[]={"C8XM16A2","Throw","Put","StrokeGun","Stroke Fist","KM_M136AT4"}; magazines[]={"C8XM16Mag","C8XM16Mag","C8XM16Mag","KM_M136AT4Mag&quo t;}; }; }; class nm2 : OfficerWNight displayName="Officer"; vehicleClass = "NATOMOD (Arctic)"; model="\DWRNamMP1\nammp1"; cost=400000 sensitivity=1.25; accuracy=3.500000; nightVision=1; camouflage=0.750000; armor=5; armorStructural=2.0; armorHead=0.7; armorBody=5.5; armorHands=0.5; armorLegs=0.5; weapons[]={"C8XM16A2","Throw","Put","StrokeGun","Stroke Fist","Binocular"}; magazines[]={"C8XM16Mag","C8XM16Mag","C8XM16Mag","SmokeShell", "SmokeShell"}; }; }; class nm3 : SoldierWMedic displayName="Medic"; vehicleClass = "NATOMOD (Arctic)"; model="\DWRNamMP1\nammp1"; cost=400000 sensitivity=1.25; accuracy=3.500000; nightVision=1; camouflage=0.750000; armor=5; armorStructural=2.0; armorHead=0.7; armorBody=5.5; armorHands=0.5; armorLegs=0.5; weapons[]={"STGNSOPMODM4A1","Throw","Put","StrokeGun"," StrokeFist"}; magazines[]={"STGNSOPMODM4A1","STGNSOPMODM4A1","STGNSOPMODM4A1","Ha ndGrenade","HandGrenade", "HandGrenade"}; }; }; class CfgGroups { class West { name="West"; class NATOMOD { name="NATOMODUNITS"; class MOUNT { name="10TH MOUNTDIVISION"; class Unit0 { name="1"; side=1; vehicle="DWRnammp1"; rank="Colonel"; position[]={0,5,0}; }; }; }; }; Share this post Link to post Share on other sites
Guest Posted May 22, 2003 Moving to addon config and scripting Share this post Link to post Share on other sites
Guest BratZ Posted May 23, 2003 class CfgVehicles { class All{}; class AllVehicles:All{}; class Land:AllVehicles{}; class Man:Land{}; class Soldier:Man{}; class SoldierWB:Soldier{}; class SoldierWG: SoldierWB{}; class SoldierWMG: SoldierWB{}; class SoldierWLAW: SoldierWB{}; class SoldierWAT: SoldierWLAW{}; class SoldierWAA: SoldierWLAW{}; class SoldierWMortar: SoldierWG{}; class OfficerWNight: SoldierWB{}; class SoldierWSniper: SoldierWB{}; class OfficerW: SoldierWB{}; class SoldierWMedic: SoldierWB{}; class nm1 : SoldierWB { <----------------------------------------add this to your classes displayName="RifleMan"; vehicleClass = "NATOMOD (Arctic)"; model="\DWRNamMP1\nammp1"; cost=400000 sensitivity=1.25; accuracy=3.500000; nightVision=1; camouflage=0.750000; armor=5; armorStructural=2.0; armorHead=0.7; armorBody=5.5; armorHands=0.5; armorLegs=0.5; weapons[]={"C8XM16A2","Throw","Put","StrokeGun","Stroke Fist"}; Share this post Link to post Share on other sites