Well the problem is with the stock by xPaw:
http://forums.alliedmods.net/showthread.php?t=88242
PHP Code:
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "New Plugin"
#define AUTHOR "Alucard"
#define VERSION "1.0"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /test", "Test")
}
public Test(id)
{
client_print(id, print_chat, "Your weapon is: %s", get_user_weapon2(id) )
}
public get_user_weapon2(id)
{
new szWeapon[20]
get_weaponname(get_user_weapon(id), szWeapon, charsmax(szWeapon) )
return szWeapon[7]
}
For example with USP, i get this message:
And with knife i get:
o.O
__________________