Quote:
Originally Posted by tousif
what is the error it showing when compiling
|
its not compile error
its error this section
PHP Code:
public Handle(id)
{
static szName[33], szTag[16];
new Msg[32]
read_args(Msg, charsmax(Msg))
remove_quotes(Msg)
get_user_name(id, szName, cm(szName));
get_pcvar_string(pCvar_Tag, szTag, cm(szTag));
// Make Tag
if(equali(Msg, "/tagme")) {
format(szName, cm(szName), "%s%s", szTag, szName);
set_user_info(id, "name", szName);
set_dhudmessage(0, 160, 0, 0.20, 0.60, 2, 6.0, 12.0)
show_dhudmessage(id, "You Got Our Server Tag")
}
// Untag
if(equali(Msg, "/untag")) {
replace_all( szName, cm(szName), szTag, "" );
set_user_info( id, "name", szName );
set_dhudmessage(0, 160, 0, 0.20, 0.60, 2, 6.0, 12.0)
show_dhudmessage(id, "You Remove Our Server Tag")
}
// Alredy Tag
if(containi(szName, szTag) != -1) {
set_dhudmessage(0, 160, 0, 0.20, 0.60, 2, 6.0, 12.0)
show_dhudmessage(id, "You Already Have Our Server Tag")
}
return PLUGIN_CONTINUE;
}
when i type /tagme Both "You Already Have Our Server Tag" and "You Got Our Server Tag" coming plz correct it
__________________