26.03.2013, 12:53
So form a loop like above, the code bmx gave should work !
Also, heard of arrays?
Instead of
Just
So you could avoid this
by doing this:
See? So easy ! Keep learning
Also, heard of arrays?
Instead of
pawn Код:
new vehicle1, vehicle2, vehicle3...
pawn Код:
new vehicle[6];
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
pawn Код:
for(new i = 0; i < 7; i++)
{
SetVehicleVirtualWorld(vehicle[i], 15);
}