When i want compile i have error like
//// Host_Say.sma
// C:\Program Files (x86)\Steam\steamapps\common\Half-Life\cstrike\addons\amxmodx\scripting\Host_Sa y.sma(33) : error 017: undefined symbol "client_print_color"
PHP Code:
#include < amxmodx >
#pragma semicolon 1
#define PLUGIN ""
#define VERSION "0.0.1"
#define cm(%0) ( sizeof(%0) - 1 )
public plugin_init()
{
register_plugin( PLUGIN, VERSION, "ConnorMcLeod" );
register_clcmd("say", "Host_Say", 0);
register_clcmd("say_team", "Host_Say", 1);
}
public Host_Say(id)
{
static said[190];
read_args(said, charsmax(said));
remove_quotes(said);
if( !said[0] || containi(said, "%s%s") != -1 )
{
return PLUGIN_HANDLED;
}
new name[32];
get_user_name(id, name, charsmax(name));
new team = get_user_team(id);
client_print_color(0, id, "%s^4[%s] ^3%s^1: %s",
is_user_alive(id) ? "" : "^1*DEAD* ",
team == 1 ? "ZOMBIE" : random(2) ? "HERO" : "HUMAN",
name,
said);
return PLUGIN_HANDLED_MAIN; // so chat cmds gonna work.
}