Problem mit Bizz und SBizz

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
  • Hallo,


    ich habe mal wieder eine Frage.


    Ich frage mich warum etwas bei meinen Bizz falsch angezeigt wird...



    Function LoadBizz()
    {
    new arrCoords[19][64];
    new strFromFile2[256];
    new File: file = fopen("bizz.cfg", 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]);
    printf("BizzInfo:%d Owner:%s Message:%s Entfee:%d Till:%d Products:%d/%d Interior:%d.\n",
    //LOGSPAMM
    idx,
    BizzInfo[idx][bOwner],
    BizzInfo[idx][bMessage],
    BizzInfo[idx][bEntranceCost],
    BizzInfo[idx][bTill],
    BizzInfo[idx][bProducts],
    BizzInfo[idx][bMaxProducts],
    BizzInfo[idx][bInterior]);
    idx++;
    }
    fclose(file);
    }
    return 1;
    }





    new BizzInfo[5][bInfo];





    Die Bizz.cfg



    1|Der Staat|Hauptammunation|No-one|1368.510|-1279.923|13.633|285.799|-40.141|1001.515625|1|1|150|79750|0|1|10007421|500|1 //BIZ 0
    1|Der Staat|Ammunation nähe Stadthalle|No-one|-2288.067626|-79.334396|35.320301|314.820983|-141.431991|999.601562|5|50000|2|2908|0|7|409|500|50 //BIZ 1
    1|MarceldasToast|Burger Shot Süd|No-one|1291.365|-1870.511|13.546895|365.962463|-73.816848|1001.507812|5|50000|500|3350|1|10|320|500|1 //BIZ 2
    0|Der Staat|Autovermietung|No-one|2177.594238|961.249023|10.820300|316.524993|-167.706985|999.593750|3|5000000|50|1450|1|6|487|500|100 //BIZ 3
    0|The State|24/7|No-one|2850.950927|-1532.533447|11.099100|286.800994|-82.547599|1001.515625|1|50000|500|0|1|4|99654|100000|1




    So klappt alles aber wenn ich welche hinzufügen möchte dann ist beim lezten biz also wenn ich z.b. noch



    0|The State|Flugzeugverleih|No-one|2850.950927|-18962.533447|11.099100|100.800994|-82.547599|1001.515625|1|50000|500|0|1|4|99654|100000|1

    hinzufüge und die zahl bei newBizInfo um 1 erhöhe dann wird beim lezten biz bzw 24/7 nicht nur bei /bizinfo die zahl 5 sondern auch 6 angezeigt und das textlabel von biz 6 also der flugzeugvermietung buggt rum...


    Danke schonmal im vorraus!