Loop in an array
#5

So uh, something like this?

PHP код:
for(new i=0i<10i++)
{
    if(
PlayerInfo[id][Inv][i] == 1)
    {
        
//code
    
}

Would this code check if the content of every [Inv] variable is equal to 1?
Reply


Messages In This Thread
Loop in an array - by NealPeteros - 09.10.2018, 10:48
Re: Loop in an array - by Calisthenics - 09.10.2018, 11:00
Re: Loop in an array - by NealPeteros - 09.10.2018, 11:45
Re: Loop in an array - by NaS - 09.10.2018, 11:52
Re: Loop in an array - by NealPeteros - 09.10.2018, 12:07
Re: Loop in an array - by NaS - 09.10.2018, 12:11

Forum Jump:


Users browsing this thread: 1 Guest(s)