Dont know how - 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: Dont know how (
/showthread.php?tid=193152)
Dont know how -
Buzzbomb - 25.11.2010
How do i go about making a random number like Example 435-534 it would randomly make its own number like that
I want it to Make random numbers upon User registering
Any Help will be appreciated thanks..
Re: Dont know how -
Kitten - 25.11.2010
so like im not sure if this going to work
pawn Код:
new RandomNumbers = random(5)
switch(RandomNumbers)
{
case 0: Your function or variable
case 1:
case 2:
case 3:
case 4:
case 5:
}
EDIT: im not sure i think this is what u mean.
Re: Dont know how - [L3th4l] - 25.11.2010
umm, try this:
pawn Код:
new Number = 1000, Number2 = 1000;
printf("%d-%d", random(Number), random(Number2));
Re: Dont know how -
cessil - 25.11.2010
you mean like a random number between x and y?
x + random(y-x);
Re: Dont know how -
Buzzbomb - 25.11.2010
Yeah something like that but.. i want it to write it into the users files to be saved what my intention is when a player register it write a few numbers into there user file next to the Line SSN=324-432 like that it would be saved some weird shit i thought of to put in my mode its gonna be used for like a social security number heh hope that helps..
Re: Dont know how -
Buzzbomb - 25.11.2010
I tried both examples.. epic failure heh.. help please..
Re: Dont know how -
Buzzbomb - 25.11.2010
Nevermind forget it.. This must be to hard for you all dont worry about it ill get it like the other posts i manage to create and answered my self.... Thanks for the responses...