Code
for(new i = 0; i<100; i++)
{
if(Inventar[playerid][pCannabis][i] > 0.00){format(string,sizeof(string),"Cannabis %f %d%:",Inventar[playerid][pCannabis][i],i);dini_FloatSet(file,string,Inventar[playerid][pCannabis][i]);}
if(Inventar[playerid][pCrystalMeth][i] > 0.00){format(string,sizeof(string),"Crystal %f %d%:",Inventar[playerid][pCannabis][i],i);dini_FloatSet(file,string,Inventar[playerid][pCrystalMeth][i]);}
if(Inventar[playerid][pHeroin][i] > 0.00){format(string,sizeof(string),"Heroin %f %d%:",Inventar[playerid][pCannabis][i],i);dini_FloatSet(file,string,Inventar[playerid][pHeroin][i]);}
if(Inventar[playerid][pCocaine][i] > 0.00){format(string,sizeof(string),"Kokain %f %d%",Inventar[playerid][pCannabis][i],i);dini_FloatSet(file,string,Inventar[playerid][pCocaine][i]);}
}
Geht das auch schneller
Edit: Eine AQbfrage vergessen sorry