08.07.2012, 11:33
Hi,
I have made this script:
This will output a number plate like: TL(4 digit number)
but in some cases it will output only 1,2 or 3 digits
I don't no what i am doing wrong help me
I have made this script:
Код:
carId = AddStaticVehicleEx(vehicletype,SpawnX,SpawnY,SpawnZ,SpawnRot,Color1,Color2,(30*60)); for(new i=0;i<4;i++) { randnumber[i] = random(9999); } format(numplate_test,32,"{F81414}TL{000000}%d",randnumber[1]); SetVehicleNumberPlate(carId, numplate_test);
but in some cases it will output only 1,2 or 3 digits
I don't no what i am doing wrong help me