I get
Code:
(149) : error 008: must be a constant expression; assumed zero
(166) : error 008: must be a constant expression; assumed zero
arrays and variables
Code:
int g_weaponLevel[MAXPLAYERS + 1];
int maxWLevel = 20;
int wLevelPrice[21] = { 6, 10, 14, 18, 22, 26, 30, 36, 42, 48, 54, 60, 68, 76, 84, 92, 100, 110, 120, 130};
char wLevelWeapon[][] = { "weapon_glock", "weapon_tec9", "weapon_deagle", "weapon_mp9", "weapon_mp7", "weapon_mac10", "weapon_m4a1_silencer", "weapon_ump45", "weapon_famas", "weapon_aug" , "weapon_sg556", "weapon_m4a1", "weapon_ak47", "weapon_galilar", "weapon_nova", "weapon_xm1014", "weapon_scar20", "weapon_bizon", "weapon_p90", "weapon_negev"};
char wLevelWeaponName[][] = { "Glock-18", "Tec-9", "Desert Eagle", "MP9", "MP7", "MAC-10", "M4A1-S", "UMP-45", "Famas", "AUG", "SG 553", "M4A4", "AK-47", "Galil AR", "Nova", "XM1014", "SCAR-20", "PP-Bizon", "P90", "Negev" };
Line 149 and 150
Code:
char weapon[128] = wLevelWeapon[g_weaponLevel[client]];
GivePlayerItem(client, weapon);
line 165,166,167
Code:
int price = wLevelPrice[g_weaponLevel[client]];
char wName[128] = wLevelWeaponName[g_weaponLevel[client]];
char pstr[64];
I'm trying to do like a level based weapon system