01.12.2014, 04:46
I'm experimenting for the first time, the random() feature in SAMP. I'm going to use it to create random license plates on dynamic vehicles. When I use the command /dvcreate, it creates a vehicle. It then will call the function Random(999) to get the first side of the license plate, and another one to get the second part. So the string would look like
And the plate would look like (at random
What I'm wondering, if the number reaches like 45, if I could set it to have a zero before it so it will still come out to three characters, like
And if it is possible to not only have numbers, but have letters as well.
Help please!
pawn Код:
%d - %d
pawn Код:
451 - 942
pawn Код:
045 - 541
Help please!