Hey Com,
Wie schreibe ich nun den Besitzer in die Datei?
Soweit bin ich schon aber wie geht das halt das die Datei auch Buchstaben annit nicht nur Ziffern?
Function Haus1()
{
new arrCoords[1][64];
new strFromFile2[256];
new File: file = fopen("/Properties/Haus1.ini", io_read);
if (file)
{
fread(file, strFromFile2);
split(strFromFile2, arrCoords, ',');
Besitzer = strval(arrCoords[0]);
fclose(file);
if(Security == 0)
{
}
else
{
GameModeExit();
}
}
else
{
GameModeExit();
}
return 1;
}
Function Haus1()
{
new coordsstring[256];
format(coordsstring, sizeof(coordsstring), "%s", Besitzer,);
new File: file2 = fopen("/Properties/Haus1.ini", io_write);
fwrite(file2, coordsstring);
fclose(file2);
return 1;
}
Mfg Nico