Using random
#1

Hi
I've currently got this code for phone numbers

{
//generate number
new number;
while(number == 0)
{
number = random(8999)+1000;
if(GetPlayerIDFromPhoneNumber(number) != INVALID_PLAYER_ID) number = 0;
}

is there any way I could change it so that all the numbers will have 444 in front of the random number? So they are like 4445562, 4442262 etc

Thanks
Matt
Reply


Messages In This Thread
Using random - by Mattjones17 - 30.08.2009, 17:18
Re: Using random - by Zeex - 30.08.2009, 17:20
Re: Using random - by Mattjones17 - 30.08.2009, 17:23

Forum Jump:


Users browsing this thread: 1 Guest(s)