Social Security(Random) - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Social Security(Random) (
/showthread.php?tid=193498)
Social Security(Random) -
Anthonyx3' - 26.11.2010
Hey me yet again xD!
I'm trying to make social secruity system you can say, it would be created by random 9 digits, how would i do this?
I looked at gfs phone system and saw
pawn Код:
new randphone = 100000 + random(899999);
PlayerInfo[playerid][pPnumber] = randphone;
So im guessing its something similar to this.
Re: Social Security(Random) -
Kyle - 26.11.2010
Use random ex,
so
randomEx(min,max);
Re: Social Security(Random) -
JamesC - 26.11.2010
pawn Код:
Variable = RandomEx(100000000, 999999999);
stock RandomEx(min, max) //By Alex "******" Cole
{
return random(max-min)+min;
}
Untested.