Fehler ->> Multidimensionales Array

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
  • Ich finde einfach den Fehler nicht. Der Error ist:


    (123) : error 052: multi-dimensional arrays must be fully initialized



    #define PICKUPS 200


    public OnGameModeInit()
    {
    //mysql_log(LOG_ALL);


    SetGameModeText("LP-GTA_SAMP");
    MySQL_SetupConnection();
    OnMissionLoad();
    print("Missionen wurden geladen");


    for(new i=0; i<PICKUPS; i++)
    {
    CreatePickup(eingang[i][enterpickupid], 1, eingang[i][ex], eingang[i][ey], eingang[i][ez], eingang[i][vworld]);
    Create3DTextLabel(eingang[i][c3dtext],LABEL_COLOR,eingang[i][ex],eingang[i][ey],eingang[i][ez],enterDistanz,eingang[i][vworld]);
    }
    return 1;
    }


    //---------ENTER/EXIT-SYSTEM------------->
    enum pickInfo
    {
    enterpickupid,
    Float:ex,
    Float:ey,
    Float:ez,
    vworld,
    c3dtext[70]
    }
    //Eingang - Pickups
    new eingang[PICKUPS][pickInfo] = {


    /* enterpickupid, floatxyz*/ /*VWElT, INT , Labeltext*/
    {1252,2158.4805,943.2201,10.8203,0,"Ammunation\nLas Venturas, The Strip"}, // ammunationlvtankeeinfahrt
    {1252,2557.0579,2064.3557,11.0995,0,"Ammunation\nLas Venturas, Linden Side"}, // ammunationlvlindenside
    {1252,-1509.0281,2609.6567,55.8359,0,"Ammunation\nTierra Robada, El Quebrados"}, // elquebradoslittleammunation
    {1252,-2626.6738,209.4705,4.5955,0,"Ammunation\nSan Fierro, Queens"}, // ammunationrgnsamenpunkt
    {1252,-2092.9502,-2464.1506,30.6250,0,"Ammunation\nWhetstone, Angelpine"}, // ammunationanglepine
    {1252,1367.7456,-1279.7279,13.5469, 0,"Ammunation\nLos Santos, Market"}, // hauptammu
    {1252,2400.6392,-1981.2506,13.5469, 0,"Ammunation\nLos Santos, Willowfield"}, // ammunationatzenammu
    {1252,512.8488,-1511.1582,14.5678, 1,"Ammunation\nLos Santos, Rodeo"}, // ammunationnähetresor
    {1252,241.8159,-178.4459,1.5781,1,"Ammunation\nLas Venturas, El Quebrados"}, // blueberryammunation
    {1252,1199.3728,-919.6257,43.1112,0,"Burger Shot Nord\nLos Santos, Mullholland"}, // bsnlossantos
    {1240,1038.0056,-1339.4806,13.7266, 0,"Donut-Shop\nLos Santos, Mullholland"}, // donutladenrgn
    {1240,927.6630,-1352.7496,13.3438, 0,"Cluck In Bell\nLos Santos, Market - Station"}, // cluckinbellls
    {1240,2104.8667,-1806.4883,13.5547, 0,"The Well Stacked Pizza\nLos Santos, Idlewood"}, // thewellstackedpizzaidlewoodls
    {1240,-2154.7324,-2460.4585,30.8516, 0,"Cluck In Bell\nAngelpine"}, // anglepinecluckinbell
    {1240,-1911.8153,828.4231,35.1748, 0,"Burger Shot Nord\nSan Fierro, Financial"}, // burgershotfinancialsf
    {1240,-2356.4839,1008.1956,50.8984, 0,"Burger Shot Nord\nSan Fierro, Juniper Hollow"}, // burgershotsfjuniperhollow
    {1240,-2767.2810,788.8793,52.7813, 0,"Donut-Shop\nSan Fierro, Palisades"}, // donutladensfpalisades
    {1240,-2672.1760,259.4420,4.6328, 0,"Cluck In Bell\nSan Fierro, City Hall"}, // cluckinbellcityhall
    {1240,-2335.1638,-167.5720,35.5547, 0,"Burger Shot South\nSan Fierro, Garcia"}, // bssgarciasf
    {1240,172.6064,1176.4257,14.7645,0,"Cluck In Bell\nTierra Robada, Fort Carson"}, // fortcarsoncluckinbell
    {1240,-144.0259,1223.4386,19.8992,0,"Donut-Shop\nTierra Robada, Fort Carson"}, // donutladenfortcarson
    {1240,-1213.2289,1830.8306,41.9297,0,"Cluck In Bell\nTierra Robada, Las Barrancas"}, // cluckinbellnachlasbarrancas
    {1240,1158.7992,2072.2183,11.0625,0,"Burger Shot Nord\nLas Venturas, West-Side"}, // bsnlvwest
    {1240,1873.6160,2071.4924,11.0625,0,"Burger Shot\nLas Venturas, Middle"}, // burgershotmittelv
    {1240,2392.3687,2042.7657,10.8203,0,"Cluck In Bell\nLas Venturas, East-Side"}, // cluckinbellostenlv
    {1240,2472.0437,2034.3879,11.0625, 0,"Burger Shot\nLas Venturas, East-Side"}, // burgershotnebencluckinbelllvost
    {1240,1367.0405,248.5923,19.5669,0,"Cluck In Bell\nRed County, Montgomery"}, // cluckinbellmontgomery
    {1240,203.2651,-202.9149,1.5781,0,"The Well Stacked Pizza\nRed County, Blueberry"}, // pizzablueberry
    {1247,627.7783,-571.8004,17.5446,0,"Police Department\nLos Santos, Dillimore"}, // dillimorepd - Interior Name: Barbara Room
    {1314,1939.2828,-1115.5748,27.4523,0,"Rolling Heigh Ballas\nLos Santos, Glenpark"}, // ballasspawnglenpark, B Dup's house
    {1314,2495.4912,-1690.4358,14.7656,0,"Grove Street Family\nLos Santos, Ganton"}, // grovespawn, B Dup's crack pad
    {1314,1553.9319,-1675.6193,16.1953,0,"SAPD\nLos Santos, Commerce/Pershing Square"}, // lspdspawn
    {1314,-525.2632,-505.6433,25.5234,0,"Wheelman\nFlint County, Fallen Tree"}, // wheelmanspawn - Liberty City inside
    {1314,-2721.0037,-317.4959,7.8438,0,"Triaden Family\nSan Fierro, Avispa Country Club"}, // triadenspawnavispacountryclub - unused safe house
    {1314,-1551.5620,1168.5499,7.1875,0,"Yakuza Family\nSan Fierro, Esplanade North"}, // yakuzaottosahrgnspawn - Tiger skin brothel
    {1314,1066.0397,1002.4430,11.0000,0,"Irish Crime Family\nLas Ventury, Greenglass College"}, // icfspawngreenglasscollege - Cj's house
    {1314,2169.7288,1679.4567,10.8203,0,"Las Venturas Vagos\nLas Venturas, The Strip"}, // vagosspawn - crack den
    {1313,2814.6797,972.0084,10.7500, 0,"Hitman\nLas Venturas, Linden Side"} // hitmanspawnlindenside - Colonel Furhberger's
    }; //Das hier ist die Errorzeile 123


    new Float:enterDistanz = 3.0, Float:showDistanz = 10.0;


    Vielen Dank schonmal im Voraus.

  • Die Lösung ist richtig... meine Güte, vielen Dank Jeffry, aber eine Frage hätte ich noch:


    Kann ich dann immernoch das hier so benutzen, wenn das [PICKUPS] weg ist und da nur noch [] steht?:



    public OnGameModeInit()
    {


    //Was soll ich dann hier statt Pickups eintragen?
    for(new i=0; i<PICKUPS; i++)
    {
    CreatePickup(eingang[i][enterpickupid], 1, eingang[i][ex], eingang[i][ey], eingang[i][ez], eingang[i][vworld]);
    Create3DTextLabel(eingang[i][c3dtext],LABEL_COLOR,eingang[i][ex],eingang[i][ey],eingang[i][ez],enterDistanz,eingang[i][vworld]);
    }
    return 1;
    }