stock UpdateBizzLabel(h)
{
new string[248];
if(BizzInfo[h][bOwned] == 1)
{
format(string, sizeof(string), "{FFFFFF}Business:{F7F700}%s.\n{FFFFFF}Inhaber: {F7F700}%s.",BizzInfo[h][bMessage],BizzInfo[h][bOwner]);
DestroyDynamic3DTextLabel(BizzInfo[h][blabel]);
BizzInfo[h][blabel] = CreateDynamic3DTextLabel(string,COLOR_WHITE,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]+0.5,15.0,0,0);
}
else
{
format(string, sizeof(string), "{FFFFFF}Das Business {F7F700}%s{FFFFFF} steht zum Verkauf:\n{FFFFFF}Preis: {F7F700}%d{4EF700}€.{F7F700}\n\n/buybusiness{FFFFFF} um es zu kaufen!",BizzInfo[h][bMessage],BizzInfo[h][bBuyPrice]);
DestroyDynamic3DTextLabel(BizzInfo[h][blabel]);
BizzInfo[h][blabel] = CreateDynamic3DTextLabel(string,COLOR_WHITE,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]+0.5,15.0);
}
return 1;
}
forward SaveBizz();
public SaveBizz()
{
new idx;
new File: file2;
while (idx < sizeof(BizzInfo))
{
new coordsstring[256];
format(coordsstring, sizeof(coordsstring), "%d|%s|%s|%s|%f|%f|%f|%f|%f|%f|%d|%d|%d|%d|%d|%d|%d|%d|%d\n",
BizzInfo[idx][bOwned],
BizzInfo[idx][bOwner],
BizzInfo[idx][bMessage],
BizzInfo[idx][bExtortion],
BizzInfo[idx][bEntranceX],
BizzInfo[idx][bEntranceY],
BizzInfo[idx][bEntranceZ],
BizzInfo[idx][bExitX],
BizzInfo[idx][bExitY],
BizzInfo[idx][bExitZ],
BizzInfo[idx][bLevelNeeded],
BizzInfo[idx][bBuyPrice],
BizzInfo[idx][bEntranceCost],
BizzInfo[idx][bTill],
BizzInfo[idx][bLocked],
BizzInfo[idx][bInterior],
BizzInfo[idx][bProducts],
BizzInfo[idx][bMaxProducts],
BizzInfo[idx][bPriceProd]);
if(idx == 0)
{
file2 = fopen("Sonstiges/Business.txt", io_write);
}
else
{
file2 = fopen("Sonstiges/Business.txt", io_append);
}
UpdateBizzLabel(idx);
fwrite(file2, coordsstring);
idx++;
fclose(file2);
}
}
forward LoadBizz();
public LoadBizz()
{
new arrCoords[19][64];
new strFromFile2[256];
new File: file = fopen("Sonstiges/Business.txt", io_read);
if (file)
{
new idx;
while (idx < sizeof(BizzInfo))
{
fread(file, strFromFile2);
split(strFromFile2, arrCoords, '|');
BizzInfo[idx][bOwned] = strval(arrCoords[0]);
strmid(BizzInfo[idx][bOwner], arrCoords[1], 0, strlen(arrCoords[1]), 255);
strmid(BizzInfo[idx][bMessage], arrCoords[2], 0, strlen(arrCoords[2]), 255);
strmid(BizzInfo[idx][bExtortion], arrCoords[3], 0, strlen(arrCoords[3]), 255);
BizzInfo[idx][bEntranceX] = floatstr(arrCoords[4]);
BizzInfo[idx][bEntranceY] = floatstr(arrCoords[5]);
BizzInfo[idx][bEntranceZ] = floatstr(arrCoords[6]);
BizzInfo[idx][bExitX] = floatstr(arrCoords[7]);
BizzInfo[idx][bExitY] = floatstr(arrCoords[8]);
BizzInfo[idx][bExitZ] = floatstr(arrCoords[9]);
BizzInfo[idx][bLevelNeeded] = strval(arrCoords[10]);
BizzInfo[idx][bBuyPrice] = strval(arrCoords[11]);
BizzInfo[idx][bEntranceCost] = strval(arrCoords[12]);
BizzInfo[idx][bTill] = strval(arrCoords[13]);
BizzInfo[idx][bLocked] = strval(arrCoords[14]);
BizzInfo[idx][bInterior] = strval(arrCoords[15]);
BizzInfo[idx][bProducts] = strval(arrCoords[16]);
BizzInfo[idx][bMaxProducts] = strval(arrCoords[17]);
BizzInfo[idx][bPriceProd] = strval(arrCoords[18]);
UpdateBizzLabel(idx);
idx++;
}
fclose(file);
}
return 1;
}
So 
Eig geht alles über die .txt datei