15.06.2012, 14:59
Its now working.
new platepm, plategov, plateamb, platedmv, platetaxi;
for(new v = 0; v < MAX_CARS; v++)
{
if(IsCopCar(v))
{
platepm++;
format(string, sizeof(string), "LSPD %d", platepm);
SetVehicleNumberPlate(v, string);
print(string);
}
if(IsGovCar(v))
{
format(string, sizeof(string), "GOV %d", plategov);
SetVehicleNumberPlate(v, string);
print(string);
plategov++;
}
if(IsAmbulance(v))
{
format(string, sizeof(string), "EMS %d", plateamb);
SetVehicleNumberPlate(v, string);
print(string);
plateamb++;
}
if(IsDMVCar(v))
{
format(string, sizeof(string), "DMV %d", platedmv);
SetVehicleNumberPlate(v, string);
print(string);
platedmv++;
}
if(IsATaxi(v))
{
format(string, sizeof(string), "Taxi %d", platetaxi);
SetVehicleNumberPlate(v, string);
print(string);
platetaxi++;
}
}