Random Letters & Numbers - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Random Letters & Numbers (
/showthread.php?tid=386392)
Random Letters & Numbers -
RedFusion - 20.10.2012
How do i randomize my carplates to 3 random letters followed by a space and 3 random numbers?
example: ABY 599
Re: Random Letters & Numbers -
ViniBorn - 20.10.2012
Ex:
pawn Код:
format(plate, 10, "%c%c%c %d%d%d",65+random(26),65+random(26),65+random(26),random(10),random(10),random(10));