Event Help.
#5

So form a loop like above, the code bmx gave should work !
Also, heard of arrays?
Instead of
pawn Код:
new vehicle1, vehicle2, vehicle3...
Just
pawn Код:
new vehicle[6];
So you could avoid this
pawn Код:
SetVehicleVirtualWorld(vehicle1, 0);// car 1
    SetVehicleVirtualWorld(vehicle2, 0);// car 2
    SetVehicleVirtualWorld(vehicle3, 0);// car 3
    SetVehicleVirtualWorld(vehicle4, 0);// car 4
    SetVehicleVirtualWorld(vehicle5, 0);// car 5
    SetVehicleVirtualWorld(vehicle6, 0);// car 6
by doing this:
pawn Код:
for(new i = 0; i < 7; i++)
{
      SetVehicleVirtualWorld(vehicle[i], 15);
}
See? So easy ! Keep learning
Reply


Messages In This Thread
Event Help. - by ZizPower7610 - 26.03.2013, 11:57
Re: Event Help. - by park4bmx - 26.03.2013, 12:03
Re: Event Help. - by ZizPower7610 - 26.03.2013, 12:17
Re: Event Help. - by ZizPower7610 - 26.03.2013, 12:24
Re: Event Help. - by RajatPawar - 26.03.2013, 12:53

Forum Jump:


Users browsing this thread: 2 Guest(s)