Je ne crois pas que tu comprends ...
Par exemple :
AddStaticVehicle (idambu, potision); // 1
AddStaticVehicle (idambu, potision); // 2
AddStaticVehicle (idambu, potision); //3
AddStaticVehicle (Vpolice, potision); //4
AddStaticVehicle (Vpolice, potision); //5
AddStaticVehicle (Vpolice, potision); //6
1.
public IsACopCar(carid)
2.
{
3.
if(((carid = 4) && (carid <= 6)))
4.
{
5.
return 1;
6.
}
7.
return 0;
8.
}
Tu pars de la premiere voiture et tu comptes, ou tu refais les car id