30.05.2015, 15:45
Just have a global array with all vehicles' name and retrieve it in the code.
http://forum.sa-mp.com/showpost.php?...06&postcount=4
But modifying to prevent run time errors:
Usage:
http://forum.sa-mp.com/showpost.php?...06&postcount=4
But modifying to prevent run time errors:
pawn Код:
GetVehicleName(vehicleid)
{
new String[32] = "N/A", modelid = GetVehicleModel(vehicleid);
if (modelid) strcat((String[0] = EOS, String), VehicleNames[modelid - 400], sizeof (String));
return String;
}
pawn Код:
GetVehicleName(PlayerInfo[targetid][pPcarkey])