28.08.2015, 20:18
Instead of using that function to fetch the weapon name, why don't you just use GetWeaponName function inside OnPlayerDeath? Cause you are running a code with some small missing stock functions. If you can't find the functions anywhere.
https://sampwiki.blast.hk/wiki/GetWeaponName
https://sampwiki.blast.hk/wiki/GetWeaponName