I'm ussing this stock...
PHP Code:
stock cs_set_team_score(const team , const score) {
new buffer[10];
switch(team)
{
case 1: copy(buffer , 9 , "TERRORIST");
case 2: copy(buffer , 9 , "CT");
default: return 0;
}
message_begin(MSG_ALL , get_user_msgid("TeamScore") , {0,0,0});
write_string(buffer);
write_byte(score);
message_end();
return 1;
}
The errors are...
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 "TERRORIST" on line 174
Warning: Expression has no effect on line 174
Error: Expected token: ";", but found ")" on line 174
Error: Invalid expression, assumed zero on line 174
Error: Too many error messages on one line on line 174
Compilation aborted.
4 Errors.
Could not locate output file C:\Documents and Settings\Administrador\Escritorio\Vale.amx (compile failed).
I am using this way...
PHP Code:
cs_set_team_score(TERRORIST,TotalCT)