I do this
Code:
public hook_touch(ptr,id)
{
if(get_pcvar_num(p_enable) && is_user_alive(id))
{
static szClassName[32]
pev(ptr, pev_classname, szClassName, sizeof szClassName - 1)
if(!equal(szClassName, "YOUR_CLASSNAME"))
return FMRES_IGNORED
if(!get_pcvar_num(mines_enabled))
return
if(!is_user_alive(id))
return
explode(ent, 0)
}
return FMRES_IGNORED
}
sorry i dont know what is classname
and there is messange
Code:
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team
Error: Undefined symbol "p_enable" on line 4156
Warning: Function "hook_touch" should return a value on line 4167
Warning: Function "hook_touch" should return a value on line 4170
Error: Undefined symbol "ent" on line 4170
Warning: Expression has no effect on line 4170
Error: Expected token: ";", but found ")" on line 4170
Error: Invalid expression, assumed zero on line 4170
Error: Too many error messages on one line on line 4170
Compilation aborted.
5 Errors.
Could not locate output file C:\pluginy\MZ\hns.amx (compile failed).