01.11.2011, 20:39
Hey, I have problem with random();
my script:
The problem is, that it formats it as: ZZZ 468 or BBB 865, etc. Always the same letter.
How to fix it?
my script:
pawn Код:
new RandomLetter[][] = { "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "O", "P", "Q", "R", "S", "T", "U", "V", "X", "Y", "Z" };
new rand = random(sizeof(RandomLetter));
format(Numbers, sizeof(Numbers), "%s%s%s %d%d%d",RandomLetter[rand] ,RandomLetter[rand] ,RandomLetter[rand] ,random(9), random(9), random(9));
How to fix it?