Well, its secure to assign a string directly using a value instead of using copy() ?
Anyway i need like this:
PHP Code:
stock isVsAlone(id)
{
new iPlayers[32],iAlive[CsTeams];
get_players(iPlayers,iAlive[CS_TEAM_T],"aeh","TERRORIST");
get_players(iPlayers,iAlive[CS_TEAM_CT],"aeh","CT");
if((cs_get_user_team(id) == CS_TEAM_T) && is_user_alive(id) && (iAlive[CS_TEAM_T] == 1)) return iAlive[CS_TEAM_CT];
else if((cs_get_user_team(id) == CS_TEAM_CT) && is_user_alive(id) && (iAlive[CS_TEAM_CT] == 1)) return iAlive[CS_TEAM_T];
return 0;
}
EDIT: Sorry, i understand better now, thanks and i changed >>
PHP Code:
GetAliveEnemies( id )
{
if( !is_user_alive( id ) )
{
return -1
}
new Players[ 32 ], iNum
get_players( Players, iNum, "ae", ( get_user_team( id ) == 1 ) ? "CT" : "TERRORIST" )
return iNum
}
solved.
__________________