foreach problem or somthing
#2

Break your loop when you have found what you are looking for:
PHP код:
foreach(new Gangs

    if(
== gangid)
    {
        
found true
        break;
    }

Your function could be rewritten. Plus, don't use foreach(Player,i) but foreach(new i : Player)
Reply


Messages In This Thread
foreach problem or somthing - by LevelT - 12.06.2018, 04:07
Re: foreach problem or somthing - by Dayrion - 12.06.2018, 10:33
Re: foreach problem or somthing - by Calisthenics - 12.06.2018, 10:45
Re: foreach problem or somthing - by poppingrose - 12.06.2018, 14:22

Forum Jump:


Users browsing this thread: 1 Guest(s)