Ja
public SaveHouse()
{
for(new i = 0; i < MAX_HOUSE; i++)
{
new string3[32];
format(string3, sizeof(string3), "/haeuser/%d.haus", i);
new File: hFile = fopen(string3, io_write);
if (hFile)
{
new var[32];
format(var, 32, "Float:x=%f\n",house[i][Float:housex]);fwrite(hFile, var);
format(var, 32, "Float:y=%f\n",house[i][Float:housey]);fwrite(hFile, var);
format(var, 32, "Float:z=%f\n",house[i][Float:housez]);fwrite(hFile, var);
format(var, 32, "Preis=%d\n",house[i][Preis]);fwrite(hFile, var);
format(var, 32, "Interior=%d\n",house[i][Interior]);fwrite(hFile, var);
format(var, 32, "Besitzer=%s\n",house[i][Besitzer]);fwrite(hFile, var);
fclose(hFile);
}
}
return 1;
}