Autohaus 4 Errors

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
  • Heyho :) ,


    Ich brauche eure Hilfe :D



    C:\Users\Mehmet Ali\Desktop\Script [GLR]RealLife\gamemodes\[GLR]RealLife.pwn(887) : error 029: invalid expression, assumed zero
    C:\Users\Mehmet Ali\Desktop\Script [GLR]RealLife\gamemodes\[GLR]RealLife.pwn(887) : error 008: must be a constant expression; assumed zero
    C:\Users\Mehmet Ali\Desktop\Script [GLR]RealLife\gamemodes\[GLR]RealLife.pwn(913) : error 052: multi-dimensional arrays must be fully initialized
    C:\Users\Mehmet Ali\Desktop\Script [GLR]RealLife\gamemodes\[GLR]RealLife.pwn(944) : error 052: multi-dimensional arrays must be fully initialized



    {3,451,141500}, //Turismo
    {3,558,47800}, //Uranus
    {3,480,69500}, //Comet
    {3,477,50000}, //Zr350
    {3,565,14040}, //Flash

    //2 = LS AIRPORT (Flugzeuge Helikopter)
    {4,487,600000}, //Maverick
    {4,469,300000}, //Spearrow
    {4,519,950000}, //Shamal
    }; //HIER
    new Float:DtcParkPlatz[AUTOHAUSER][MAXPARKPLATZE][4] = {
    {//2Räder LS
    {1231.1697,-1419.5529,12.9558, 0.0},
    {1231.2817,-1422.3464,12.9940, 0.0},
    {1230.8728,-1424.6959,13.0207, 0.0},
    {1230.6115,-1426.9005,13.0612, 0.0}
    },
    {//LS CarSeller
    {2822.0322, -1091.7185, 30.4274, 178.7226},
    {2822.2390, -1082.3268, 30.4246, 178.7900},
    {2815.1428, -1084.2802, 30.4481, 182.4011},
    {2815.5940, -1095.0559, 30.4346, 182.3656}
    },
    {//LS Studio
    {1706.6991, -1536.8207, 13.2499, 180.0},
    {1707.0038, -1527.1498, 13.2627, 180.0},
    {1706.9299, -1517.1089, 13.2641, 180.0},
    {1706.9113, -1506.6943, 13.2641, 180.0}
    },
    {//LS AIRPORT
    {1725.5981,-2414.4631,13.5547,91.2938},
    {1648.4031,-2413.2231,13.5547,91.2938},
    {1566.8810,-2416.3340,13.5547,89.3299},
    {1899.1111,-2374.5435,13.8934,270.3974}
    }
    }; //HIER


    new Float:DtcSonstiges[AUTOHAUSER][5][4] = {
    {//2Räder LS
    {1219.4432, -1427.3168, 13.3602, 0.0}, // Info Zeichen etc.
    {1219.3173, -1441.6929, 44.7522, 340.2388}, // LiveView Car
    {1212.9812, -1443.4077, 45.1510, 0.0}, // LiveView Cam
    {1209.7979, -1448.4766, 45.2224, 0.0}, // LiveView Player
    {1219.2841, -1421.4926, 13.2727, 178.5745} // LiveView Player Exit
    },
    {//LS CarSeller
    {2794.5720, -1087.7042, 30.7188, 0.0}, // Info Zeichen etc.
    {2793.1926, -1074.0157, 93.9885, 301.3163}, // LiveView Car
    {2795.6467, -1066.9978, 94.1871, 0.0}, // LiveView Cam
    {2803.5083, -1067.1490, 94.1871, 0.0}, // LiveView Player
    {2805.2322,-1089.1576,30.7310, 359.2809} // LiveView Player Exit
    },
    {//LS Studio
    {1691.1931, -1518.4469, 13.5534, 0.0}, // Info Zeichen etc.
    {1681.8058, -1515.9250, 18.2108, 225.3830}, // LiveView Car
    {1680.5959, -1521.1073, 18.5469, 0.0}, // LiveView Cam
    {1687.0474, -1521.8088, 18.5469, 0.0}, // LiveView Player
    {1694.6262, -1524.6407, 13.5469, 14.7941} // LiveView Player Exit
    },
    {//LS AIRPORT
    {1768.4802,-2433.6174,13.5547,358.4647}, // Info Zeichen etc.
    {1765.1451,-2286.7554,26.7960,313.5673}, // LiveView Car
    {1765.4340,-2271.0989,31.0900,181.3627}, // LiveView Cam
    {1765.4340,-2271.0989,31.0900,181.3627}, // LiveView Player
    {1778.3945,-2432.7996,13.5547,171.6871} // LiveView Player Exit
    }
    }; //HIER


    Ich hoffe ihr könnt mir helfen :/


    MfG,
    WiZZY.

  • 2 Errors :/


    C:\Users\Mehmet Ali\Desktop\Script [GLR]RealLife\gamemodes\[GLR]RealLife.pwn(919) : error 052: multi-dimensional arrays must be fully initialized
    C:\Users\Mehmet Ali\Desktop\Script [GLR]RealLife\gamemodes\[GLR]RealLife.pwn(950) : error 052: multi-dimensional arrays must be fully initialized


    new Float:DtcParkPlatz[AUTOHAUSER][MAXPARKPLATZE][4] = {
    {//2Räder LS
    {1231.1697,-1419.5529,12.9558, 0.0},
    {1231.2817,-1422.3464,12.9940, 0.0},
    {1230.8728,-1424.6959,13.0207, 0.0},
    {1230.6115,-1426.9005,13.0612, 0.0}
    },
    {//LS CarSeller
    {2822.0322, -1091.7185, 30.4274, 178.7226},
    {2822.2390, -1082.3268, 30.4246, 178.7900},
    {2815.1428, -1084.2802, 30.4481, 182.4011},
    {2815.5940, -1095.0559, 30.4346, 182.3656}
    },
    {//LS Studio
    {1706.6991, -1536.8207, 13.2499, 180.0},
    {1707.0038, -1527.1498, 13.2627, 180.0},
    {1706.9299, -1517.1089, 13.2641, 180.0},
    {1706.9113, -1506.6943, 13.2641, 180.0}
    },
    {//LS AIRPORT
    {1725.5981,-2414.4631,13.5547,91.2938},
    {1648.4031,-2413.2231,13.5547,91.2938},
    {1566.8810,-2416.3340,13.5547,89.3299},
    {1899.1111,-2374.5435,13.8934,270.3974}
    }
    }; //HIER


    {//LS AIRPORT
    {1768.4802,-2433.6174,13.5547,358.4647}, // Info Zeichen etc.
    {1765.1451,-2286.7554,26.7960,313.5673}, // LiveView Car
    {1765.4340,-2271.0989,31.0900,181.3627}, // LiveView Cam
    {1765.4340,-2271.0989,31.0900,181.3627}, // LiveView Player
    {1778.3945,-2432.7996,13.5547,171.6871} // LiveView Player Exit
    }
    }; //HIER

  • Das heißt, dass diese Arrays vollständig initialisiert werden müssen. Das heißt wiederrum, dass keine freien Plätze in den Arrays sein dürfen.


    Wenn du: [5][6][2] hast (bsp), dann musst du 5x 6 Zeilen mit je 2 spalten haben. Und zwar genau das, keins mehr, keins weniger.


    Wenn du uns sagst, was "AUTOHAUSER" und "MAXPARKPLATZE" für einen Wert haben, kann dir geholfen werden.
    Das zweite Array solltest du ebenfalls vollständig posten.