Dont know how
#1

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..
Reply
#2

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.
Reply
#3

umm, try this:
pawn Код:
new Number = 1000, Number2 = 1000;
    printf("%d-%d", random(Number), random(Number2));
Reply
#4

you mean like a random number between x and y?
x + random(y-x);
Reply
#5

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..
Reply
#6

I tried both examples.. epic failure heh.. help please..
Reply
#7

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...
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)