16.10.2010, 22:42
hmm i made a vaariable like class[max_players] for teams ..
ok i want to get their teams,.. now how do i find that when noone is in team 2 ? i could do it like this ..
i tried taht but it didnt work .. what if i use this .. if(class[max_players] for all the players ... but that will tell me taht it is out of bounds , and what if i use if(class[499] != 2 )? will this work ?
ok i want to get their teams,.. now how do i find that when noone is in team 2 ? i could do it like this ..
pawn Код:
for(new i; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
else if(class[i] != 2)
{
//blah
}
}
}