kann mir das jemand erklären ^^?

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • Guten Tag,


    ich verstehe dieses Speichersystem nicht ganz ^^, was ist arrcords?multidimesionaler array mit spalten und zeilen?
    Bitte erklärt mir das, wäre euch richtig dankbar.



    public LoadSBizz()
    {
    new arrCoords[16][64];
    new strFromFile2[256];
    new File: file = fopen("sbizz.cfg", io_read);
    if (file)
    {
    new idx;
    while (idx < sizeof(SBizzInfo))
    {
    fread(file, strFromFile2);
    split(strFromFile2, arrCoords, '|');
    SBizzInfo[idx][sbOwned] = strval(arrCoords[0]);
    strmid(SBizzInfo[idx][sbOwner], arrCoords[1], 0, strlen(arrCoords[1]), 255);
    strmid(SBizzInfo[idx][sbMessage], arrCoords[2], 0, strlen(arrCoords[2]), 255);
    strmid(SBizzInfo[idx][sbExtortion], arrCoords[3], 0, strlen(arrCoords[3]), 255);
    SBizzInfo[idx][sbEntranceX] = floatstr(arrCoords[4]);
    SBizzInfo[idx][sbEntranceY] = floatstr(arrCoords[5]);
    SBizzInfo[idx][sbEntranceZ] = floatstr(arrCoords[6]);
    SBizzInfo[idx][sbLevelNeeded] = strval(arrCoords[7]);
    SBizzInfo[idx][sbBuyPrice] = strval(arrCoords[8]);
    SBizzInfo[idx][sbEntranceCost] = strval(arrCoords[9]);
    SBizzInfo[idx][sbTill] = strval(arrCoords[10]);
    SBizzInfo[idx][sbLocked] = strval(arrCoords[11]);
    SBizzInfo[idx][sbInterior] = strval(arrCoords[12]);
    SBizzInfo[idx][sbProducts] = strval(arrCoords[13]);
    SBizzInfo[idx][sbMaxProducts] = strval(arrCoords[14]);
    SBizzInfo[idx][sbPriceProd] = strval(arrCoords[15]);
    /*printf("SBizzInfo:%d Owner:%s Message:%s Entfee:%d Till:%d Products:%d/%d Interior:%d.\n",
    idx,
    SBizzInfo[idx][sbOwner],
    SBizzInfo[idx][sbMessage],
    SBizzInfo[idx][sbEntranceCost],
    SBizzInfo[idx][sbTill],
    SBizzInfo[idx][sbProducts],
    SBizzInfo[idx][sbMaxProducts],
    SBizzInfo[idx][sbInterior]);*/
    idx++;
    }
    fclose(file);
    }
    return 1;
    }

    und was ist der Unterschied zwischen SBIZZ und BIZZ ? ^^


    DANKE :love: :love:


    MFG