Ignore certain ID's in a loop
#6

Quote:
Originally Posted by HellSphinX
Посмотреть сообщение
So what's wrong with the code which Viniborn gave you?

pawn Код:
if(!IsPlayerConnected(i) || i == killerid || i == playerid) continue;
That part is just fine now, although for some reason no witnesses are ever detected and it always skips to the 'else' statement.

Quote:
Originally Posted by Babul
Посмотреть сообщение
wouldnt it be nice to know the amount players who witnessed a death?
Код:
-snip-
That's a great idea thanks


Edit: Fixed now, had another typo in the loop, thanks for the help guys.
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: 2 Guest(s)