25.02.2009, 02:25
if I had random(10); does the function return a random number from 1 to 10 or from 0 to 10?
new MyRand = random(10);
MyRand += 1;
// then you can use the random and it should be 1 - 10 not 0 - 10 ;)
Originally Posted by 0rb
0 to 9.
|
Originally Posted by JaYmE
0 - 10
and you need to make it defined pawn Код:
|
CreateVehicle(random(400) + 200), 203, 203, 102, 22, -1, -1, -1);