Ignore certain ID's in a loop
#4

Quote:
Originally Posted by WIKI
continue basically skips a loop iteration
so it's just perfect if you use it correctly.


Quote:
Originally Posted by Infamous
I need to ignore id's that are not connected, that are the playerid and that are the killerid, then process all the remaining id's and check if they are in range of the killerid.
So what's wrong with the code which Viniborn gave you?

pawn Код:
if(!IsPlayerConnected(i) || i == killerid || i == playerid) continue;
Reply


Messages In This Thread
Ignore certain ID's in a loop - by Infamous - 04.11.2012, 09:01
Re: Ignore certain ID's in a loop - by ViniBorn - 04.11.2012, 09:16
Re: Ignore certain ID's in a loop - by Infamous - 04.11.2012, 09:18
Re: Ignore certain ID's in a loop - by [KHK]Khalid - 04.11.2012, 11:05
Re: Ignore certain ID's in a loop - by Babul - 04.11.2012, 11:06
Re: Ignore certain ID's in a loop - by Infamous - 04.11.2012, 11:29

Forum Jump:


Users browsing this thread: 1 Guest(s)