09.04.2011, 00:31
You are comparing a string with an vehicleid, this is not possible.
Also i guess you want to compare the model ID instead of vehicleid ?
This is much better:
Also i guess you want to compare the model ID instead of vehicleid ?
This is much better:
pawn Код:
for(new i = 0; i < MAX_VEHICLES; i++){
SetVehicleNumberPlate(i, "CFHS");
switch(GetVehicleModel(i))
{
case 417,425,430,611: //if its one of these model id's
default: //if this is not the case
{
AddVehicleComponent(GetPlayerVehicleID(i),1010);
}
}
SetVehicleToRespawn(i);
}