Help with loop inside loop
#4

Yeah almost. Remove the ! and one ) and extend it with a break:

Code:
if(MVehicleO[v] == 0)
{
PutPlayerInVehicle(i, MVehicle[v], 0);
MVehicleO[v] = 1; 
break;
}
Without the break it would put the first player in all vehicles and set them occupied.
Put the code into the Vehicle Loop obviously.

And remember to reset the MVehicleO Array when restarting the event.
Reply


Messages In This Thread
Help with loop inside loop - by Salim_Karaja - 24.02.2013, 18:40
AW: Help with loop inside loop - by NaS - 24.02.2013, 18:50
Re: AW: Help with loop inside loop - by Salim_Karaja - 24.02.2013, 18:54
AW: Help with loop inside loop - by NaS - 24.02.2013, 18:57
Re: AW: Help with loop inside loop - by Salim_Karaja - 24.02.2013, 19:02

Forum Jump:


Users browsing this thread: 1 Guest(s)