loop not working for id 0
#8

pawn Код:
if(!strcmp(cmdtext,"/ignorelist",true)||!strcmp(cmdtext,"/il",true))
{
  new count;
  SendClientMessage(playerid, 0xFFFFFFAA, "Ignoring:");
  for(new i=0;i<GetMaxPlayers();i++){
     if(MaxIgnoredPlayers[playerid][i] >= 1){
       if(count == 0) count = 1;
       GetPlayerName(i, playername, sizeof playername);
       format(string, sizeof string, "%s (%i)", playername, i);
       SendClientMessage(playerid, 0xFFFFFFAA, string);
     }
  }
  if(count == 0) SendClientMessage(playerid, 0xFFFFFFAA, "No one.");
  return true;
}
Then the variable only changes 1 time.
Reply


Messages In This Thread
loop not working for id 0 - by StrickenKid - 16.05.2009, 21:01
Re: loop not working for id 0 - by Weirdosport - 16.05.2009, 21:03
Re: loop not working for id 0 - by MenaceX^ - 16.05.2009, 21:07
Re: loop not working for id 0 - by StrickenKid - 16.05.2009, 21:12
Re: loop not working for id 0 - by MenaceX^ - 16.05.2009, 21:15
Re: loop not working for id 0 - by Weirdosport - 16.05.2009, 21:41
Re: loop not working for id 0 - by Jefff - 16.05.2009, 22:15
Re: loop not working for id 0 - by [eLg]Timmy - 16.05.2009, 22:40
Re: loop not working for id 0 - by Weirdosport - 16.05.2009, 22:56
Re: loop not working for id 0 - by Nero_3D - 16.05.2009, 23:30

Forum Jump:


Users browsing this thread: 3 Guest(s)