Sudden Death 0 Posted June 19, 2007 I´m trying to add some new sounds to the AH-6 gatlin guns and wrote this config (shown with the old sounds): <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> class CfgPatches { class SDP_Twin     { units[] = { "SDP_AH6" }; weapons[] = { "SDP_TwinM134" }; requiredAddons[] = {"CAData", "CA_Anims_Char", "CACharacters", "CAWeapons", "CASounds", "CATracked", "CAWheeled", "CAAir"}; requiredVersion = 0.102000; }; }; class CfgVehicleClasses { class SDP_Vehicles     { displayName = "SDP"; }; }; class Mode_SemiAuto {}; class Mode_Burst : Mode_SemiAuto {}; class Mode_FullAuto : Mode_SemiAuto {}; class cfgWeapons { /*extern*/ class TwinM134; class SDP_TwinM134: TwinM134 { modes = {"LowROF","HighROF"}; canLock = 0; class LowROF: Mode_FullAuto { sound = {"\ca\Weapons\Data\Sound\m134loop4_end", 10.000000, 1}; }; class HighROF: LowROF { sound = {"\ca\Weapons\Data\Sound\m134loop3_end", 10.000000, 1}; }; }; }; class CfgVehicles { /*extern*/ class AH6; class SDP_AH6: AH6 { vehicleClass = "SDP_Vehicles"; weapons[] = {"SDP_TwinM134"}; }; }; If i choose this unit in the editor, an error message hint: Quote[/b] ]Size: `modes/´ not an array Somebody has an idea?! Kind regards S.D. Share this post Link to post Share on other sites
Eda Mrcoch 0 Posted June 19, 2007 Maybe <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">modes = {... should be <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">modes[] = {... like in original config? Share this post Link to post Share on other sites
Sudden Death 0 Posted June 19, 2007 Now i´m totaly confused. In the original config its also Quote[/b] ]modes = {.... but it seems to work with Quote[/b] ]modes[] = {.... thanks S.D. Share this post Link to post Share on other sites