Array Problem

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 habe ein kleines Problem mit meinem Mietsystem bzw mit einem Array.


    Und zwar habe ich folgendes erstellt:



    #define MAX_MIETPARKS 191


    enum MietParkplatzEnum
    {
    Float:MietParkplatzX,
    Float:MietParkplatzY,
    Float:MietParkplatzZ,
    Float:MietParkplatzA,
    }


    new MietParkplatzInfo[MAX_MIETPARKS][MietParkplatzEnum] = {
    {-1482.7448,1877.7104,32.3599,184.0866},
    {-1204.2784,1813.3794,41.4458,44.7097},
    {-1270.2595,2709.0103,49.7973,209.6686},
    {-1532.2371,2626.5818,55.5630,91.4732},
    {-1497.3141,2525.1541,55.4146,359.9403},
    {-852.2705,2741.6707,45.5588,183.0826},
    {-508.7914,2582.9473,53.1411,88.8550},
    {-219.7106,2595.2742,62.4302,0.3360},
    {706.5208,1945.6959,5.2661,179.8426},
    {654.5917,1717.5763,6.7229,41.0768},
    {286.1160,1396.5884,10.3130,2.9542},
    {171.6364,1182.7164,14.4849,146.8089},
    {19.6545,1165.2987,19.3051,359.1046},
    {-79.6192,1221.9551,19.4693,179.9687},
    {-255.3440,1220.8470,19.4693,179.8428},
    {-304.0616,1027.9995,19.3208,269.9930},
    {-164.3801,1012.2525,19.4693,90.2721},
    {-78.9477,1340.3024,10.7609,7.5824},
    {-288.6454,1326.5880,54.2277,81.8782},
    {-330.4537,1514.8115,75.0865,0.3734},
    {-899.1810,2007.5770,60.6411,130.4385},
    {-866.2556,1554.0577,23.5264,270.1282},
    {1362.0624,667.1849,10.5440,359.8678},
    {1941.9607,697.5344,10.5474,179.8896},
    {2321.2781,627.9868,10.4708,270.4286},
    {2619.2695,747.4494,10.5474,179.5808},
    {2811.2510,927.8469,10.4771,179.7007},
    {2805.3962,1332.5844,10.4847,270.1722},
    {2834.8403,2027.3843,10.5474,359.9941},
    {2821.9431,2244.4329,10.5474,89.5810},
    {2895.0674,2450.7944,10.5474,224.6210},
    {2814.4575,2309.9048,10.5474,0.2422},
    {2336.2891,2725.4771,10.5474,271.5169},
    {2142.3289,2795.7878,10.5474,270.3632},
    {1902.1685,2766.9648,10.4752,180.2069},
    {1490.3116,2742.1438,10.4708,275.6359},
    {1346.7362,2645.7869,10.5474,359.9393},
    {1046.3978,2306.0667,10.5474,178.4698},
    {1051.4567,1939.3881,10.5419,269.5435},
    {1118.4855,2106.4629,10.5437,270.5422},
    {984.0608,1733.2275,8.3787,90.7505},
    {1111.8972,1784.1312,10.5474,89.7477},
    {1036.8115,1420.2794,5.5474,359.4755},
    {981.0623,1156.3230,10.5474,269.7061},
    {1358.3342,1175.9758,10.5474,248.4348},
    {1487.9575,1005.8291,10.5474,91.6246},
    {1652.1097,988.2531,10.5474,178.8626},
    {1695.3279,1297.6143,10.5474,179.6775},
    {1613.7388,1850.3030,10.5474,179.7003},
    {1613.2487,2210.5400,10.5474,89.6043},
    {1298.4343,2078.6018,10.5474,270.6206},
    {1744.7305,2066.8665,10.5474,251.5714},
    {1907.0035,2082.5120,10.5474,90.7285},
    {1905.7383,2257.1055,10.5474,179.9444},
    {2009.0514,2414.8149,10.5474,90.1684},
    {2143.5288,2469.0259,10.5474,359.6718},
    {2509.3789,2512.7805,10.5474,270.8954},
    {2610.1736,2275.4358,10.5474,89.8612},
    {2413.8975,2266.2380,10.5474,270.0303},
    {2155.5996,2195.4849,10.3989,357.8855},
    {2102.7854,2046.5389,10.5474,89.2540},
    {2249.5110,2007.4688,10.5474,359.3941},
    {2444.6174,1991.3263,10.5474,359.5499},
    {2578.7236,1976.9175,10.5488,269.9109},
    {2603.1475,1786.1396,10.5474,270.4300},
    {2526.5818,1531.2920,10.4720,86.3483},
    {2389.7593,1629.0276,10.5474,359.6744},
    {2167.6121,1810.3961,10.5474,0.0656},
    {1949.7638,1761.6545,12.4415,359.3773},
    {2027.2701,1412.7455,10.5474,269.1447},
    {2302.4509,1404.9618,10.5505,270.1417},
    {2037.9225,1053.9111,10.4708,179.4270},
    {2394.1958,989.6807,10.5474,90.4012},
    {2542.8501,1106.3978,10.5474,87.6806},
    {2540.3760,1278.3215,10.5474,89.6566},
    {1036.5643,-2287.6292,12.6742,203.4538},
    {1365.0356,-2326.8496,13.2064,269.4253},
    {1556.1448,-2211.3818,13.2135,179.9725},
    {1941.3234,-2141.3252,13.2174,179.1367},
    {1981.0297,-1985.7341,13.2059,180.1180},
    {2233.7329,-2137.5891,13.0772,316.2271},
    {2715.4048,-2414.4932,13.2915,359.4145},
    {2471.7871,-2637.0557,13.3113,269.6941},
    {2210.9927,-2516.5369,13.2064,270.3445},
    {2863.0491,-2016.6093,10.6731,0.1539},
    {2784.9612,-1835.2751,9.4736,222.0563},
    {2676.7717,-1672.8484,9.0588,179.8603},
    {2822.1636,-1562.3540,10.5858,89.1402},
    {2935.1238,-1351.3087,10.4460,100.6765},
    {2911.1116,-804.0200,10.7071,89.6507},
    {2539.0139,71.1680,26.0661,1.2693},
    {2280.6296,-67.8111,26.1761,268.7059},
    {1391.0378,265.4007,19.2258,335.1682},
    {1228.3367,291.2468,19.2141,155.4846},
    {761.8023,355.4956,19.8944,125.0038},
    {328.7633,-54.3400,1.1659,89.3230},
    {177.6743,-242.3409,1.1605,178.7192},
    {115.3817,-151.6310,1.2370,178.1783},
    {-1.5582,-304.6251,5.0857,89.4764,35},
    {-93.1958,-1195.0361,1.9450,344.7091},
    {337.5765,-1789.1187,4.5766,179.7134},
    {686.3718,-1571.8367,13.9005,179.0779},
    {341.3129,-1525.8838,32.9723,144.7944},
    {416.0786,-1329.2236,14.5049,123.7417},
    {607.7461,-1237.9475,18.0079,106.0349},
    {829.6063,-1332.4989,13.1260,270.8036},
    {1015.5591,-1358.9841,13.0317,92.0932},
    {900.2640,-1533.6884,13.2056,357.7566},
    {892.6863,-1668.9701,13.2097,359.9333},
    {1098.3976,-1754.8705,13.0124,89.8538},
    {1271.5660,-1810.2789,13.0476,221.9756},
    {1403.8228,-1776.1300,13.2066,89.6547},
    {1659.6119,-1716.3499,15.2679,359.0313},
    {1773.7180,-1860.1808,13.1522,269.7315}
    {2054.9893,-1939.9485,12.9956,269.0614},
    {2121.9248,-1782.4497,13.0473,359.6648},
    {2297.5161,-1639.5916,14.3971,271.8426},
    {2492.3948,-1953.4608,13.0833,359.7016},
    {2717.8064,-1343.1089,45.8038,179.7634},
    {2427.2053,-1242.8049,23.8422,1.5201},
    {2391.2212,-1494.0676,23.4931,270.5081},
    {2127.4661,-1405.4838,23.5689,0.4855},
    {2161.2808,-1187.4521,23.4800,91.0906},
    {1680.7964,-1044.2052,23.5606,180.8545},
    {1602.5396,-1274.1079,17.1216,268.3208},
    {1643.0846,-1459.7339,13.1090,271.4879},
    {1833.1793,-1402.7203,13.0007,269.4548},
    {1420.2051,-1314.3926,13.2818,179.4381},
    {1325.9510,-857.8970,39.3052,174.4888},
    {1295.1398,-985.3623,32.4224,89.2859},
    {980.6617,-918.2440,41.3386,180.1792},
    {1198.1304,-1209.9246,18.7804,270.2900},
    {764.5983,-1031.8827,23.7308,176.9373},
    {1803.4689,-1691.9744,13.2593,88.9642},
    {-74.1627,-1604.0651,2.6526,305.1263},
    {-258.9869,-2181.1428,28.7467,23.7916},
    {-19.5811,-2522.6855,36.3790,29.8197},
    {-1571.6956,-2732.2529,48.2702,145.8475},
    {-2114.3352,-2494.3833,30.3521,229.4760},
    {-2196.5732,-2264.3740,30.3551,142.6461},
    {-1418.8455,-1507.3978,101.4056,270.6951},
    {-1065.1414,-1216.6752,128.9458,269.0976},
    {-1099.7075,-1630.6143,76.0976,270.6092},
    {-595.2162,-1088.3621,23.3960,238.0912},
    {-494.3364,-472.0931,25.2505,178.6207},
    {-903.4311,-490.6723,25.7214,353.1157},
    {-1394.6296,-333.3159,13.7955,24.0488},
    {-1897.6224,-853.1467,31.7505,90.1986},
    {-2116.3223,-387.5941,35.0630,51.7582},
    {-2414.1340,-587.5997,132.3755,214.7585},
    {-2315.1660,-126.4578,35.0396,180.3001},
    {-2784.0198,-282.0489,6.7661,179.5932},
    {-2669.6848,-35.3284,4.0630,180.0764},
    {-2549.7896,24.9293,16.1725,359.6184},
    {-2664.9888,268.1523,4.0630,359.6514},
    {-2483.5293,419.0618,27.5083,137.9765},
    {-2433.1174,252.7755,34.8990,267.7167},
    {-2265.5117,184.8898,34.8911,89.9436},
    {-2085.3171,-83.4062,34.8911,180.6765},
    {-1975.6647,172.5301,27.4162,91.0423},
    {-2098.9385,392.6717,34.8990,89.2117},
    {-1926.2850,584.8614,34.8594,179.4465},
    {-1755.4373,750.0452,24.6177,269.5105},
    {-1657.4712,455.3770,6.9105,134.7290},
    {-1841.0920,-11.0239,14.8443,270.4759},
    {-1876.6660,-151.1178,11.6255,359.8484},
    {-1638.1499,1296.8842,6.7630,134.5698},
    {-1538.5950,1013.2310,6.9146,89.3251},
    {-1755.8696,956.5347,24.5375,91.3590},
    {-1915.5305,996.2936,35.4349,268.0291},
    {-1770.2776,1088.5476,45.1724,359.9954},
    {-1770.0273,1204.0504,24.8521,180.9172},
    {-2037.8104,1224.4291,31.3755,90.8166},
    {-2512.2322,1209.7662,37.1506,270.2497},
    {-2354.8430,983.4777,50.4224,9.0816},
    {-2567.6675,988.5786,78.0005,359.6699},
    {-2830.8853,933.2009,43.7214,189.9653},
    {-2870.2095,418.2336,4.6448,270.4837},
    {-2587.2061,482.5064,14.3425,181.5079},
    {-2464.5996,742.0931,34.7427,179.4828},
    {-2558.0662,803.4117,49.6294,269.6814},
    {-2721.1865,799.2324,51.3287,357.5042},
    {-2574.3557,903.1876,64.6308,270.4896},
    {-2557.2432,1385.4077,6.9146,181.1564},
    {-2877.4548,1206.8700,5.4950,153.7876},
    {-2861.2930,1024.5107,36.5929,202.0794},
    {-2602.7932,2267.9756,7.9381,87.6234},
    {-2461.6504,2225.6274,4.5708,0.3075},
    {-2271.7979,2330.3196,4.5434,270.2175},
    {-2504.1748,2499.8555,18.6177,270.3187},
    {-1934.1577,2377.2107,49.2270,290.7532}
    };


    new MietAuto[MAX_PLAYERS];
    new MietAutoAbgeschlossen[MAX_PLAYERS];
    new MietAutoMietZeit[MAX_PLAYERS];


    Wenn ich nun compile, kommt folgender Error:



    C:\Users\Jannick\Desktop\ReallifeScript\gamemodes\Scriptv1.pwn(584) : warning 227: more initiallers than enum fields
    C:\Users\Jannick\Desktop\ReallifeScript\gamemodes\Scriptv1.pwn(584) : error 018: initialization data exceeds declared size
    C:\Users\Jannick\Desktop\ReallifeScript\gamemodes\Scriptv1.pwn(677) : error 010: invalid function or declaration
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    2 Errors.



    Ich hoffe, mir kann jemand helfen. Habe MAX_MIETPARKS schon erhöht, funktioniert trotzdem nicht :/


    MFG,
    Shanon.

    Einmal editiert, zuletzt von Shanon ()

  • Guten Tag,


    Ich hoffe, mir kann jemand helfen. Habe MAX_MIETPARKS schon erhöht, funktioniert trotzdem nicht :/


    MFG,
    [color=#000000]Shanon.


    Ich hoffe dir ist aufgefallen das dir in Zeile 126 ein komma fehlt
    und in der zeile hast du zu viele floats drinne da muss die 35 weg


    {-1.5582,-304.6251,5.0857,89.4764,35},