random()
#8

Quote:
Originally Posted by JaYmE
0 - 10

and you need to make it defined

pawn Код:
new MyRand = random(10);

MyRand += 1;

// then you can use the random and it should be 1 - 10 not 0 - 10 ;)
you dont HAVE to.

ex:

pawn Код:
CreateVehicle(random(400) + 200), 203, 203, 102, 22, -1, -1, -1);
this way, it isnt defined
Reply


Messages In This Thread
random() - by Kinetic - 25.02.2009, 02:25
Re: random() - by JaYmE - 25.02.2009, 02:31
Re: random() - by Kinetic - 25.02.2009, 02:49
Re: random() - by yom - 25.02.2009, 03:06
Re: random() - by JaYmE - 25.02.2009, 03:11
Re: random() - by Kinetic - 25.02.2009, 04:03
Re: random() - by Cueball - 25.02.2009, 06:26
Re: random() - by mamorunl - 25.02.2009, 08:47

Forum Jump:


Users browsing this thread: 1 Guest(s)