Uhh I need help (Random phone number)..
#7

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
pawn Код:
new
    phone[ 11 ]
;
format( phone, sizeof( phone ), "072%d%d%d%d%d%d%d", random( 10 ), random( 10 ), random( 10 ), random( 10 ), random( 10 ), random( 10 ), random( 10 ) );
// Replace the 072 with any prefix you want.
About checking for number, use strcmp.
About saving, you just need a string of size 11.
Reply


Messages In This Thread
Uhh I need help (Random phone number).. - by Scrillex - 15.09.2013, 22:36
Re: Uhh I need help (Random phone number).. - by Eyce - 15.09.2013, 23:17
Re: Uhh I need help (Random phone number).. - by Scrillex - 15.09.2013, 23:20
Re: Uhh I need help (Random phone number).. - by Eyce - 15.09.2013, 23:24
Re: Uhh I need help (Random phone number).. - by Scrillex - 15.09.2013, 23:27
Re: Uhh I need help (Random phone number).. - by Scrillex - 16.09.2013, 11:19
Re: Uhh I need help (Random phone number).. - by Dragonsaurus - 16.09.2013, 11:29
Re: Uhh I need help (Random phone number).. - by Scrillex - 16.09.2013, 11:39

Forum Jump:


Users browsing this thread: 1 Guest(s)