CreatDynamicObject Problem | Objekte werden nicht erstellt?!

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 Leute,


    diese Objekte werde nicht erstellt :o


    Aber ich mach doch alles richtig?! :(


    // Arbeitsamt Interior
    CreateDynamicObject(14444, 1456.2731933594, -1792.6857910156, -6.3399772644043, 0, 0, 0);
    CreateDynamicObject(1491, 1481.7078857422, -1797.9516601563, -6.1602897644043, 0, 0, 270.46020507813);
    CreateDynamicObject(1491, 1481.7309570313, -1800.9835205078, -6.1602897644043, 0, 0, 89.778472900391);
    CreateDynamicObject(10184, 1481.8510742188, -1800.1854248047, -3.9901175498962, 0, 0, 0);
    CreateDynamicObject(1567, 1454.0622558594, -1789.5590820313, -6.1682019233704, 0, 0, 0);
    CreateDynamicObject(1567, 1457.1154785156, -1789.5040283203, -6.1682019233704, 0, 0, 180.54052734375);
    CreateDynamicObject(2773, 1466.35546875, -1801.7084960938, -5.6430616378784, 0, 0, 0);
    CreateDynamicObject(2773, 1466.3338623047, -1804.1164550781, -5.6430616378784, 0, 0, 0);
    CreateDynamicObject(2773, 1460.8859863281, -1792.2946777344, -5.6430616378784, 0, 0, 269.02026367188);
    CreateDynamicObject(2190, 1465.9702148438, -1797.9547119141, -5.1056022644043, 0, 0, 212.43542480469);
    CreateDynamicObject(2190, 1465.8624267578, -1795.7550048828, -5.1056022644043, 0, 0, 212.431640625);
    CreateDynamicObject(2190, 1463.7805175781, -1792.3156738281, -5.1056022644043, 0, 0, 336.0810546875);
    CreateDynamicObject(1671, 1464.3463134766, -1797.4853515625, -5.7000756263733, 0, 0, 87.609954833984);
    CreateDynamicObject(1671, 1464.2429199219, -1795.2922363281, -5.7000756263733, 0, 0, 87.60498046875);
    CreateDynamicObject(1671, 1463.380859375, -1793.8950195313, -5.7000756263733, 0, 0, 183.0849609375);
    CreateDynamicObject(2922, 1457.3002929688, -1789.458984375, -4.6315770149231, 0, 0, 0);
    CreateDynamicObject(2921, 1481.5856933594, -1804.9450683594, -0.52179002761841, 0, 0, 341.31005859375);
    CreateDynamicObject(630, 1481.3380126953, -1801.1644287109, -5.1351308822632, 0, 0, 0);
    CreateDynamicObject(630, 1481.3395996094, -1797.8068847656, -5.1351308822632, 0, 0, 0);
    CreateDynamicObject(1703, 1452.7272949219, -1779.5189208984, -6.1602897644043, 0, 0, 0.2349853515625);
    CreateDynamicObject(1703, 1451.1728515625, -1782.6330566406, -6.1602897644043, 0, 0, 89.889892578125);
    CreateDynamicObject(1827, 1453.6483154297, -1781.8315429688, -6.1602897644043, 0, 0, 0);
    CreateDynamicObject(948, 1453.7927246094, -1781.8474121094, -5.7852883338928, 0, 0, 0);
    CreateDynamicObject(2164, 1459.5698242188, -1799.7136230469, -6.1602897644043, 0, 0, 89.260070800781);
    CreateDynamicObject(2164, 1459.6315917969, -1795.8859863281, -6.1602897644043, 0, 0, 90.244262695313);
    CreateDynamicObject(2167, 1462.8663330078, -1805.4393310547, -6.1602897644043, 0, 0, 180.80554199219);
    CreateDynamicObject(2167, 1461.9117431641, -1805.4401855469, -6.1602897644043, 0, 0, 180.80200195313);
    CreateDynamicObject(2199, 1459.6643066406, -1802.5126953125, -6.1602897644043, 0, 0, 89.745025634766);
    CreateDynamicObject(2172, 1451.0969238281, -1787.5511474609, -6.1602897644043, 0, 0, 1);
    CreateDynamicObject(2172, 1458.8773193359, -1787.9764404297, -6.1602897644043, 0, 0, 269.40234375);
    CreateDynamicObject(2193, 1480.1373291016, -1779.4929199219, -6.1335182189941, 0, 0, 269.03527832031);
    CreateDynamicObject(2356, 1480.0323486328, -1780.3376464844, -6.1602897644043, 0, 0, 270.27026367188);
    CreateDynamicObject(2356, 1458.0767822266, -1788.4445800781, -6.1602897644043, 0, 0, 308.11907958984);
    CreateDynamicObject(2356, 1451.4125976563, -1788.6865234375, -6.1602897644043, 0, 0, 329.22717285156);
    CreateDynamicObject(3034, 1481.6241455078, -1784.1605224609, -1.0480852127075, 0, 89.325012207031, 269.77026367188);
    CreateDynamicObject(3034, 1481.6231689453, -1782.5677490234, -1.0480852127075, 0, 89.324340820313, 269.76928710938);
    CreateDynamicObject(1808, 1468.2838134766, -1805.2735595703, -6.1602897644043, 0, 0, 182.77551269531);
    CreateDynamicObject(1808, 1469.9897460938, -1805.2878417969, -6.1602897644043, 0, 0, 181.0390625);
    CreateDynamicObject(1808, 1471.701171875, -1805.2702636719, -6.1602897644043, 0, 0, 181.03820800781);
    CreateDynamicObject(16779, 1466.8752441406, -1782.3205566406, 4.3505568504333, 0, 0, 0);
    CreateDynamicObject(16779, 1476.1179199219, -1784.0625, 4.3505568504333, 0, 0, 0);
    CreateDynamicObject(16779, 1456.3509521484, -1782.1170654297, 0.35055667161942, 0, 0, 0);
    CreateDynamicObject(2196, 1465.8664550781, -1795.3781738281, -5.1056022644043, 0, 0, 210.40539550781);
    CreateDynamicObject(2196, 1463.9340820313, -1793.3309326172, -5.1056022644043, 0, 0, 210.40466308594);
    CreateDynamicObject(2196, 1465.8533935547, -1797.6145019531, -5.1056022644043, 0, 0, 210.40466308594);
    CreateDynamicObject(2176, 1472.1898193359, -1788.1018066406, -3.3181009292603, 0, 0, 0);
    CreateDynamicObject(2257, 1459.6136474609, -1795.65234375, -1.3503661155701, 0, 0, 88.730010986328);
    CreateDynamicObject(945, 1465.8802490234, -1793.9971923828, 4.4074478149414, 0, 0, 0);
    CreateDynamicObject(945, 1465.9912109375, -1797.5989990234, 4.4074478149414, 0, 0, 0);
    CreateDynamicObject(2179, 1451.3646240234, -1779.6241455078, -4.4502124786377, 0, 0, 0);
    CreateDynamicObject(2773, 1467.5415039063, -1798.8166503906, -5.6430616378784, 0, 0, 272.22521972656);
    CreateDynamicObject(2773, 1467.5545654297, -1796.4893798828, -5.6430616378784, 0, 0, 271.97473144531);
    CreateDynamicObject(2773, 1467.5142822266, -1794.0886230469, -5.6430616378784, 0, 0, 270.72204589844);
    CreateDynamicObject(2773, 1464.748046875, -1790.9978027344, -5.6430616378784, 0, 0, 178.45971679688);
    CreateDynamicObject(2773, 1462.4072265625, -1790.7880859375, -5.6430616378784, 0, 0, 178.45642089844);
    CreateDynamicObject(2186, 1480.9503173828, -1782.7659912109, -6.1602897644043, 0, 0, 270.27026367188);
    CreateDynamicObject(2817, 1451.3383789063, -1789.1208496094, -6.1602897644043, 0, 0, 0);
    CreateDynamicObject(14867, 1481.2001953125, -1790.0349121094, -4.6684231758118, 0, 0, 89.154937744141);

    CreateDynamicObject(987, 1379.19995, -1599.09998, 12.5, 0, 0, 156);
    CreateDynamicObject(987, 1411.19995, -1709, 12.6, 0, 0, 88);
    CreateDynamicObject(987, 1354.5, -1683.90002, 12.7, 0, 0, 0);
    CreateDynamicObject(987, 1347.09998, -1684.19995, 12.6, 0, 0, 0);
    CreateDynamicObject(987, 1368.40002, -1673.59998, 12.8, 0, 16, 334);
    CreateDynamicObject(987, 1352.59998, -1619.09998, 12.7, 0, 0, 268);
    CreateDynamicObject(987, 1353, -1663.19995, 12.6, 0, 0, 267.995);
    CreateDynamicObject(987, 1353.30005, -1672.30005, 12.7, 0, 0, 267.995);
    CreateDynamicObject(987, 1353.09998, -1619.19995, 12.7, 0, 0, 0);
    CreateDynamicObject(1231, 1385.5, -1652.90002, 15.3, 0, 0, 90);
    CreateDynamicObject(1231, 1377.40002, -1653.19995, 15.3, 0, 0, 55.999);
    CreateDynamicObject(1231, 1396.30005, -1653, 15.3, 0, 0, 90);
    CreateDynamicObject(1231, 1407.59998, -1652.90002, 15.3, 0, 0, 90);
    CreateDynamicObject(1231, 1368.09998, -1664.09998, 15.2, 0, 0, 142);
    CreateDynamicObject(1231, 1377.09998, -1661.90002, 15.3, 0, 0, 175.998);
    CreateDynamicObject(1231, 1378.40002, -1672.90002, 15, 0, 0, 153.995);
    CreateDynamicObject(1231, 1377, -1631.59998, 15.3, 0, 0, 147.995);
    CreateDynamicObject(1231, 1372.19995, -1617.80005, 15.3, 0, 0, 89.991);
    CreateDynamicObject(1231, 1372.5, -1624.59998, 15.3, 0, 0, 137.989);
    CreateDynamicObject(1231, 1385.19995, -1626.30005, 15.3, 0, 0, 249.988);
    CreateDynamicObject(1231, 1385.59998, -1619.90002, 15.3, 0, 0, 327.983);
    CreateDynamicObject(1231, 1358.30005, -1631.5, 14.2, 0, 0, 323.98);
    CreateDynamicObject(8843, 1404.59998, -1646.80005, 12.4, 0, 0, 90);
    CreateDynamicObject(8843, 1382.80005, -1646.59998, 12.4, 0, 0, 90);
    CreateDynamicObject(8843, 1383.19995, -1650.40002, 12.4, 0, 0, 270);
    CreateDynamicObject(8843, 1405, -1650.30005, 12.4, 0, 0, 270);
    CreateDynamicObject(8041, 1413.5, -1653.59998, 18.4, 0, 0, 0);
    CreateDynamicObject(987, 1965.19995, -1450.90002, 13.4, 0, 0, 0);
    CreateDynamicObject(987, 1962.09998, -1450.90002, 13.5, 0, 0, 0);
    CreateDynamicObject(987, 1944.90002, -1450.90002, 13.3, 0, 0, 0);
    CreateDynamicObject(987, 1933.30005, -1450.90002, 13.3, 0, 0, 0);
    CreateDynamicObject(987, 1921.30005, -1450.90002, 13.2, 0, 0, 0);
    CreateDynamicObject(987, 1909.40002, -1450.90002, 13.4, 0, 0, 0);
    CreateDynamicObject(987, 1897.40002, -1450.69995, 13.2, 0, 0, 0);
    CreateDynamicObject(987, 1885.40002, -1450.69995, 13.2, 0, 0, 0);
    CreateDynamicObject(987, 1873.5, -1450.90002, 13.2, 0, 0, 0);
    CreateDynamicObject(987, 1861.90002, -1450.80005, 13.2, 0, 0, 0);
    CreateDynamicObject(987, 1861.90002, -1438.69995, 13.3, 0, 0, 270);
    CreateDynamicObject(987, 1861.90002, -1426.59998, 13.2, 0, 0, 270);
    CreateDynamicObject(987, 1861.90002, -1414.69995, 13.3, 0, 0, 270);
    CreateDynamicObject(987, 1861.90002, -1402.69995, 13.3, 0, 0, 270);
    CreateDynamicObject(987, 1861.90002, -1390.80005, 13.1, 0, 0, 270);
    CreateDynamicObject(987, 1861.90002, -1379, 12.6, 0, 0, 270);
    CreateDynamicObject(987, 1862.30005, -1358.59998, 13.1, 0, 0, 270);
    CreateDynamicObject(987, 1861.7998, -1370.89941, 12.6, 0, 0, 270);
    CreateDynamicObject(987, 1862.19995, -1351.09998, 13.1, 0, 0, 270);
    CreateDynamicObject(987, 1874.09998, -1351.30005, 13.1, 0, 0, 180);
    CreateDynamicObject(987, 1886.19995, -1351, 12.5, 0, 0, 179.995);
    CreateDynamicObject(987, 1908.90002, -1351.19995, 13.4, 0, 4, 179.995);
    CreateDynamicObject(987, 1896.69922, -1351, 12.5, 0, 0, 179.995);
    CreateDynamicObject(987, 1920.09998, -1351.40002, 15.4, 0, 12, 177.995);
    CreateDynamicObject(987, 1930.30005, -1351.40002, 17.3, 0, 12, 179.995);
    CreateDynamicObject(987, 1941.5, -1351.30005, 19.3, 0, 12, 179.995);
    CreateDynamicObject(987, 1950.59998, -1351.30005, 20.9, 0, 11.997, 179.995);
    CreateDynamicObject(987, 1962.09998, -1351.09998, 23.2, 0, 11.992, 179.99);
    CreateDynamicObject(987, 1976.69995, -1351.19995, 23.6, 0, 359.986, 179.989);
    CreateDynamicObject(987, 1972.2998, -1351.2998, 23.5, 0, 7.982, 179.984);
    CreateDynamicObject(987, 1976.90002, -1363, 23.5, 0, 359.984, 91.984);
    CreateDynamicObject(987, 1977, -1375.09998, 23.5, 0, 359.978, 91.983);
    CreateDynamicObject(987, 1977, -1386.90002, 23.3, 0, 359.978, 91.983);
    CreateDynamicObject(987, 1977, -1398.5, 20.7, 0, 347.978, 89.983);
    CreateDynamicObject(987, 1977, -1410.09998, 18.6, 0, 347.975, 89.978);
    CreateDynamicObject(987, 1977, -1421.69995, 16.6, 0, 347.975, 89.978);
    CreateDynamicObject(987, 1976.80005, -1433.19995, 14.4, 0, 347.975, 89.978);
    CreateDynamicObject(987, 1976.69995, -1445.40002, 14.1, 0, 353.975, 89.978);
    CreateDynamicObject(987, 1977, -1450.80005, 13.2, 0, 357.974, 89.978);
    CreateDynamicObject(1215, 1956.19995, -1451.5, 13.1, 0, 0, 0);
    CreateDynamicObject(1215, 1956.19995, -1453, 13.1, 0, 0, 0);
    CreateDynamicObject(1215, 1956.19995, -1454.19995, 13.1, 0, 0, 0);
    CreateDynamicObject(1215, 1956.19995, -1455.5, 13.1, 0, 0, 0);
    CreateDynamicObject(1215, 1962, -1451.90002, 13.1, 0, 0, 0);
    CreateDynamicObject(1215, 1961.90002, -1453.09998, 13.1, 0, 0, 0);
    CreateDynamicObject(1215, 1961.80005, -1454.5, 13.1, 0, 0, 0);
    CreateDynamicObject(1215, 1961.80005, -1455.59998, 13.1, 0, 0, 0);
    CreateDynamicObject(1216, 1954.40002, -1451.30005, 13.2, 0, 0, 0);
    CreateDynamicObject(1216, 1953.5, -1451.30005, 13.2, 0, 0, 0);
    CreateDynamicObject(1257, 1949.5, -1454.5, 13.8, 0, 0, 90);
    CreateDynamicObject(1258, 1952.69995, -1451.5, 13.2, 0, 0, 0);
    CreateDynamicObject(13593, 1908, -1406.30005, 13.3, 0, 0, 64);
    CreateDynamicObject(13593, 1889.90002, -1397.69995, 13.3, 0, 0, 241.995);
    CreateDynamicObject(13604, 1906.69995, -1370.80005, 14.3, 0, 0, 314);
    CreateDynamicObject(13641, 1899.5, -1443.90002, 12.5, 0, 0, 0);
    CreateDynamicObject(13641, 1925.69995, -1443.30005, 12.5, 0, 0, 178);
    CreateDynamicObject(18451, 1918, -1397.40002, 13.1, 0, 0, 40);
    CreateDynamicObject(3406, 1864.2998, -1410.59961, 18.6, 0, 0, 270);
    CreateDynamicObject(3406, 1864.40002, -1401.80005, 18.6, 0, 0, 270);
    CreateDynamicObject(1432, 1873, -1411.69995, 12.6, 0, 0, 342);
    CreateDynamicObject(1432, 1875.30005, -1410.40002, 12.6, 0, 0, 23.999);
    CreateDynamicObject(1432, 1873.09998, -1408.69995, 12.6, 0, 0, 345.994);
    CreateDynamicObject(1432, 1876, -1407.69995, 12.6, 0, 0, 1.992);
    CreateDynamicObject(1432, 1874, -1406, 12.6, 0, 0, 333.989);
    CreateDynamicObject(2644, 1868.5, -1408.59998, 12.9, 0, 0, 0);
    CreateDynamicObject(2644, 1868.5, -1407.59998, 12.9, 0, 0, 0);
    CreateDynamicObject(2644, 1868.5, -1406.59998, 12.9, 0, 0, 0);
    CreateDynamicObject(2644, 1868.5, -1405.59998, 12.9, 0, 0, 0);
    CreateDynamicObject(14820, 1868.59998, -1407.90002, 13.4, 0, 0, 90);
    CreateDynamicObject(1954, 1868.59998, -1406.09998, 13.4, 0, 0, 270);
    CreateDynamicObject(1840, 1868.69995, -1405.30005, 13.3, 0, 0, 172);
    CreateDynamicObject(3864, 1866.30005, -1418.69995, 18.7, 0, 0, 230);
    CreateDynamicObject(3864, 1869.19995, -1395.09998, 18.6, 0, 0, 119.999);
    CreateDynamicObject(1281, 1873.59998, -1402, 13.4, 0, 0, 14);
    CreateDynamicObject(1281, 1872.09998, -1397.59998, 13.3, 0, 0, 13.997);
    CreateDynamicObject(1281, 1875.90002, -1399.30005, 13.4, 0, 0, 13.997);
    CreateDynamicObject(1281, 1876.80005, -1395.90002, 13.4, 0, 0, 13.997);
    CreateDynamicObject(1281, 1879.19995, -1401.19995, 13.4, 0, 0, 13.997);
    CreateDynamicObject(2229, 1868.40002, -1410.30005, 12.5, 0, 0, 60);
    CreateDynamicObject(2229, 1868.5, -1409.40002, 12.5, 0, 0, 91.996);
    CreateDynamicObject(2231, 1868, -1403.90002, 12.5, 0, 0, 96);
    CreateDynamicObject(345, 1867, -1418.69995, 24, 0, 0, 12);
    CreateDynamicObject(345, 1866, -1417.90002, 23.9, 0, 0, 11.997);
    CreateDynamicObject(345, 1866.09998, -1418, 24.6, 0, 0, 11.997);
    CreateDynamicObject(345, 1869.19995, -1395.59998, 23.5, 0, 0, 309.997);
    CreateDynamicObject(345, 1870.19995, -1395, 24.4, 0, 0, 299.996);
    CreateDynamicObject(345, 1870.19995, -1395, 23.4, 0, 0, 299.993);
    CreateDynamicObject(345, 1869, -1406.90002, 13.3, 0, 0, 299.993);
    CreateDynamicObject(345, 1865.30005, -1412.09998, 19.3, 0, 0, 299.993);
    CreateDynamicObject(345, 1865.40002, -1404.09998, 17.5, 0, 0, 0);
    CreateDynamicObject(345, 1865.40002, -1400.5, 20.5, 0, 0, 0);
    CreateDynamicObject(345, 1865.40002, -1399.40002, 14.2, 0, 0, 0);
    CreateDynamicObject(345, 1865.30005, -1410.30005, 16.2, 0, 0, 0);
    CreateDynamicObject(345, 1912.90002, -1442.90002, 15.9, 0, 0, 0);

  • Ich bin zwar aus der alten Stube aber Versuch mal deinen streamer zu aktualisieren falls nötig einen anderen zu probieren, oder was man machen könnte eine Map mal ausklammern und neu probieren.


    MfG


  • Nein, da diese automatisch vom Streamer wiedergegeben werden. Wenn du keine Veränderungen vornehmen möchtest, kannst du diese Parameter auch getrost weg lassen.


    @DieChickenfighter:
    Hast du noch andere Objekte drin? Was sagt die Server Log?

    Ich habe das ganze in einem Filterscript drin (spich alle Mapgeschichten)!


    Ein anderer Teil (der geladen wird) ist der hier:


    CreateDynamicObject(974, 1041.3, -1026, 33.9, 0, 0, 0);
    CreateDynamicObject(974, 1025.09998, -1029.40002, 33.9, 0, 0, 0);
    CreateDynamicObject(974, -1935.9, 238.8, 36.1, 0, 0, 2);
    CreateDynamicObject(974, -2716.3, 217.5, 6.1, 0, 0, 90);
    CreateDynamicObject(974, 2386.7, 1043.5, 12.6, 0, 0, 0);
    CreateDynamicObject(974, 1968.4, 2162.3999, 12.5, 0, 0, 92);
    CreateDynamicObject(974, -1904.5, 277.70001, 42.8, 0, 0, 0);
    CreateDynamicObject(974, -2425.6001, 1028.2, 52.2, 0, 0, 0);
    CreateDynamicObject(974, 488, -1734.9, 12.9, 0, 0, 352);
    CreateDynamicObject(974, 2071.1001, -1831.1, 15.3, 0, 0, 90);
    CreateDynamicObject(974, 2644.80005, -2039.30005, 13.1, 0, 180, 0);
    CreateDynamicObject(974, 720.5, -462.60001, 17.1, 0, 0, 0);


    Aber ich konnte keinen wirklichen Unterschied herausfinden :o



    In der server.log steht nichts besonderes :(

  • Also am Code liegt es nicht, bei mir zeigt es die Objekte ohne Probleme an:


    Möglicherweise hast du das Limit an Objekten erreicht. Wenn mehr als 1000 Objekte sichtbar sind kann auch der Streamer nichts mehr machen.
    Du hast ja hier schonmal eine ganze Menge Objekte auf einem Haufen.


    Klammere mal alle deine anderen Objekte aus und lasse nur die zwei Interiors stehen, werden sie dann angezeigt?

  • Wenn mehr als 1000 Objekte sichtbar sind kann auch der Streamer nichts mehr machen.

    Kann man da nichts machen, anderen Streamer oder sowas?


    Habe den normalen Streamer (by incognito, glaub ich)


    Ich habe jetzt die CreateDynamicObject's gezählt und bin auf 3100 gekommen :o


    Aber es erstellt ja alles, bis auf den Code den ich gepostet habe :(


    #edit Zahl

  • Das Limit von 1000 Objekten kannst du nicht erhöhen, das ist in SA-MP so festgelegt, daran lässt sich auch nichts machen.
    Ein Streamer macht nichts anderes als die Objekte die nicht in deiner Nähe sind zu löschen, sprich er zeigt dir nur die Objekte an, die du auch siehst, bzw. sehen kannst, zum Beispiel Objekte in LV sind gar nicht geladen, wenn dort niemand ist.


    Einen anderen Streamer musst du da nicht verwenden, das Streamer Plugin ist der beste Streamer.


    Bei dir ist es möglicherweise so, dass du in dem Bereich schon mehr als 1000 Objekte hast und dir deshalb nicht alle angezeigt werden (viele kleine Objekte an einem Ort?).
    Deshalb der Vorschlag mal die ganzen Objekte zu entfernen, bis auf die, die nicht angezeigt werden. Werden sie dann angezeigt? Wenn ja, dann liegt es am Limit.
    Wenn nein, dann liegt es an etwas anderem.

  • jetzt klappt alles :)


    Wunderbar und danke nochmal ! <3



    habe aber eine andere Frage und möchte keinen neuen Thread auf machen!


    Habe folgende Warnings:


    D:\Domi\Spiele\GTA San Andreas\Selfmade\gamemodes\original.pwn(25023) : warning 213: tag mismatch
    D:\Domi\Spiele\GTA San Andreas\Selfmade\gamemodes\original.pwn(25051) : warning 213: tag mismatch


    In diesen Blöcken:


    ocmd:zigdel(playerid,params[])
    {
    if(GetPVarInt(playerid,"Adminlevel") < 6) return 1;
    new slot;
    if(sscanf(params, "i", slot)) return SCM(playerid, COLOR_FADE3, "Benutze: /zigdel [Slot]");
    if(ZigInfo[slot][BankGesetzt] == 1) // HIER EINMAL ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
    {
    DestroyDynamic3DTextLabel(ZigInfo[slot][ZigText]);
    DestroyDynamicObject(ZigInfo[slot][ZigObject]);
    ZigInfo[slot][ZigObject] = -1;
    ZigInfo[slot][ZigGesetzt] = 0;
    new query[128],slotstr[16];
    valstr(slotstr,slot);
    format(query,sizeof(query),"DELETE FROM `zig_automaten` WHERE `Slot` = '%s'",slotstr);
    mysql_query(query);
    mysql_free_result();
    SCMF(playerid,WHITE,"Zigarettenautomat (Slot %i) gelöscht!",slot);
    return 1;
    }
    return 1;
    }



    ocmd:zignew(playerid,params[])
    {
    if(GetPVarInt(playerid,"Adminlevel") < 6) return 1;
    new model;
    if(sscanf(params, "i", model))return SCM(playerid, COLOR_FADE3, "Benutze: /zignew [Object (0/1)]");
    new count;
    mysql_query("SELECT * FROM `zig_automaten`");
    mysql_store_result();
    count = mysql_num_rows();
    mysql_free_result();
    if(count == 49)
    {
    SCM(playerid,RED,"Das Limit der Zigarettenautomaten ist erreicht (49)!");
    return 1;
    }
    for(new carid=1;carid<50;carid++)
    {
    new Query[128],idstr[32],count2;
    valstr(idstr,carid);
    mysql_real_escape_string(idstr, idstr);
    format(Query, sizeof(Query), "SELECT `Slot` FROM `zig_automaten` WHERE `Slot` = '%s'", idstr);
    mysql_query(Query);
    mysql_store_result();
    count2 = mysql_num_rows();
    mysql_free_result();
    if(count2 == 0)
    {
    format(Query, sizeof(Query), "INSERT INTO `zig_automaten` (`Slot`) VALUES ('%d')", carid);
    mysql_query(Query);
    new caridstr[32];
    valstr(caridstr,carid);
    new Float:x,Float:y,Float:z;
    GetPlayerPos(playerid,x,y,z);
    ZigInfo[carid][ZigGesetzt] = 1;
    ZigInfo[carid][ZigAutomat] = model;
    ZigInfo[carid][ZigX] = x;
    ZigInfo[carid][ZigY] = y;
    ZigInfo[carid][ZigZ] = z;
    ZigInfo[carid][ZigA] = 0;
    mysql_SetInt("zig_automaten", "Automat", model, "Slot", caridstr);
    mysql_SetFloat("zig_automaten", "X", x, "Slot", caridstr);
    mysql_SetFloat("zig_automaten", "Y", y, "Slot", caridstr);
    mysql_SetFloat("zig_automaten", "Z", z, "Slot", caridstr);
    mysql_SetFloat("zig_automaten", "A", 0, "Slot", caridstr);
    if(model == 1)
    {
    ZigInfo[carid][BankObject] = CreateDynamicObject(2754,x,y,z,0,0,0); // HIER EINMAL ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
    }
    else
    {
    ZigInfo[carid][ZigObject] = -1;
    }
    ZigInfo[carid][ZigText] = CreateDynamic3DTextLabel("/zigaretten", WHITE, x, y, z, 20.0);
    SCMF(playerid,WHITE,"Zigarettenautomat (Slot %i) erstellt!",carid);
    break;
    }



    }
    //2754
    return 1;
    }

  • Zeig uns mal dein Enum wo die Variable "BankGesetzt" & "BankObject" drin ist.

    2 Mal editiert, zuletzt von AirM4X ()