PHP Code:
#include <amxmodx>
#include <amxmisc>
#define ACCESS ADMIN_SLAY;
#define tagct = "CT";
#define tagt = "T";
public plugin_init()
{
register_plugin("tag", "1.0", "tag");
register_concmd("amx_tagct", "tagct", ACCESS, "<Tagct> - CT Tag");
register_concmd("amx_tagt", "tagt", ACCESS, "<Tagt> - T Tag");
register_clcmd("say .score","say_score");
}
public say_score(id)
{
client_print(id, print_chat, "Score is: %s: 11 %s: 10", tagct, tagt)
}
public tagct( id, level, cid )
{
if( !cmd_access( id, level, cid, 4 ) )
return PLUGIN_HANDLED;
read_argv(1, tagct);
remove_quotes(tagct);
console_print(id, "Tag from CT team is %s", tagct)
}
public tagt( id, level, cid )
{
if( !cmd_access( id, level, cid, 4 ) )
return PLUGIN_HANDLED;
read_argv(1, tagtt);
remove_quotes(tagt);
console_print(id, "Tag from T team is %s", tagt)
}
/tmp/textKbjVMX.sma(11) : error 001: expected token: ",", but found ";"
/tmp/textKbjVMX.sma(11) : error 029: invalid expression, assumed zero
/tmp/textKbjVMX.sma(11) : warning 215: expression has no effect
/tmp/textKbjVMX.sma(11) : error 001: expected token: ";", but found ")"
/tmp/textKbjVMX.sma(11) : fatal error 107: too many error messages on one line
Compilation aborted.
4 Errors.