Random Letters and Numbers
#2

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');
Reply


Messages In This Thread
Random Letters and Numbers - by Abreezy - 05.01.2012, 20:30
Re: Random Letters and Numbers - by Norck - 05.01.2012, 21:04
Re: Random Letters and Numbers - by Mrki_Drakula - 05.01.2012, 21:21
Re: Random Letters and Numbers - by Abreezy - 05.01.2012, 22:20
Re: Random Letters and Numbers - by thiaZ_ - 05.01.2012, 22:25
Re: Random Letters and Numbers - by Abreezy - 05.01.2012, 22:37
Re: Random Letters and Numbers - by vincee - 05.01.2012, 22:43
Re: Random Letters and Numbers - by thiaZ_ - 05.01.2012, 22:46
Re: Random Letters and Numbers - by vincee - 05.01.2012, 22:51

Forum Jump:


Users browsing this thread: 3 Guest(s)