A tag mismatch warning that I don't understand...
#2

Your vType is probably inside enum declaring strong tag (starting with big letter). Like:

pawn Код:
enum VehicleInfo {
    vType
    //(...)
}
So, do one of the following:
pawn Код:
if(eVehicleType:vStats[vehicleID][vType] == VEHICLE_TYPE_FACTION)
//or
if(vStats[vehicleID][vType] == VehicleInfo:VEHICLE_TYPE_FACTION)
//or
if(_:vStats[vehicleID][vType] == _:VEHICLE_TYPE_FACTION)
#e: and the reason why switch isn't causing tag mismatches, is because everything in there is reduced to numeric constants (_ tag), while if checks everything
Reply


Messages In This Thread
[SOLVED] A tag mismatch warning that I don't understand... - by Scenario - 07.08.2013, 20:26
Re: A tag mismatch warning that I don't understand... - by Misiur - 07.08.2013, 20:33
Re: A tag mismatch warning that I don't understand... - by Bakr - 07.08.2013, 20:44
Re: A tag mismatch warning that I don't understand... - by Scenario - 07.08.2013, 22:50
Re: A tag mismatch warning that I don't understand... - by Vince - 07.08.2013, 23:26
Re: A tag mismatch warning that I don't understand... - by Scenario - 07.08.2013, 23:37

Forum Jump:


Users browsing this thread: 1 Guest(s)