hier noch ein Beispiel. !
if(SaveServerMySQL == 0)
{
for(new t = 0; t < MAX_TEAMIDS; t++)
{
new coordsstring[256];
new tstr[128];
format(coordsstring, sizeof(coordsstring), "%d|%d|%d|%d|%d|%d|%d|%d",
KassenInfo[t][tKasse],
KassenInfo[t][tLohn],
KassenInfo[t][tBankrobs],
KassenInfo[t][tZinUpgradeTime],
KassenInfo[t][tCarsKlau],
KassenInfo[t][tCarVersicherungTime],
KassenInfo[t][tHackedWanteds],
KassenInfo[t][tRandomWantedUpgradeTime]);
format(tstr,sizeof tstr,"teamkassen/%d.ini",t);
new File: file2 = fopen(tstr, io_write);
fwrite(file2, coordsstring);
fclose(file2);
}
}
{
for(new t = 0; t < MAX_TEAMIDS; t++)
{
new coordsstring[256];
new tstr[128];
format(coordsstring, sizeof(coordsstring), "%d|%d|%d|%d|%d|%d|%d|%d",
KassenInfo[t][tKasse],
KassenInfo[t][tLohn],
KassenInfo[t][tBankrobs],
KassenInfo[t][tZinUpgradeTime],
KassenInfo[t][tCarsKlau],
KassenInfo[t][tCarVersicherungTime],
KassenInfo[t][tHackedWanteds],
KassenInfo[t][tRandomWantedUpgradeTime]);
format(tstr,sizeof tstr,"teamkassen/%d.ini",t);
new File: file2 = fopen(tstr, io_write);
fwrite(file2, coordsstring);
fclose(file2);
}
}
speichert er da im spiel dann ab sobald ich den server starte ?