05.11.2012, 17:38
Quote:
Some notes on the loop you provided: If GetPlayerVehicleID returns a value OTHER than INVALID_VEHICLE_ID....you don't need to further check IsPlayerInAnyVehicle. If it returned a valid ID...they are in a vehicle.
|
In fact,
pawn Код:
if(IsPlayerInAnyVehicle(playerid))
{
vID = GetPlayerVehicleID(playerid);
// ...
}
pawn Код:
if((vID = GetPlayerVehicleID(playerid)) != 0)
pawn Код:
vID = GetPlayerVehicleID(playerid);
if(vID != 0)
{
// ...
}