28.08.2014, 14:42
Hello how to code random phone number?
i want 86{00-20}{00000-99999}
between {} random this numbers
example 860099999
i want 86{00-20}{00000-99999}
between {} random this numbers
example 860099999
new string[70];
format(string, sizeof(string), "86%d%d", random(20), random(99999));
format(string, sizeof(string), "86%d%d", (random(30)+20), random(99999));
new number[200]; new skaiciai = format(number, sizeof(number), "86%2d%5d", (random(30)+20), random(99999)); PlayerData[playerid][Tinklas] = 2; PlayerData[playerid][Numeris] = skaiciai;
PlayerData[playerid][Tinklas] = 2; PlayerData[playerid][Numeris] = 860000000+((21+random(30))*100000)+random(99999);