10.10.2014, 12:35
That's because your "automon" timer is probably being called whilst the player is not inside a vehicle, thus returning "-400" since "GetVehicleModel" equals to 0 when an invalid vehicle ID is passed.
pawn Код:
GetVehicleName(vehicleid) {
// No need for 256 cells.
new
name[32];
if (!(400 <= vehicleid <= 611))
return name;
vehicleid -= 400;
strcat(name, VehicleNames[vehicleid]);
return name;
}