random numberplates
#4

pawn Код:
#define randomEx(%0,%1) (%0<%1?%0+random(%1-%0+1):%1+random(%0-%1+1))
//Then somewhere in your code...
new str[8];
format(str, sizeof(str), "%c%c%c %03d", randomEx('A', 'Z'), randomEx('A', 'Z'), randomEx('A', 'Z'), random(1000));
//After that compare the string with another ones in your files.
Reply


Messages In This Thread
random numberplates - by speed258 - 29.01.2012, 08:30
Re: random numberplates - by mineralo - 29.01.2012, 08:45
Re: random numberplates - by Vince - 29.01.2012, 09:05
AW: random numberplates - by BigETI - 29.01.2012, 09:12

Forum Jump:


Users browsing this thread: 1 Guest(s)