pawn Code:
TaxiCar = AddStaticVehicleEx(420,2044.8854,1473.2106,10.4494 ,181.3339,6,1,-1);
TaxiCar will hold the id of the created vehicle
so if this is the first vehicle to be created TaxiCar will = 1
so doing something like
pawn Code:
TaxiCar = AddStaticVehicleEx(420,2044.8854,1473.2106,10.4494 ,181.3339,6,1,-1);
TaxiCar = AddStaticVehicleEx(420,2044.8854,1473.2106,10.4494 ,181.3339,6,1,-1);
TaxiCar = AddStaticVehicleEx(420,2044.8854,1473.2106,10.4494 ,181.3339,6,1,-1);
TaxiCar = AddStaticVehicleEx(420,2044.8854,1473.2106,10.4494 ,181.3339,6,1,-1);
will alter the value each time
pawn Code:
TaxiCar = AddStaticVehicleEx(420,2044.8854,1473.2106,10.4494 ,181.3339,6,1,-1);
TaxiCar2 = AddStaticVehicleEx(420,2044.8854,1473.2106,10.4494 ,181.3339,6,1,-1);
TaxiCar3 = AddStaticVehicleEx(420,2044.8854,1473.2106,10.4494 ,181.3339,6,1,-1);
TaxiCar4 = AddStaticVehicleEx(420,2044.8854,1473.2106,10.4494 ,181.3339,6,1,-1);
this is more how it will be done.
or even use an array
pawn Code:
new TaxiCar[4];
TaxiCar[0] = AddStaticVehicleEx(420,2044.8854,1473.2106,10.4494 ,181.3339,6,1,-1);
TaxiCar[1] = AddStaticVehicleEx(420,2044.8854,1473.2106,10.4494 ,181.3339,6,1,-1);
TaxiCar[2] = AddStaticVehicleEx(420,2044.8854,1473.2106,10.4494 ,181.3339,6,1,-1);
TaxiCar[3] = AddStaticVehicleEx(420,2044.8854,1473.2106,10.4494 ,181.3339,6,1,-1);