PHP Code:
new team[32];
get_opposite_team(idattacker, team);
stock get_opposite_team(index, team[])
{
new CsTeams:team = cs_get_user_team(index);
if(team == CS_TEAM_T)
{
copy(team, charsmax(team), "TERRORIST"); // line 549;
}
else
{
copy(team, charsmax(team), "CT"); // line 553;
}
return 0;
} // line 557;
It's obviously what i'm trying, but i got some errors.. WHY!??
Code:
D:\...\custom_stocks.inc(549) : error 035: argument type mismatch (argument 1)
D:\...\custom_stocks.inc(549) : error 035: argument type mismatch (argument 1)
D:\...\custom_stocks.inc(553) : error 035: argument type mismatch (argument 1)
D:\...\custom_stocks.inc(553) : error 035: argument type mismatch (argument 1)
D:\...\custom_stocks.inc(557) : warning 203: symbol is never used: "team"