Random route
#2

pawn Код:
stock RandomRoute()
{
    switch(random(3))
    {
        case 0: return DriverRoute3[random(sizeof(DriverRoute3))][3];
        case 1: return DriverRoute4[random(sizeof(DriverRoute4))][3];
        case 2: return DriverRoute5[random(sizeof(DriverRoute5))][3];
    }
    return -1;
}
This?
Untested...
Reply


Messages In This Thread
Random route - by ajwar - 21.06.2011, 09:07
Re: Random route - by Lorenc_ - 21.06.2011, 09:13

Forum Jump:


Users browsing this thread: 1 Guest(s)