13.07.2009, 09:38
Hello,
I'm doing a boat race.
After The finishing of the race,I want to destory the vehicle that I created before.
for(new i;i<MAX_PLAYERS;i++)
{
if(InBoatRace[i] == 1) DestroyVehicle(GetPlayerVehicleID(i));
}
The vehicle doesnt destroy.
This is the creation of the vehicle:
Thank you for helping!
I'm doing a boat race.
After The finishing of the race,I want to destory the vehicle that I created before.
Код:
for(new i;i<MAX_PLAYERS;i++) { if(InBoatRace[i] == 1) { TogglePlayerControllable(i, 1);
{
if(InBoatRace[i] == 1) DestroyVehicle(GetPlayerVehicleID(i));
}
The vehicle doesnt destroy.
This is the creation of the vehicle:
Код:
new rand = random(sizeof(RandomRaceSpawns)); Car[i] = CreateVehicle(446,RandomRaceSpawns[rand][0],RandomRaceSpawns[rand][1],RandomRaceSpawns[rand][2],RandomRaceSpawns[rand][3],75,84,3000); PutPlayerInVehicle(i,Car[i],0);