12.12.2009, 16:30
Ok , this work
But what about this ? This didn't delete my vehicle(s). Why ?
pawn Код:
// In a command
new CaRs = MAX_VEHICLES - AmountOfVehicles();
for(new i = 1; i < CaRs; i++)
{
DestroyVehicle(i + 10); // Let's say AmountOfVehicles = 10
Dc++;
}
pawn Код:
// In a command
new CaRs = MAX_VEHICLES - AmountOfVehicles();
for(new i = 1; i < CaRs; i++)
{
DestroyVehicle(i + AmountOfVehicles());
Dc++;
}
-----------------------------------------------------------------------------
pawn Код:
stock AmountOfVehicles()
{
new vc;
for(new i=1; i < 2000; i++) if(GetVehicleModel(i) != 0) vc++;
return vc;
}