05.01.2012, 21:04
I'm not sure that it will work, but you should try it:
pawn Code:
new num_plate[9];
for(new i; i < 3; i++) // 1,2,3 pos are letters
num_plate[i] = 'a'+random('z'-'a');
num_plate[3] = '-'; // 4 pos is '-'
for(new i=4; i < sizeof(num_plate); i++) // 5,6,7,8 pos are numbers
num_plate[i] = '0'+random('9'-'0');