error 052: multi-dimensional arrays must be fully initialized

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
  • Hey,
    ich habe diesen doffen Error :pinch:
    Felix.pwn(77) : error 052: multi-dimensional arrays must be fully initialized


    Hier der Code:


    new Autoschein_Checkpoints[70][e_Autoschein] = {
    {1224.0995,-1723.6080,13.3783, 5.0},
    {1264.3315,-1714.7965,13.2015, 5.0},
    {1292.1256,-1717.4576,13.2005, 5.0},
    {1295.2122,-1784.0356,13.2015, 5.0},
    {1299.9169,-1828.9512,13.2016, 5.0},
    {1316.1694,-1854.9110,13.2021, 5.0},
    {1360.2355,-1870.5231,13.2016, 5.0},
    {1391.7363,-1855.9540,13.1995, 5.0},
    {1391.7952,-1794.1774,13.2016, 5.0},
    {1391.4045,-1747.7776,13.2015, 5.0},
    {1423.9390,-1734.8301,13.2011, 5.0},
    {1462.6326,-1734.4598,13.2015, 5.0},
    {1521.1196,-1734.8503,13.2015, 5.0},
    {1589.0848,-1735.0978,13.2015, 5.0},
    {1707.0221,-1735.1870,13.1954, 5.0},
    {1812.1865,-1735.0768,13.2028, 5.0},
    {1824.2877,-1685.9050,13.2016, 5.0},
    {1824.4231,-1594.4014,13.1760, 5.0},
    {1845.8900,-1555.5001,13.1516, 5.0},
    {1909.0603,-1523.7371,3.0426, 5.0},
    {1997.3373,-1518.3497,3.2143, 5.0},
    {2203.5037,-1575.5431,1.9908, 5.0},
    {2371.3428,-1622.7546,8.2355, 5.0},
    {2486.3733,-1621.2240,16.2725, 5.0},
    {2557.4814,-1621.4124,18.1392, 5.0},
    {2687.8723,-1626.8490,14.6095, 5.0},
    {2720.2480,-1641.4592,12.7771, 5.0},
    {2667.6147,-1655.0603,10.5130, 5.0},
    {2640.1433,-1689.4843,10.5524, 5.0},
    {2617.8232,-1728.4006,11.4645, 5.0},
    {2509.0862,-1730.2357,13.2015, 5.0},
    {2402.7004,-1729.6598,13.2105, 5.0},
    {2353.7307,-1729.3462,13.2016, 5.0},
    {2220.2180,-1710.1880,13.2332, 5.0},
    {2204.5925,-1623.6284,15.9171, 5.0},
    {2213.8584,-1408.1057,23.6453, 5.0},
    {2099.8787,-1382.2291,23.6472, 5.0},
    {2073.4839,-1188.3220,23.4746, 5.0},
    {1933.9102,-1134.8809,24.9815, 5.0},
    {1863.9489,-1164.7848,23.4883, 5.0},
    {1670.1603,-1158.9175,23.4748, 5.0},
    {1370.7549,-1138.8022,23.4705, 5.0},
    {1310.3424,-1141.2019,23.4751, 5.0},
    {1236.0497,-1141.7054,23.3771, 5.0},
    {1177.9259,-1141.5649,23.4976, 5.0},
    {1107.7113,-1141.5142,23.4751, 5.0},
    {989.8795,-1141.2837,23.7042, 5.0},
    {939.5322,-1169.3381,21.4041, 5.0},
    {938.9604,-1312.6456,13.2023, 5.0},
    {978.3796,-1328.5612,13.1928, 5.0},
    {1049.0702,-1333.1193,13.2039, 5.0},
    {1056.1733,-1369.2217,13.2015, 5.0},
    {1060.2046,-1426.4500,13.1872, 5.0},
    {1040.4641,-1521.3274,13.1934, 5.0},
    {1035.0269,-1637.9032,13.2014, 5.0},
    {1035.2085,-1693.0558,13.2017, 5.0},
    {1096.7278,-1714.9509,13.2015, 5.0},
    {1167.4116,-1714.2544,13.5244, 5.0},
    {1200.3242,-1715.5459,13.2016, 5.0},
    {1210.1814,-1718.1713,13.3336, 5.0}
    };//ERROR



    Ich habe schon manche anderen Beiträge darüber gelesen,nur ohne erfolg :(


    Ich Hoffe ihr könnt helfen ^^


    Lg

    New Nexo Reallife.


    <3

  • 60 ist aber falsch ^^
    Eigentlich sind es 69 aber da heult das script.
    Bei 60=

    Felix.pwn(1304) : error 032: array index out of bounds (variable "Autoschein_Checkpoints")
    Felix.pwn(1310) : error 032: array index out of bounds (variable "Autoschein_Checkpoints")
    Felix.pwn(1316) : error 032: array index out of bounds (variable "Autoschein_Checkpoints")
    Felix.pwn(1322) : error 032: array index out of bounds (variable "Autoschein_Checkpoints")
    Felix.pwn(1328) : error 032: array index out of bounds (variable "Autoschein_Checkpoints")
    Felix.pwn(1334) : error 032: array index out of bounds (variable "Autoschein_Checkpoints")
    Felix.pwn(1340) : error 032: array index out of bounds (variable "Autoschein_Checkpoints")
    Felix.pwn(1346) : error 032: array index out of bounds (variable "Autoschein_Checkpoints")
    Felix.pwn(1352) : error 032: array index out of bounds (variable "Autoschein_Checkpoints")
    Felix.pwn(1358) : error 032: array index out of bounds (variable "Autoschein_Checkpoints")


    Bei 69:

    Felix.pwn(77) : error 052: multi-dimensional arrays must be fully initialized
    Felix.pwn(1358) : error 032: array index out of bounds (variable "Autoschein_Checkpoints")


    Bei 70:

    Felix.pwn(77) : error 052: multi-dimensional arrays must be fully initialized

    New Nexo Reallife.


    <3

  • enum e_Autoschein {
    Float:A_fX,
    Float:A_fY,
    Float:A_fZ,
    Float:A_fRad
    }


    new Autoschein_Checkpoints[60][e_Autoschein] = {
    {1224.0995,-1723.6080,13.3783, 5.0},
    {1264.3315,-1714.7965,13.2015, 5.0},
    {1292.1256,-1717.4576,13.2005, 5.0},
    {1295.2122,-1784.0356,13.2015, 5.0},
    {1299.9169,-1828.9512,13.2016, 5.0},
    {1316.1694,-1854.9110,13.2021, 5.0},
    {1360.2355,-1870.5231,13.2016, 5.0},
    {1391.7363,-1855.9540,13.1995, 5.0},
    {1391.7952,-1794.1774,13.2016, 5.0},
    {1391.4045,-1747.7776,13.2015, 5.0},
    {1423.9390,-1734.8301,13.2011, 5.0},
    {1462.6326,-1734.4598,13.2015, 5.0},
    {1521.1196,-1734.8503,13.2015, 5.0},
    {1589.0848,-1735.0978,13.2015, 5.0},
    {1707.0221,-1735.1870,13.1954, 5.0},
    {1812.1865,-1735.0768,13.2028, 5.0},
    {1824.2877,-1685.9050,13.2016, 5.0},
    {1824.4231,-1594.4014,13.1760, 5.0},
    {1845.8900,-1555.5001,13.1516, 5.0},
    {1909.0603,-1523.7371,3.0426, 5.0},
    {1997.3373,-1518.3497,3.2143, 5.0},
    {2203.5037,-1575.5431,1.9908, 5.0},
    {2371.3428,-1622.7546,8.2355, 5.0},
    {2486.3733,-1621.2240,16.2725, 5.0},
    {2557.4814,-1621.4124,18.1392, 5.0},
    {2687.8723,-1626.8490,14.6095, 5.0},
    {2720.2480,-1641.4592,12.7771, 5.0},
    {2667.6147,-1655.0603,10.5130, 5.0},
    {2640.1433,-1689.4843,10.5524, 5.0},
    {2617.8232,-1728.4006,11.4645, 5.0},
    {2509.0862,-1730.2357,13.2015, 5.0},
    {2402.7004,-1729.6598,13.2105, 5.0},
    {2353.7307,-1729.3462,13.2016, 5.0},
    {2220.2180,-1710.1880,13.2332, 5.0},
    {2204.5925,-1623.6284,15.9171, 5.0},
    {2213.8584,-1408.1057,23.6453, 5.0},
    {2099.8787,-1382.2291,23.6472, 5.0},
    {2073.4839,-1188.3220,23.4746, 5.0},
    {1933.9102,-1134.8809,24.9815, 5.0},
    {1863.9489,-1164.7848,23.4883, 5.0},
    {1670.1603,-1158.9175,23.4748, 5.0},
    {1370.7549,-1138.8022,23.4705, 5.0},
    {1310.3424,-1141.2019,23.4751, 5.0},
    {1236.0497,-1141.7054,23.3771, 5.0},
    {1177.9259,-1141.5649,23.4976, 5.0},
    {1107.7113,-1141.5142,23.4751, 5.0},
    {989.8795,-1141.2837,23.7042, 5.0},
    {939.5322,-1169.3381,21.4041, 5.0},
    {938.9604,-1312.6456,13.2023, 5.0},
    {978.3796,-1328.5612,13.1928, 5.0},
    {1049.0702,-1333.1193,13.2039, 5.0},
    {1056.1733,-1369.2217,13.2015, 5.0},
    {1060.2046,-1426.4500,13.1872, 5.0},
    {1040.4641,-1521.3274,13.1934, 5.0},
    {1035.0269,-1637.9032,13.2014, 5.0},
    {1035.2085,-1693.0558,13.2017, 5.0},
    {1096.7278,-1714.9509,13.2015, 5.0},
    {1167.4116,-1714.2544,13.5244, 5.0},
    {1200.3242,-1715.5459,13.2016, 5.0},
    {1210.1814,-1718.1713,13.3336, 5.0}
    };


    public OnFilterScriptInit()
    {
    printf("%f", Autoschein_Checkpoints[0][A_fX]);
    return 1;
    }


    Kompiliert bei mir, genau so.