02.11.2014, 21:50
Qual й o problema com essa (desculpe a palavra) merda?
pawn Код:
public LoadModsForAll(vehicleid)
{
new formatLD[256];
format(formatLD,sizeof(formatLD),"/Carros/carro%d.ini",vehicleid);
if(dini_Exists(formatLD))
{
carro[vehicleid][mod1] = dini_Int(formatLD, "mod1");
carro[vehicleid][mod2] = dini_Int(formatLD, "mod2");
carro[vehicleid][mod3] = dini_Int(formatLD, "mod3");
carro[vehicleid][mod4] = dini_Int(formatLD, "mod4");
carro[vehicleid][mod5] = dini_Int(formatLD, "mod5");
carro[vehicleid][mod6] = dini_Int(formatLD, "mod6");
carro[vehicleid][mod7] = dini_Int(formatLD, "mod7");
carro[vehicleid][mod8] = dini_Int(formatLD, "mod8");
carro[vehicleid][mod9] = dini_Int(formatLD, "mod9");
carro[vehicleid][mod10] = dini_Int(formatLD, "mod10");
carro[vehicleid][mod11] = dini_Int(formatLD, "mod11");
carro[vehicleid][mod12] = dini_Int(formatLD, "mod12");
carro[vehicleid][mod13] = dini_Int(formatLD, "mod13");
carro[vehicleid][mod14] = dini_Int(formatLD, "mod14");
carro[vehicleid][paintjob] = dini_Int(formatLD, "paintjob");
carro[vehicleid][colorA] = dini_Int(formatLD, "color1");
carro[vehicleid][colorB] = dini_Int(formatLD, "color2");
}
return true;
}