I need help plugin gunxp
I wanted to add a new weapon in the weaponlevel list, but when converting to amxx it shows this problem:
//// gunxpmod.sma
// D:\mjm\cs161\cstrike\addons\amxmodx\scripting \gunxpmod.sma(52) : error 018: initialization data exceeds declared size
// D:\mjm\cs161\cstrike\addons\amxmodx\scripting \gunxpmod.sma(53) : error 010: invalid function or declaration
// D:\mjm\cs161\cstrike\addons\amxmodx\scripting \gunxpmod.sma(57) : error 018: initialization data exceeds declared size
// D:\mjm\cs161\cstrike\addons\amxmodx\scripting \gunxpmod.sma(5

: error 010: invalid function or declaration
// D:\mjm\cs161\cstrike\addons\amxmodx\scripting \gunxpmod.sma(62) : error 018: initialization data exceeds declared size
//
// 5 Errors.
// Could not locate output file D:\mjm\cs161\cstrike\addons\amxmodx\scripting \compiled\gunxpmod.amx (compile failed).
This is the modification:
new const WEAPONCONST[MAXLEVEL][] = { "weapon_glock18", "weapon_usp", "weapon_p228", "weapon_fiveseven", "weapon_deagle", "weapon_elite", "weapon_tmp",
"weapon_mac10", "weapon_ump45", "weapon_mp5navy", "weapon_p90", "weapon_scout", "weapon_awp", "weapon_famas", "weapon_galil", "weapon_m3", "weapon_xm1014",
"weapon_ak47", "weapon_m4a1", "weapon_aug", "weapon_sg552", "weapon_sg550", "weapon_g3sg1", "weapon_m249" ,"m3dragon"
}; // Give Weapons
new const WEAPONMDL[MAXLEVEL][] = { "models/w_glock18.mdl", "models/w_usp.mdl", "models/w_p228.mdl", "models/w_fiveseven.mdl", "models/w_deagle.mdl", "models/w_elite.mdl", "models/w_tmp.mdl",
"models/w_mac10.mdl", "models/w_ump45.mdl", "models/w_mp5.mdl", "models/w_p90.mdl", "models/w_scout.mdl", "models/w_awp.mdl", "models/w_famas.mdl", "models/w_galil.mdl", "models/w_m3.mdl", "models/w_xm1014.mdl",
"models/w_ak47.mdl", "models/w_m4a1.mdl", "models/w_aug.mdl", "models/w_sg552.mdl", "models/w_sg550.mdl", "models/w_g3sg1.mdl", "models/w_m249.mdl", "models/z47_m3dragon/w_m3dragon.mdl"
}; // Blocks pick up weapon, don't change!
new const AMMOCONST[MAXLEVEL] = { 17, 16, 1, 11, 26, 10, 23, 7, 12, 19, 30, 3, 18,
15, 14, 21, 5, 28, 22, 8, 27, 13, 24, 20 ,25
};
Weapons added by me:
new const WEAPONCONST[MAXLEVEL]="m3dragon"
new const WEAPONMDL[MAXLEVEL] = "models/z47_m3dragon/w_m3dragon.mdl"
new const AMMOCONST[MAXLEVEL]= 25
Complete file below, I hope someone can help me, thank you