16.05.2009, 21:41
Or:
The advantage being that it doesn't change a variable 200 times.
pawn Код:
if(!strcmp(cmdtext,"/il",true)||!strcmp(cmdtext,"/ignorelist",true))
{
new count=0;
for(new i=0;i<MAX_PLAYERS;i++)
{
if(MyIgnoredPlayers[playerid][i] >= 1)
{
GetPlayerName(i,playername,sizeof(playername));
format(string, sizeof(string), "%s (%d)", playername, i);
SendClientMessage(playerid, 0xFFFFFFAA, string);
}
else
{
SendClientMessage(playerid, COLOR_RED, "No One.");
return 1;
}
}
return 1;
}