Personal cars not showing up
#2

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:
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;
}
Usage:
pawn Код:
GetVehicleName(PlayerInfo[targetid][pPcarkey])
Reply


Messages In This Thread
Personal cars not showing up - by PepsiCola23 - 30.05.2015, 15:39
Re: Personal cars not showing up - by Konstantinos - 30.05.2015, 15:45
Re: Personal cars not showing up - by PepsiCola23 - 30.05.2015, 20:03

Forum Jump:


Users browsing this thread: 1 Guest(s)