Erroristic problem :)
#2

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:
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);
    }
Reply


Messages In This Thread
Erroristic problem :) - by LZLo - 08.04.2011, 21:42
Re: Erroristic problem :) - by gamer931215 - 09.04.2011, 00:31
Re: Erroristic problem :) - by LZLo - 09.04.2011, 09:32

Forum Jump:


Users browsing this thread: 4 Guest(s)