Quote:
Originally Posted by clavador
Didn't test it, but this should work:
pawn Код:
stock ChangeVehPlate( vehicleid ) { new string[8], string2[4]; if( vehicleid < 10 ) format(string2,sizeof(string2),"00%i", vehicleid ); else if( vehicleid < 100 ) format(string2,sizeof(string2),"0%i", vehicleid ); else format(string2,sizeof(string2),"%i", vehicleid ); format(string,sizeof(string),"LV-%s", string2 ); SetVehicleNumberPlate( vehicleid, string ); return 1; }
|
Didn't work, i have a vehicle i added from AddStaticVehicle and it doesnt show the plate in game..