04.01.2015, 11:05
Im trying to make a random vehicle spawn , without helis and trailers and so on , but I have problem with random
Ive set it like this:
as you can see removed all helis and trailers , but yet they keep spawn to me
What am I doing wrong with random?
Ive set it like this:
pawn Код:
randvc = random(212);
switch(randvc)
{
case 17: finalv = 400+randvc-6; //
case 25: finalv = 400+randvc-6; //
case 30: finalv = 400+randvc-6; //
case 32: finalv = 400+randvc-6; //
case 35: finalv = 400+randvc-6; //
case 46..47: finalv = 400+randvc-6; //
case 49..50: finalv = 400+randvc-6; //
case 52..54: finalv = 400+randvc-6; //
case 60: finalv = 400+randvc-6; //
case 64: finalv = 400+randvc-6; //
case 69: finalv = 400+randvc-6; //
case 72..73: finalv = 400+randvc-6; //
case 76: finalv = 400+randvc-6; //
case 84: finalv = 400+randvc-6; //
case 87..88: finalv = 400+randvc-6; //
case 93: finalv = 400+randvc-1; // //
case 97: finalv = 400+randvc-6; //
case 111..113: finalv = 400+randvc-6; //
case 119: finalv = 400+randvc-1; // //
case 120: finalv = 400+randvc-6; //
case 137..138: finalv = 400+randvc-6; //
case 148: finalv = 400+randvc-6; //
case 153: finalv = 400+randvc-6; //
case 163: finalv = 400+randvc-6; //
case 169: finalv = 400+randvc-1; // //
case 170: finalv = 400+randvc-6; //
case 177: finalv = 400+randvc-6; //
case 187: finalv = 400+randvc-6; //
case 190..191: finalv = 400+randvc-6; //
case 192..193: finalv = 609; // // //
case 195: finalv = 400+randvc-6; //
case 206..211: finalv = 400+randvc-6; //
default: finalv = 400+randvc; }
What am I doing wrong with random?