Foreach - Checking for One Case
#3

pawn Код:
new c=0;
foreach (new i : Player)
{
    if (dead[i]==true)
    {
        c++;
        if (c==GetPlayersOnServer())
        {
            SendClientMessageToAll();
        }
    }
}
I got the getplayersonline funtion from here: https://sampforum.blast.hk/showthread.php?tid=136750
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: 1 Guest(s)