22.06.2011, 22:36
pawn Код:
#define ClearChat(%1,%2) for(new c; c < %2; c++) SendClientMessage(%1,0xFFFFFFAA," ")
Example of normal loop:
pawn Код:
for(new c; c < 15; c++)
#define ClearChat(%1,%2) for(new c; c < %2; c++) SendClientMessage(%1,0xFFFFFFAA," ")
for(new c; c < 15; c++)
foreach(ClearChat,c)
for (new i = 0; i != MAX_PLAYERS; ++i)
{
if (IsPlayerConnected(i))
{
printf("Player %d is connected", i);
}
}
foreach (Player, i)
{
printf("Player %d is connected", i);
}
new Iterator:MyIter<15>;
for(new i = 0; i != 15; i++) Iter_Add(MyIter, i);
foreach(MyIter, i)
{
//hello
}