Random Arrays
#7

Quote:
Originally Posted by Luis-
Посмотреть сообщение
Well, i'm wanting to do it for my DMV system, instead of having just one route to use, I was thinking of having a couple which would be chosen at random. So, if the script chose array1 it'd show the checkpoints for array1, if it chose array2 it'd show array2 checkpoints.
Ahh i understand ok.

Well, then make sth like this:

Код:
switch(random(MAX_ROUTS)) {
    case 0: //here you start route 1
    case 1: //here you start route 2
    case 2: //here you start route 3
    //...
}
Make it like this..its the easiest way xD
Reply


Messages In This Thread
Random Arrays - by Luis- - 06.03.2015, 14:05
AW: Random Arrays - by Kaliber - 06.03.2015, 14:08
Re: Random Arrays - by Luis- - 06.03.2015, 14:13
Re: Random Arrays - by RedFusion - 06.03.2015, 14:17
AW: Re: Random Arrays - by Kaliber - 06.03.2015, 14:18
Re: Random Arrays - by Luis- - 06.03.2015, 14:21
AW: Re: Random Arrays - by Kaliber - 06.03.2015, 14:25
Re: Random Arrays - by Luis- - 06.03.2015, 14:43

Forum Jump:


Users browsing this thread: 4 Guest(s)