30.01.2019, 08:59
`GunName` is array, not function.
Place sanity checks before the loop to validate the weaponid otherwise run time error 4. In case you do not know, there is already a function to get the name of weapon: https://sampwiki.blast.hk/wiki/GetWeaponName
Код:
format(string, sizeof(string), "~g~%s ~w~fight!", GunName[wep_id]);