foreach
#2

hm its beause in the pID loop , is getting a players name like /getid <name>

ok and can you show me how to make that seat iterator?

EDIT:

pawn Код:
stock SendClientMessageToTeam(team, color, text[]) //By Alex "******" Cole
{
    foreach (Player, i)
    {
        if (gTeam[i] == team) SendClientMessage(i, color, text);
    }
}
will this work aswell?

EDIT: some loops doesnt work with foreach, ill leave foreach for now.. thanks anyways
Reply


Messages In This Thread
foreach - by fissekarl - 29.04.2011, 18:58
Re: foreach - by fissekarl - 29.04.2011, 19:04

Forum Jump:


Users browsing this thread: 1 Guest(s)