I told you, you don't have any of the native params passed in the function header(public _furien_get_weaponname(szWeapon[], szString) should be _furien_get_weaponname(PluginIndex, PluginParams)).
So this is wrong:
PHP Code:
if(equali(szWeapon, g_szModels[i]))
Use get_string to retrieve the passed string. Also set_string(1,...) should be set_string(2,...), because the second param is your buffer.
But, what do you want to do ? The loop does not make sense. You want to return only the weapon name associated with weapon_* ?
__________________