11.01.2015, 18:07
Tenta assim.
O seu comando, compilou tranquilo aqui.
pawn Code:
stock IsVehicleInUse(vehicleid)
{
new Veiculo;
for(new i; i < MAX_PLAYERS; i++)
{
if(GetPlayerVehicleID(i) == vehicleid) {
Veiculo = vehicleid;
}
if(GetVehicleTrailer(GetPlayerVehicleID(i)) == vehicleid) {
Veiculo = vehicleid;
}
}
return Veiculo;
}