Doesn't get the vehicle name (+REP) [quick one]
#4

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
The vehicle specified does not exist, GetVehicleModel returns 0 and subtracting from it goes to invalid index -400.

PHP код:
#if !defined strcpy
    #define strcpy(%0,%1) strcat((%0[0] = EOS, %0), %1)
#endif 
PHP код:
GetVehicleName(vehicleid)
{
    new 
String[32] = "N/A"modelid GetVehicleModel(vehicleid);
    if (!
modelid) return String;
    
strcpy(StringVehicleNames[modelid 400], sizeof(String));
    return 
String;

It shows the vehicle as N/A even when i've a vehicle on the file
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)