i'm trying to make something to give people weapons.
i've given at the begining of the plugin the var
new g_weapon_name[20]
now in the "main" public i'm trying to look in g_weapon_name, as folows:
Code:
if(g_weapon_name=="m4a1") {
give_item(id,CSW_M4A1)
}
else {
if
etc etc etc
but it won't work... it gives me this message: "Array must be indexed (variable g_weapon_name)"