Foreach - Checking for One Case
#7

pawn Код:
new bool: someonealive;
foreach(new i : Player)
{
    if(!YourVar[i])
    {
        someonealive = true;
        break;
    }
}
if(!someonealive) //This means that all dead
Reply


Messages In This Thread
Foreach - Checking for One Case - by TKZ227 - 27.05.2013, 18:41
Re: Foreach - Checking for One Case - by SilverKiller - 27.05.2013, 19:10
AW: Foreach - Checking for One Case - by HurtLocker - 27.05.2013, 19:16
Re: Foreach - Checking for One Case - by IstuntmanI - 27.05.2013, 19:50
Re: Foreach - Checking for One Case - by TKZ227 - 27.05.2013, 20:23
Re: Foreach - Checking for One Case - by Pottus - 27.05.2013, 20:32
Re: Foreach - Checking for One Case - by stabker - 27.05.2013, 21:03
Re: Foreach - Checking for One Case - by Pottus - 27.05.2013, 21:05
Re: Foreach - Checking for One Case - by stabker - 27.05.2013, 21:10
Re: Foreach - Checking for One Case - by Pottus - 27.05.2013, 21:25

Forum Jump:


Users browsing this thread: 2 Guest(s)