{
new string[30];
format(string, sizeof(string),"BG - %d", Vehicles);
SetVehicleNumberPlate(Vehicles, string);
SetVehicleToRespawn(Vehicles);
}
Enum for Vehicles
{
avModel,
Float:avPozX,
Float:avPozY,
Float:avPozZ,
Float:avPozA,
avBoja1,
avBoja2,
avVlasnik[60],
avImaVlasnika,
avID,
avZakljucan,
avCijena
}
format(string, sizeof(string),"BG - %d", Vehicles[avID]);
|
I need help about Vehicle Plates
Code for Plates: Код HTML:
{
new string[30];
format(string, sizeof(string),"BG - %d", Vehicles);
SetVehicleNumberPlate(Vehicles, string);
SetVehicleToRespawn(Vehicles);
}
Код HTML:
Enum for Vehicles
{
avModel,
Float:avPozX,
Float:avPozY,
Float:avPozZ,
Float:avPozA,
avBoja1,
avBoja2,
avVlasnik[60],
avImaVlasnika,
avID,
avZakljucan,
avCijena
}
EDIT: I mean vehicle id to replace %d |
for(new v = 1; v < MAX_VEHICELS; v++) //MAX_VEHILCES or your pool enum. EX: new VehEnum[50][EnumVeh]; Then replace MAX_VEHICLES with 50
{
new string[30];
format(string, sizeof(string),"BG - %d", VehEnum[v][avID]);
SetVehicleNumberPlate(v, string);
SetVehicleToRespawn(v);
}