23.05.2015, 12:01
What if the player is not in any vehicle so GetPlayerVehicleID returns 0? It will subtract 400 so the index will be -400 (invalid as the valid indexes of the array are 0 to 211).
PHP код:
GetVehicleName(vehicleid)
{
new string[32] = "N/A", modelid = GetVehicleModel(vehicleid);
if (modelid) strcat((string[0] = EOS, string), VehicleNames[modelid - 400], sizeof (string));
return string;
}