Code:
#include <amxmodx>
#include <engine>
#define SECURENAME "copyright_block"
public plugin_init()
{
register_plugin("moon_base_copyright","1.0","Hunter-Digital")
}
public plugin_precache()
{
new ent, entName[32]
while((ent = find_ent_by_class(ent, "func_wall")) != 0) // search through all func_wall entities
{
pev(ent, pev_targetname, entName, 31) // get it's name
if(!equal(entName, SECURENAME)) // if it's not your block name, continue to the next one
continue
remove_entity(ent) // if it is, remove it...
}
}
Quote:
|
Originally Posted by compiler
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team
/home/groups/amxmodx/tmp3/textwrxxcu.sma(16) : error 017: undefined symbol "pev"
/home/groups/amxmodx/tmp3/textwrxxcu.sma(16) : warning 215: expression has no effect
/home/groups/amxmodx/tmp3/textwrxxcu.sma(16) : warning 215: expression has no effect
/home/groups/amxmodx/tmp3/textwrxxcu.sma(16) : error 001: expected token: ";", but found ")"
/home/groups/amxmodx/tmp3/textwrxxcu.sma(16) : error 029: invalid expression, assumed zero
/home/groups/amxmodx/tmp3/textwrxxcu.sma(16) : fatal error 107: too many error messages on one line
Compilation aborted.
4 Errors.
|