07.08.2009, 14:06
Hi all, this is a snippet for easy loop.
Example:
Same as
Use looper is easier, and write less lines than for loop.
Any comment is everything~
Код:
#define looper(%1,%2,%3,%4) \ for(new %1 = (%2);(%1)<(%3);%1++) if(%4)
Код:
looper(i,0,MAX_PLAYERS,(IsPlayerConnected(i))){
SendClientMessage(playerid,422,"hello world");
}
Код:
for(new i = 0;i < MAX_PLAYERS;i++){
if(IsPlayerConnected(i)){
SendClientMessage(playerid,422,"hello world");
}
}
Any comment is everything~

