20.03.2017, 12:41
Hello!
Try this, please.
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);