Random
#1

Greetings,

I have this code:
PHP код:
enum Vehicles
{
    
v00,
    
v01
};
new 
Vehicle[Vehicles];
Vehicle[v00] = CreateVehicle(41188.4730, -80.32540.932873.947300, -1);
Vehicle[v01] = CreateVehicle(411133.0589, -85.03111.4297239.075500, -1);
new 
random(sizeof(Vehicle));
if(!
IsVehicleOccupied(v)) PutPlayerInVehicle(iv0); 
Most time I spawn in one of the cars, however, sometimes I don't. Am I doing something wrong?
Reply


Messages In This Thread
Random - by humphrey - 16.10.2014, 12:00
Re: Random - by Sawalha - 16.10.2014, 12:04
Re: Random - by humphrey - 16.10.2014, 12:21

Forum Jump:


Users browsing this thread: 3 Guest(s)