Hello, my server giving this error
Error:
Code:
Start of error session.
Info (map "de_dust2") (file "addons/amxmodx/logs/error_20140509.log")
[AMXX] Displaying debug trace (plugin "ASD.amxx")
[AMXX] Run time error 3: stack error
PHP Code:
#include <amxmodx>
#include <cstrike>
#define PLUGIN "ASD"
#define VERSION "1.1"
#define AUTHOR "Tutor"
new cvar_block_w
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("CurWeapon", "Event_CurWeapon", "be", "1=1")
cvar_block_w = register_cvar("block_plugin", "0")
}
public Event_CurWeapon(id)
{
if(!is_user_alive(id) || !get_pcvar_num(cvar_block_bot)) return PLUGIN_HANDLED
new temp[2], weapon = get_user_weapon(id, temp[0], temp[1])
if( (weapon == CSW_G3SG1) || (weapon == CSW_SG550) || (weapon == CSW_M3) || (weapon == CSW_XM1014) || (weapon == CSW_TMP) || (weapon == CSW_P90) || (weapon == CSW_MAC10) || (weapon == CSW_UMP45) || (weapon == CSW_SG552) || (weapon == CSW_AUG) || (weapon == CSW_M249) || (weapon == CSW_ELITE) )
{
engclient_cmd(id, "drop", "weapon_sg550")
engclient_cmd(id, "drop", "weapon_g3sg1")
engclient_cmd(id, "drop", "weapon_m3")
engclient_cmd(id, "drop", "weapon_xm1014")
engclient_cmd(id, "drop", "weapon_tmp")
engclient_cmd(id, "drop", "weapon_p90")
engclient_cmd(id, "drop", "weapon_mac10")
engclient_cmd(id, "drop", "weapon_ump45")
engclient_cmd(id, "drop", "weapon_sg552")
engclient_cmd(id, "drop", "weapon_aug")
engclient_cmd(id, "drop", "weapon_m249")
engclient_cmd(id, "drop", "weapon_elite")
}
return PLUGIN_HANDLED
}