4digit random number
#1

Hi,
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);
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
Reply


Messages In This Thread
4digit random number - by dogman - 08.07.2012, 11:33
Re: 4digit random number - by ReneG - 08.07.2012, 11:40
Re: 4digit random number - by dogman - 08.07.2012, 11:43
Re: 4digit random number - by clarencecuzz - 08.07.2012, 11:44
Re: 4digit random number - by Stylock - 08.07.2012, 12:05

Forum Jump:


Users browsing this thread: 1 Guest(s)