CreateVehicle & OnVehicleDeath
#4

I'm afraid i don't understand you. You can assign only one vehicle to the vehiclename variable, so if you do it like this:
pawn Код:
public OnGameModeInit()
{
  vehiclename = CreateVehicle(veh, xpos, ypos, zpos, angle, -1, -1); // ID 1.
  vehiclename = CreateVehicle(veh, xpos, ypos, zpos, angle, -1, -1); // ID 2.
  vehiclename = CreateVehicle(veh, xpos, ypos, zpos, angle, -1, -1); // ID 3.
  return true;
}
then the vehiclename will hold the ID of the last assigned vehicle (in this case it will be ID 3).
Reply


Messages In This Thread
CreateVehicle & OnVehicleDeath - by adsy - 06.01.2010, 13:08
Re: CreateVehicle & OnVehicleDeath - by Correlli - 06.01.2010, 13:12
Re: CreateVehicle & OnVehicleDeath - by adsy - 06.01.2010, 13:17
Re: CreateVehicle & OnVehicleDeath - by Correlli - 06.01.2010, 13:21
Re: CreateVehicle & OnVehicleDeath - by adsy - 06.01.2010, 13:23

Forum Jump:


Users browsing this thread: 4 Guest(s)