13.12.2015, 19:58
With
you are actually doing this check:
which is always 1 because vehicle IDs start from 1, and a check like 0 || VEHICLEID || VEHICLEID || VEHICLEID is always 1 because it's an OR.
what you actually want is this:
pawn Код:
if(GetPlayerVehicleID(playerid) == VMManana1 || VMManana2 || VMManana3 || VMManana4 || VMManana5 || VMManana6 || VMManana7 || VMManana8)
pawn Код:
if( GetPlayerVehicleID( playerid ) == VMManana1 || VMManana2 != 0 || VMManana3 != 0 || VMManana4 != 0 || VMManana5 != 0 || VMManana6 != 0 || VMManana7 != 0 || VMManana8 != 0 )
what you actually want is this:
pawn Код:
if(GetPlayerVehicleID(playerid) == VMManana1 || GetPlayerVehicleID(playerid) == VMManana2 || GetPlayerVehicleID(playerid) == VMManana3 || GetPlayerVehicleID(playerid) == VMManana4 || GetPlayerVehicleID(playerid) == VMManana5 || GetPlayerVehicleID(playerid) == VMManana6 || GetPlayerVehicleID(playerid) == VMManana7 || GetPlayerVehicleID(playerid) == VMManana8)