31.08.2014, 04:27
Buenas, hice un sistema para crear vehнculos IG pero resulta que no carga los coches, los coches se guardan correctamente en la carpeta Autos, estбn numerados, 1 2 3 4 5.
Ahora la cosa es que no los carga, los coches no aparecen:
Ahora la cosa es que no los carga, los coches no aparecen:
pawn Код:
stock CargarAutos()
{
new BArch[22],i;
print("Cargando autos...\n");
while(i < MAX_CARS)
{
format(BArch,sizeof(BArch),"Autos/%d.ini",i);
if(fexist(BArch))
{
INI_ParseFile(BArch,"CargarAuto_%s",.bExtra = true, .extra = i);
printf("Coche modelo: %i",InformacionA[i][aModelo]);
Iter_Add(aAutos, i);
CreateVehicle(InformacionA[i][aModelo], InformacionA[i][aPosX], InformacionA[i][aPosY], InformacionA[i][aPosZ], InformacionA[i][aRotacion], InformacionA[i][aColor1], InformacionA[i][aColor2], InformacionA[i][aRespawn]);
}
i++;
}
return 1;
}