Well if you haven't noticed:
Code:
if( weaponName[id] == 2)
weaponName is a string not a number. You need to use:
Code:
if(equali(weaponName[id], "2"))
Also you should make the variable:
Code:
new weaponName[33][41]
get_weaponname(weaponId, weaponName[id], 40)
__________________