Teste mal das hier
Ich hab es mal etwas kürzer und übersichtlicher geschrieben^^
LadeGangCars()
{
new path[60],count = 0;
for(new c=0;c<24;c++)
{
if((c==5) || (c==6) || (c==8) || (c==11) || (c==12) || (c==13) || (c==14) || (c==15) || (c==16) || (c==17) || (c==18) || (c==19) || (c==20) || (c==21) || (c==23))//jenachdem Anpassen
{
for(new i=0;i<MAX_GANG_CARS;i++)
{
format(path, sizeof path, "/GangCars/%d/%d.ini",c,i);
if(!fexist(path))continue;
if(INI_Open(path))
{
gcInfo[code=c][i][gcID] = INI_ReadInt("ID");
gcInfo[code=c][i][gcID] = INI_ReadInt("Model");
gcInfo[code=c][i][gcID] = INI_ReadInt("Gang");
gcInfo[code=c][i][gcX] = INI_ReadFloat("pX");
gcInfo[code=c][i][gcY] = INI_ReadFloat("pY");
gcInfo[code=c][i][gcZ] = INI_ReadFloat("pZ");
gcInfo[code=c][i][gcA] = INI_ReadFloat("Angle");
INI_Close();
gcInfo[code=c][i][gcCarID] = AddStaticVehicle(gcInfo[code=c][i][gcModel],gcInfo[code=c][i][gcX],gcInfo[code=c][i][gcY],gcInfo[code=c][i][gcZ],gcInfo[code=c][i][gcA],GetFrakCarColor(gcInfo[code=c][i][gcGang]),GetFrakCarColor(gcInfo[code=c][i][gcGang]));
count++;
}
}
}
}
return printf("%d Fraktionsautos wurden geladen",count);
}