#3

I am not sure if this code - in matters of logic - is correct or not, but it is working.
PHP код:
for(new i<MAX_VEHICLES++)
{
    if(
Occupied[i] == false)
    {
     
PutPlayerInVehicle(playeridVehicles[random(2)], 0);
     
Occupied[i] = true;
     if(
Occupied[Vehicles[random(2)]] == true)
     {
           break;
     }
    }

Or is it false?
Reply


Messages In This Thread
Loop - by babecka - 26.06.2014, 18:29
Re: Loop - by Vince - 26.06.2014, 18:34
Re: Loop - by babecka - 26.06.2014, 18:56

Forum Jump:


Users browsing this thread: 1 Guest(s)