Koordinaten bitte erklären!

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 Morgen kann mir bitte jemand diese Koordinaten erklären Ich versteht das nicht so ganz. Ich will einen neuen Rollerverleih hinzufügen! Und einen Neuen Atm!


    new RentVehicleModels[][RentVeh_daten] =
    {
    {831.1390,-1739.6172,13.5617.5389,811.1642,-1354.4187,13.1382,314.3269},//Noobspawn
    {462,289.2470,-1874.7399,3.8332,306.2793,-1868.0719,2.4343},//LS Pier
    {462,1537.8156,-1695.0085,13.5469,1534.9005,-1684.5232,13.1452,356.9357},//Stadthalle
    {462,1428.3849,-1815.4039,13.5500,1440.7495,-1815.0133,13.1121,358.1750},//Stadthalle
    {593,2010.5217,-2411.4192,13.5469,1993.6127,-2417.7786,14.0061,124.8181}//Flugverleih am LS Airport
    /*{462,1325.8440,-1181.1956,23.5781,1284.9740,-1329.3776,13.5468,120.1381},//Noobspawn
    {462,1256.2858,-1428.8154,13.2455,1256.2858,-1428.8154,13.2455,1.7362},//Noobspawn
    {462,1256.2858,-1428.8154,13.2455,811.1642,-1354.4187,13.1382,314.3269},//Noobspawn
    {462,1737.2301,-1862.5613,13.5761,1742.6709,-1859.0051,13.1782,88.1001},//Noobspawn
    {462,1618.8384,-1883.5339,13.2593,1618.8384,-1883.5339,13.2593,37.3014}//Noobspawn*/
    };


    new ATM[MAX_ATMS][ATMuTelefonzellenInfo] =
    {
    {1349.1779785156,-1759.1978759766,13.158480644226,0.0,0.0,182.0,0},
    {925.56817626953,-1207.3221435547,16.672218322754,0.0,0.0,92.0,0},
    {2139.4291992188,-1165.5213623047,23.63508605957,0.0,0.0,88.0,0},
    {-1591.5266113281,716.79968261719,9.1503458023071,0.0,0.0,184.0,0},
    {1314.5313720703,-1367.9298095703,13.192802429199,0.0,0.0,0.0,0},
    {1185.1375732422,-900.21173095703,42.898387908936,0.0,0.0,276.0,0},
    {827.13629150391,-1350.7086181641,13.184123039246,0.0,0.0,268.0,0},
    {-1980.62,132.86,27.27,0.00,0.00,-90.00,0},
    {-1967.17,291.68,34.79,0.00,0.00,-90.00,0},
    {-1816.76,531.17,34.82,0.00,0.00,180.00,0},
    {-1814.78,531.16,34.82,0.00,0.00,180.00,0},
    {-1642.04,1207.71,6.80,0.00,0.00,134.54,0},
    {-2029.13,-102.06,34.53,0.00,0.00,180.00,0},
    {2352.02,-1415.01,23.61,0.00,0.00,-90.00,0},
    {2243.02,-1665.13,15.10,0.00,0.00,164.20,0},
    {387.21,-1819.53,7.46,0.00,0.00,-90.00,0},
    {603.62,-1248.39,18.04,0.00,0.00,-159.50,0},
    {-780.55,2744.61,45.48,0.00,0.00,90.00,0},
    {1305.79,1261.88,10.44,0.00,0.00,-270.00,0},
    {-2765.35,372.25,5.93, 0.00,0.00,90.00,0},
    {-2765.35,378.87,5.93, 0.00,0.00,90.00,0}
    };

  • Kannst du mir bitte diesen Atm einfügen bei mir geht es einfach nicht?


    der Atm

    CreateDynamicObject(2942, 834.91998, -1750.20959, 13.16530, 0.00000, 0.00000, 90.00000);



    das Enum

    new ATM[MAX_ATMS][ATMuTelefonzellenInfo] =
    {
    {1349.1779785156,-1759.1978759766,13.158480644226,0.0,0.0,182.0,0},
    {925.56817626953,-1207.3221435547,16.672218322754,0.0,0.0,92.0,0},
    {2139.4291992188,-1165.5213623047,23.63508605957,0.0,0.0,88.0,0},
    {-1591.5266113281,716.79968261719,9.1503458023071,0.0,0.0,184.0,0},
    {1314.5313720703,-1367.9298095703,13.192802429199,0.0,0.0,0.0,0},
    {1185.1375732422,-900.21173095703,42.898387908936,0.0,0.0,276.0,0},
    {827.13629150391,-1350.7086181641,13.184123039246,0.0,0.0,268.0,0},
    {-1980.62,132.86,27.27,0.00,0.00,-90.00,0},
    {-1967.17,291.68,34.79,0.00,0.00,-90.00,0},
    {-1816.76,531.17,34.82,0.00,0.00,180.00,0},
    {-1814.78,531.16,34.82,0.00,0.00,180.00,0},
    {-1642.04,1207.71,6.80,0.00,0.00,134.54,0},
    {-2029.13,-102.06,34.53,0.00,0.00,180.00,0},
    {2352.02,-1415.01,23.61,0.00,0.00,-90.00,0},
    {2243.02,-1665.13,15.10,0.00,0.00,164.20,0},
    {387.21,-1819.53,7.46,0.00,0.00,-90.00,0},
    {603.62,-1248.39,18.04,0.00,0.00,-159.50,0},
    {-780.55,2744.61,45.48,0.00,0.00,90.00,0},
    {1305.79,1261.88,10.44,0.00,0.00,-270.00,0},
    {-2765.35,372.25,5.93, 0.00,0.00,90.00,0},
    {-2765.35,378.87,5.93, 0.00,0.00,90.00,0}
    };

  • Nein, kann ich nicht. Aber das kannst du einfach selber machen.
    CreateDynamicObject(2942, 834.91998, -1750.20959, 13.16530, 0.00000, 0.00000, 90.00000);
    Hier hast du die Objekt ID (die du ja im enum nicht angeben musst, also kannst du die ignorieren), dann X, Y und Z Koordinaten, sowie die Rotation auf der X, Y und Z Achse.


    Das enum sagt dir, das die ersten 3 Punkte die Koordinaten sind, die darauf folgenden 3 Die Rotation, und die Letzte die Virtuelle Welt. Also nimmst du die Informationen aus CreateDynamicObject und fügst diese entsprechend als neue ATM hinzu. Da die anderen ATM's alle in der VW 0 sind, kann man davon ausgehen das dieser auch dahin soll, also als letztes einfach eine 0 nehmen.


    Und fertig ist dein neuer ATM.

    The fact is, I am right. And if you think I'm wrong, you are wrong.

  • Ja das habe Ich schon so gemacht aber bekomme diese errors hier immer.

    C:\Users\Justin\Desktop\Pure Roleplay\gamemodes\GeTmyselfmade.pwn(4703) : error 018: initialization data exceeds declared size
    C:\Users\Justin\Desktop\Pure Roleplay\gamemodes\GeTmyselfmade.pwn(4705) : error 010: invalid function or declaration
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    2 Errors.


    der Code:
    {834.91998, -1750.20959, 13.16530, 0.00000, 0.00000, 90.00000,0}