Debug Help
#3

GetVehicleModel returns 0 when the vehicle does not exist. You can prevent it in GetVehicleName but shouldn't this function be called at all in the first place for invalid vehicles.

pawn Код:
GetVehicleName(vehicleid)
{
    new vstring[18], modelid = GetVehicleModel(vehicleid);
    if (modelid) strcat(vstring, vehicleNames[modelid - 400]);
    return vstring;
}
Reply


Messages In This Thread
Debug Help - by rollinforq - 05.11.2016, 10:26
Re: Debug Help - by Sew_Sumi - 05.11.2016, 10:40
Re: Debug Help - by Konstantinos - 05.11.2016, 11:32

Forum Jump:


Users browsing this thread: 4 Guest(s)