Vehicle system nulls on restart
#2

Hello!

Try this, please.
PHP код:
new vCount,vFile[35];
for(new 
i,j=sizeof(VehicleInfo);i<j;i++)
{
    
format(vFile,sizeof(vFile),vPATH,i);
    if(
exist(vFile))
    {
        
INI_ParseFile(vFile,"LoadVehicle",.bExtra true, .extra i);
        if(
VehicleInfo[i][vModel] != 0)
        {
            
vCount ++;
            
VehicleInfo[i][vID] = CreateVehicle(VehicleInfo[i][vModel],VehicleInfo[i][vX],VehicleInfo[i][vY],VehicleInfo[i][vZ],VehicleInfo[i][vA],VehicleInfo[i][vColor1],VehicleInfo[i][vColor2],-1);
            
SetVehicleParamsEx(VehicleInfo[i][vID],0,0,0,0,0,0,0);
        }
    }
}
printf("%i vehicles have been loaded!",vCount); 
Reply


Messages In This Thread
Vehicle system nulls on restart - by DevHarden - 20.03.2017, 00:05
Re: Vehicle system nulls on restart - by Mencent - 20.03.2017, 12:41
Re: Vehicle system nulls on restart - by DevHarden - 21.03.2017, 00:57
Re: Vehicle system nulls on restart - by DevHarden - 21.03.2017, 14:37
Re: Vehicle system nulls on restart - by Toroi - 21.03.2017, 14:40
Re: Vehicle system nulls on restart - by DevHarden - 21.03.2017, 14:55
Re: Vehicle system nulls on restart - by Bolex_ - 21.03.2017, 15:02
Re: Vehicle system nulls on restart - by DevHarden - 21.03.2017, 15:25
Re: Vehicle system nulls on restart - by Toroi - 21.03.2017, 15:27
Re: Vehicle system nulls on restart - by DevHarden - 21.03.2017, 15:29

Forum Jump:


Users browsing this thread: 4 Guest(s)