05.12.2010, 09:29
Any idea how to add same license plate to all vehicles in the server.. easily?
for(new i = 1; i < MAX_VEHICLES; i++)
{
SetVehicleNumberPlate(i, "PLATE");
}
|
or like this...
new admhouse1 admhouse1 = AddStaticVehicleEx(562,-2528.8894,2269.0024,4.7100,245.0000,6,6,-1); SetVehicleNumberPlate(admhouse1, "LS-A659"); I do this with 500 Cars ^^ then all Cars have different Numbers |
for(new v = 0; v < MAX_PLAYERS; v ++)
{
SetVehicleNumberPlate(vehicleid,"Number");
}
|
Thats the same work but if you work only with a ID u have some more work if you change other things with cars
![]() |
|
or like this...
new admhouse1 admhouse1 = AddStaticVehicleEx(562,-2528.8894,2269.0024,4.7100,245.0000,6,6,-1); SetVehicleNumberPlate(admhouse1, "LS-A659"); I do this with 500 Cars ^^ then all Cars have different Numbers |

new buffer[20];
for(new v = 0; v < MAX_VEHICLES; v++)
{
format(buffer, sizeof(buffer), "LS-A%d%d", v, random(10));
SetVehicleNumberPlate(v, buffer);
}
|
I think it's bad idea
![]() Код:
new buffer[20];
for(new v = 0; v < MAX_VEHICLES; v++)
{
format(buffer, sizeof(buffer), "LS-A%d%d", v, random(10));
SetVehicleNumberPlate(v, buffer);
}
|