Benötige Hilfe wegen einem Fehler

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
  • Huhu,
    Ich habe einen kleinen error im Script und hoffe das Ihn jemand für mich korrigieren kann.




    Zum Script:


    http://pastebin.com/AQsKgzJh




    Warns und Errors:



    C:\Users\Wolf-Admin\Desktop\Pilot\gamemodes\Pilot.pwn(55) : warning 217: loose indentation
    C:\Users\Wolf-Admin\Desktop\Pilot\gamemodes\Pilot.pwn(246) : warning 217: loose indentation
    C:\Users\Wolf-Admin\Desktop\Pilot\gamemodes\Pilot.pwn(266) : error 017: undefined symbol "REGISTER2"
    C:\Users\Wolf-Admin\Desktop\Pilot\gamemodes\Pilot.pwn(363) : warning 217: loose indentation
    C:\Users\Wolf-Admin\Desktop\Pilot\gamemodes\Pilot.pwn(369) : warning 217: loose indentation
    C:\Users\Wolf-Admin\Desktop\Pilot\gamemodes\Pilot.pwn(370) : warning 217: loose indentation
    C:\Users\Wolf-Admin\Desktop\Pilot\gamemodes\Pilot.pwn(418) : warning 217: loose indentation


    Für die wo zu faul sind auf Pastebin zu klicken und einfach antwort auf das undefined symbol ^^ : "Es ist definiert"


    Mfg,
    Wiggle Wiggle

  • Willkommen auf Breadfish!


    Das Problem war, dass du mit den Compileranweisungen #if ... durcheinander gekommen bist.
    Ich habe sie dir entfernt, da sie nicht notwendig waren.


    Außerdem war der Code nicht richtig eingerückt.


    Hier:

    Spoiler anzeigen
    #include <a_samp>
    #include <streamer>
    //DEFINITIONEN

    Spoiler anzeigen
    /*
    Farbcodes
    */
    #define grün FF00FF00
    #define dunkelgrün FF2C6836
    #define blau FFFF0000
    #define rot FF0000A0
    #define weis FFE1E1E1
    #define braun FF106290
    #define schwarz FF000000
    #define gelb FF00FFFF
    #define Pink FFFF00FF
    #define SkyBlue FFFFFF00
    #define Grau FF999999
    #define Diamantblau FF555500

    Spoiler anzeigen
    //RegisteR & LogiN
    #define REGISTER2 1
    #define register 2

    Spoiler anzeigen
    /*
    Scriptcodes <Wolf.inc muss vorhanden sein>
    */
    #define SCM SendClientMessage //<------ Iwas stimmt hier nicht
    //Definitonen ende

    Spoiler anzeigen
    main()
    {
    print("\n----------------------------------");
    print(" Pilot's Life (German) Sei ein Pilot");
    print("----------------------------------\n");
    }

    Spoiler anzeigen
    public OnGameModeInit()
    {
    SetGameModeText("Pilot's Life");
    AddPlayerClass(0, 1835.1000000,-2438.5000000,13.2000000, 269.1425, 0, 0, 0, 0, 0, 0);
    //Objekte //Objecte //Maps
    CreateVehicle(536,1363.1000000,-1634.7000000,13.2000000,270.0000000,66,31,15); //Blade
    CreateVehicle(475,1373.5000000,-1635.0000000,13.3000000,0.0000000,42,119,15); //Sabre
    CreateVehicle(518,1373.1000000,-1646.1000000,13.2000000,0.0000000,115,14,15); //Buccaneer
    CreateVehicle(461,1361.7000000,-1650.8000000,13.1000000,0.0000000,22,34,15); //PCJ-600
    CreateVehicle(411,1364.9000000,-1656.9000000,13.2000000,0.0000000,93,126,15); //Infernus
    CreateVehicle(451,1366.0000000,-1646.0000000,13.1000000,0.0000000,37,37,15); //Turismo
    CreateVehicle(402,1370.1000000,-1661.1000000,13.3000000,0.0000000,88,89,15); //Buffalo
    CreateVehicle(403,1376.3000000,-1658.2000000,14.1000000,0.0000000,61,74,15); //Linerunner
    CreateVehicle(456,1366.5000000,-1669.4000000,13.8000000,0.0000000,98,11,15); //Yankee
    CreateVehicle(608,1975.5000000,-2184.2000000,14.1000000,204.0000000,245,245,15); //Stair Trailer
    CreateVehicle(608,1979.6000000,-2183.5000000,14.1000000,204.0000000,245,245,15); //Stair Trailer
    CreateVehicle(608,1984.9000000,-2182.7000000,14.1000000,204.0000000,245,245,15); //Stair Trailer
    CreateVehicle(608,1990.0000000,-2181.7998000,14.1000000,204.0000000,245,245,15); //Stair Trailer
    CreateVehicle(606,1995.4000000,-2184.2000000,13.6000000,0.0000000,-1,-1,15); //Luggage Trailer A
    CreateVehicle(606,1997.0996000,-2182.7002000,13.6000000,0.0000000,-1,-1,15); //Luggage Trailer A
    CreateVehicle(607,2002.3000000,-2183.0000000,13.6000000,0.0000000,-1,-1,15); //Luggage Trailer B
    CreateVehicle(407,1816.6000000,-2400.3999000,13.9000000,86.0000000,132,4,15); //Firetruck
    CreateVehicle(416,1815.1000000,-2406.0000000,13.9000000,84.0000000,245,245,15); //Ambulance
    CreateVehicle(427,1785.2000000,-2396.7000000,13.8000000,272.0000000,-1,-1,15); //Enforcer
    CreateVehicle(519,1990.8000000,-2382.1001000,14.5000000,88.0000000,245,245,15); //Shamal
    CreateVehicle(519,1992.1000000,-2315.7000000,14.5000000,87.9950000,245,245,15); //Shamal
    CreateVehicle(519,1991.4004000,-2250.0996000,14.5000000,87.9950000,245,245,15); //Shamal
    CreateVehicle(553,1753.9000000,-2625.1001000,15.8000000,0.0000000,54,65,15); //Nevada
    CreateVehicle(553,1888.4000000,-2625.7000000,15.8000000,0.0000000,54,65,15); //Nevada
    CreateVehicle(553,1821.7000000,-2626.7000000,15.8000000,0.0000000,54,65,15); //Nevada
    CreateVehicle(553,1680.9000000,-2623.7000000,15.8000000,0.0000000,54,65,15); //Nevada
    CreateVehicle(431,1617.4000000,-2626.7000000,15.8000000,0.0000000,54,65,15); //Nevada
    CreateVehicle(577,2115.1001000,-2444.0000000,12.5000000,178.0000000,189,190,15); //AT-400
    CreateVehicle(593,1379.3000000,-2466.0000000,14.1000000,272.0000000,105,30,15); //Dodo
    CreateVehicle(593,1378.6000000,-2451.7000000,14.1000000,272.0000000,105,30,15); //Dodo
    CreateVehicle(593,1378.3000000,-2438.3000000,14.1000000,272.0000000,105,30,15); //Dodo
    CreateVehicle(520,1378.3000000,-2423.8000000,14.1000000,272.0000000,105,30,15); //Dodo
    CreateVehicle(520,1421.6000000,-2421.5000000,15.1000000,228.0000000,76,117,15); //Beagle
    CreateVehicle(563,1765.2000000,-2288.3000000,27.7000000,0.0000000,245,245,15); //Raindance
    CreateVehicle(596,1815.4000000,-2390.6001000,13.4000000,94.0000000,-1,-1,15); //Police Car (LSPD)
    CreateVehicle(485,1846.5000000,-2438.0000000,13.3000000,172.0000000,245,245,15); //Baggage
    CreateVehicle(485,1849.0000000,-2438.1001000,13.3000000,171.9960000,245,245,15); //Baggage
    CreateVehicle(485,1851.3000000,-2438.3999000,13.3000000,171.9910000,245,245,15); //Baggage
    CreateVehicle(485,1823.7000000,-2435.5000000,13.3000000,173.9960000,245,245,15); //Baggage
    CreateVehicle(485,1821.2000000,-2435.3000000,13.3000000,173.9960000,245,245,15); //Baggage
    CreateVehicle(485,1818.7000000,-2435.3999000,13.3000000,173.9960000,245,245,15); //Baggage
    CreateObject(3458,1851.7998000,-1764.7002000,11.0000000,0.0000000,0.0000000,0.0000000); //object(vgncarshade1)(1)
    CreateObject(3458,1851.7998000,-1769.7998000,11.0000000,0.0000000,0.0000000,0.0000000); //object(vgncarshade1)(3)
    CreateObject(3458,1880.9000000,-1769.8000000,11.0000000,0.0000000,0.0000000,0.0000000); //object(vgncarshade1)(4)
    CreateObject(3458,1880.9000000,-1764.7000000,11.0000000,0.0000000,0.0000000,0.0000000); //object(vgncarshade1)(17)
    CreateObject(3458,1848.8000000,-1775.4000000,9.7000000,0.0000000,0.0000000,0.0000000); //object(vgncarshade1)(18)
    CreateObject(3458,1851.7998000,-1780.0000000,11.0000000,0.0000000,0.0000000,0.0000000); //object(vgncarshade1)(19)
    CreateObject(3458,1851.7998000,-1785.1006000,11.0000000,0.0000000,0.0000000,0.0000000); //object(vgncarshade1)(20)
    CreateObject(3458,1851.7998000,-1790.2002000,11.0000000,0.0000000,0.0000000,0.0000000); //object(vgncarshade1)(21)
    CreateObject(3458,1851.7998000,-1795.3008000,11.0000000,0.0000000,0.0000000,0.0000000); //object(vgncarshade1)(22)
    CreateObject(3458,1851.7998000,-1800.4004000,11.0000000,0.0000000,0.0000000,0.0000000); //object(vgncarshade1)(23)
    CreateObject(3458,1880.9004000,-1774.9004000,11.0000000,0.0000000,0.0000000,0.0000000); //object(vgncarshade1)(25)
    CreateObject(3458,1880.9000200,-1780.0002400,11.0000000,0.0000000,0.0000000,0.0000000); //object(vgncarshade1)(26)
    CreateObject(3458,1880.9000200,-1785.1003400,11.0000000,0.0000000,0.0000000,0.0000000); //object(vgncarshade1)(27)
    CreateObject(3458,1880.9000000,-1790.2004000,11.0000000,0.0000000,0.0000000,0.0000000); //object(vgncarshade1)(28)
    CreateObject(3458,1880.9004000,-1795.3008000,11.0000000,0.0000000,0.0000000,0.0000000); //object(vgncarshade1)(29)
    CreateObject(3458,1880.9000200,-1800.4006300,11.0000000,0.0000000,0.0000000,0.0000000); //object(vgncarshade1)(30)
    CreateObject(3458,1880.9004000,-1805.5010000,11.0000000,0.0000000,0.0000000,0.0000000); //object(vgncarshade1)(31)
    CreateObject(3458,1851.7998000,-1774.9004000,11.0000000,0.0000000,0.0000000,0.0000000); //object(vgncarshade1)(32)
    CreateObject(3458,1858.0000000,-1804.9000000,11.0000000,0.0000000,0.0000000,346.2500000); //object(vgncarshade1)(33)
    CreateObject(3458,1882.3000000,-1810.8000000,11.0000000,0.0000000,0.0000000,346.2450000); //object(vgncarshade1)(35)
    CreateObject(3458,1883.1000000,-1805.8000000,11.0000000,0.0000000,0.0000000,346.2450000); //object(vgncarshade1)(36)
    CreateObject(9683,2997.3999000,-781.7999900,-11.5000000,0.0000000,0.0000000,268.0000000); //object(ggbrig_07_sfw)(1)
    CreateObject(9685,3142.3999000,-786.7000100,66.8000000,359.0000000,0.0000000,268.0000000); //object(ggbrig_02_sfw)(1)
    CreateObject(7072,1809.1000000,-1797.4000000,30.7000000,0.0000000,0.0000000,0.0000000); //object(vegascowboy3)(1)
    CreateObject(5992,1809.5000000,-1778.3000000,33.2000000,0.0000000,0.0000000,268.7500000); //object(ltsreg01_lawn)(1)
    CreateObject(5990,1804.6000000,-1764.4000000,33.3000000,0.0000000,0.0000000,0.0000000); //object(ltseld01_lawn)(1)
    CreateObject(9694,3210.8000000,-793.7999900,-0.3000000,0.0000000,0.0000000,268.0000000); //object(ggbrig_01_sfw)(1)
    CreateObject(9694,3210.0000000,-783.4000200,0.0000000,0.0000000,0.0000000,87.9970000); //object(ggbrig_01_sfw)(2)
    CreateObject(9694,3210.8000000,-793.7999900,-7.8000000,0.0000000,0.0000000,267.9950000); //object(ggbrig_01_sfw)(3)
    CreateObject(9694,3210.0000000,-783.4000200,-7.3000000,0.0000000,0.0000000,87.9950000); //object(ggbrig_01_sfw)(4)
    CreateObject(14783,1792.8000000,-1782.6000000,14.6000000,0.0000000,0.0000000,0.0000000); //object(int3int_kbsgarage)(1)
    CreateObject(4019,1777.8359000,-1773.9062000,12.5234400,0.0000000,0.0000000,0.0000000); //object(newbuildsm01)(2)
    CreateObject(7921,1833.3000000,-1763.4000000,13.7000000,0.0000000,0.0000000,90.0000000); //object(vgwstnewall6904)(1)
    CreateObject(8656,1832.2000000,-1783.6000000,13.7000000,0.0000000,0.0000000,0.2500000); //object(shbbyhswall09_lvs)(1)
    CreateObject(8656,1832.2000000,-1779.7000000,13.7000000,0.0000000,0.0000000,0.2470000); //object(shbbyhswall09_lvs)(2)
    CreateObject(8656,1832.2000000,-1783.6000000,16.0000000,0.0000000,180.0000000,180.2500000); //object(shbbyhswall09_lvs)(3)
    CreateObject(7921,1833.3000000,-1763.4000000,16.0000000,0.0000000,0.0000000,90.0000000); //object(vgwstnewall6904)(3)
    CreateObject(8656,1832.2000000,-1779.7000000,16.1000000,0.0000000,179.9950000,180.2470000); //object(shbbyhswall09_lvs)(6)
    CreateObject(8656,1832.2000000,-1779.7000000,15.9000000,0.0000000,179.9950000,180.2470000); //object(shbbyhswall09_lvs)(7)
    CreateObject(8656,1850.2000000,-1762.8000000,13.7000000,0.0000000,0.0000000,270.2470000); //object(shbbyhswall09_lvs)(8)
    CreateObject(8656,1885.3000000,-1762.9000000,13.7000000,0.0000000,0.0000000,270.2470000); //object(shbbyhswall09_lvs)(9)
    CreateObject(8656,1850.2000000,-1762.8000000,15.9000000,0.0000000,180.0000000,90.2470000); //object(shbbyhswall09_lvs)(10)
    CreateObject(3458,1883.7000000,-1804.2000000,11.0000000,0.0000000,0.0000000,346.2400000); //object(vgncarshade1)(2)
    CreateObject(3458,1883.4000000,-1804.9000000,11.0000000,0.0000000,0.0000000,346.2400000); //object(vgncarshade1)(5)
    CreateObject(3458,1882.8000000,-1806.5000000,11.0000000,0.0000000,0.0000000,346.2400000); //object(vgncarshade1)(7)
    CreateObject(3458,1882.1000000,-1808.4000000,11.0000000,0.0000000,0.0000000,346.2400000); //object(vgncarshade1)(8)
    CreateObject(3458,1881.6000000,-1809.6000000,11.0000000,0.0000000,0.0000000,346.2400000); //object(vgncarshade1)(9)
    CreateObject(3458,1881.3000000,-1810.3000000,11.0000000,0.0000000,0.0000000,346.2400000); //object(vgncarshade1)(10)
    CreateObject(3458,1881.2998000,-1810.2998000,11.0000000,0.0000000,0.0000000,346.2400000); //object(vgncarshade1)(11)
    CreateObject(3437,1810.2000000,-1743.7001000,13.1000000,0.0000000,0.0000000,90.0000000); //object(ballypllr01_lvs)(1)
    CreateObject(3437,1810.2000000,-1743.7000000,24.9000000,0.0000000,0.0000000,90.0000000); //object(ballypllr01_lvs)(2)
    CreateObject(3437,1810.2000000,-1743.7000000,36.7000000,0.0000000,0.0000000,90.0000000); //object(ballypllr01_lvs)(3)
    CreateObject(3437,1810.2000000,-1743.7000000,48.2000000,0.0000000,0.0000000,90.0000000); //object(ballypllr01_lvs)(4)
    CreateObject(3437,1728.5000000,-1742.8000000,18.4000000,0.0000000,0.0000000,90.0000000); //object(ballypllr01_lvs)(5)
    CreateObject(3437,1673.7000000,-1720.6000000,13.4000000,0.0000000,0.0000000,90.0000000); //object(ballypllr01_lvs)(6)
    CreateObject(3437,1702.2000000,-1743.6000000,18.4000000,0.0000000,0.0000000,90.0000000); //object(ballypllr01_lvs)(7)
    CreateObject(3437,1543.1000000,-1712.6000000,19.3000000,0.0000000,0.0000000,90.0000000); //object(ballypllr01_lvs)(8)
    CreateObject(3437,1543.1000000,-1639.2000000,18.8000000,0.0000000,0.0000000,90.0000000); //object(ballypllr01_lvs)(9)
    CreateObject(3437,1323.8000000,-1721.9000000,18.4000000,0.0000000,0.0000000,2.0000000); //object(ballypllr01_lvs)(10)
    CreateObject(3437,1375.2000000,-1742.5000000,15.6000000,0.0000000,0.0000000,90.0000000); //object(ballypllr01_lvs)(11)
    CreateObject(3437,1368.9000000,-1386.1000000,18.6000000,0.0000000,0.0000000,360.0000000); //object(ballypllr01_lvs)(12)
    CreateObject(3437,1331.2000000,-1270.1000000,15.7000000,0.0000000,0.0000000,29.9950000); //object(ballypllr01_lvs)(13)
    CreateObject(8656,1885.3000000,-1762.9000000,15.9000000,0.0000000,180.0000000,90.2470000); //object(shbbyhswall09_lvs)(11)
    CreateObject(7921,1899.8000000,-1763.9000000,13.9000000,0.0000000,0.0000000,0.0000000); //object(vgwstnewall6904)(4)
    CreateObject(7921,1899.8000000,-1763.9000000,16.6000000,0.0000000,0.0000000,0.0000000); //object(vgwstnewall6904)(5)
    CreateObject(8656,1900.5000000,-1780.7002000,13.7000000,0.0000000,0.0000000,180.2420000); //object(shbbyhswall09_lvs)(12)
    CreateObject(8656,1900.6000000,-1802.6000000,13.7000000,0.0000000,0.0000000,180.2420000); //object(shbbyhswall09_lvs)(13)
    CreateObject(7586,1543.4000000,-1355.8000000,334.8999900,0.0000000,0.0000000,0.0000000); //object(miragebuild07)(1)
    CreateObject(8656,1900.5000000,-1780.7002000,15.9000000,0.0000000,179.9950000,0.2420000); //object(shbbyhswall09_lvs)(14)
    CreateObject(8656,1900.6000000,-1802.6000000,16.0000000,0.0000000,180.0000000,0.2420000); //object(shbbyhswall09_lvs)(15)
    CreateObject(7921,1899.8000000,-1816.8000000,14.0000000,0.0000000,0.0000000,258.0000000); //object(vgwstnewall6904)(6)
    CreateObject(7921,1899.8000000,-1816.8000000,16.4000000,0.0000000,0.0000000,257.9970000); //object(vgwstnewall6904)(7)
    CreateObject(8656,1900.5996000,-1802.5996000,13.7000000,0.0000000,0.0000000,180.2420000); //object(shbbyhswall09_lvs)(16)
    CreateObject(16132,1907.1000000,-1781.0000000,10.5000000,0.0000000,0.0000000,0.0000000); //object(dam_trellis01)(1)
    CreateObject(11558,1867.2000000,-1762.9000000,15.4000000,0.0000000,0.0000000,92.0000000); //object(cn_sta_grid_03)(1)
    CreateObject(16132,1825.1000000,-1784.8000000,11.0000000,0.0000000,0.0000000,180.0000000); //object(dam_trellis01)(2)
    CreateObject(7313,1779.4000000,-1721.1000000,18.9000000,0.0000000,0.0000000,0.0000000); //object(vgsn_scrollsgn01)(1)
    CreateObject(7313,1719.6000000,-1741.5000000,18.3000000,0.0000000,0.0000000,180.0000000); //object(vgsn_scrollsgn01)(2)
    CreateObject(7313,1624.2000000,-1731.0000000,24.4000000,0.0000000,0.0000000,93.9950000); //object(vgsn_scrollsgn01)(3)
    CreateObject(7313,1589.7000000,-1730.4000000,24.1000000,0.0000000,0.0000000,267.9940000); //object(vgsn_scrollsgn01)(4)
    CreateObject(1323,1835.2000000,-1746.9000000,14.0000000,0.0000000,0.0000000,0.0000000); //object(ws_roadwarning_03)(1)
    CreateObject(1323,1835.7000000,-1757.7000000,14.0000000,0.0000000,0.0000000,182.0000000); //object(ws_roadwarning_03)(2)
    CreateObject(2789,1969.1000000,-2189.3999000,14.1000000,0.0000000,0.0000000,180.0000000); //object(cj_depart_board)(1)
    CreateObject(6986,1413.4000000,-1662.6000000,30.3000000,0.0000000,0.0000000,0.0000000); //object(vgngamblsign1)(1)
    CreateObject(10236,1412.8000000,-1656.7000000,28.1000000,0.0000000,0.0000000,268.0000000); //object(hotelbits_sfe06)(1)
    CreateObject(10763,1828.2002000,-2414.2998000,45.3000000,0.0000000,0.0000000,39.9960000); //object(controltower_sfse)(1)
    CreateObject(1214,1825.3000000,-2433.6001000,12.4000000,0.0000000,0.0000000,0.0000000); //object(bollard)(1)
    CreateObject(1214,1817.9000000,-2432.8999000,12.6000000,0.0000000,0.0000000,0.0000000); //object(bollard)(2)
    CreateObject(1214,1852.7000000,-2435.8999000,12.7000000,0.0000000,0.0000000,0.0000000); //object(bollard)(3)
    CreateObject(1214,1845.2002000,-2435.2998000,12.6000000,0.0000000,0.0000000,0.0000000); //object(bollard)(4)
    CreateObject(10763,1416.1000000,-2476.5000000,-30.7000000,0.0000000,0.0000000,39.9960000); //object(controltower_sfse)(2)
    CreateObject(10763,1415.8000000,-2476.3000000,-30.7000000,0.0000000,0.0000000,39.9960000); //object(controltower_sfse)(3)
    CreateObject(10763,1415.8000000,-2473.2000000,-30.7000000,0.0000000,0.0000000,39.9960000); //object(controltower_sfse)(4)
    CreateObject(10763,1415.7998000,-2473.2002000,-30.7000000,0.0000000,0.0000000,39.9960000); //object(controltower_sfse)(5)
    CreateObject(10763,1415.7000000,-2468.6001000,-30.7000000,0.0000000,0.0000000,39.9960000); //object(controltower_sfse)(6)
    CreateObject(10763,1415.7002000,-2468.5996000,-30.7000000,0.0000000,0.0000000,39.9960000); //object(controltower_sfse)(7)
    CreateObject(10763,1416.1000000,-2480.6001000,-30.7000000,0.0000000,0.0000000,39.9960000); //object(controltower_sfse)(8)
    CreateObject(10763,1416.0996000,-2480.5996000,-30.7000000,0.0000000,0.0000000,39.9960000); //object(controltower_sfse)(9)
    CreateObject(10763,1416.0000000,-2484.3999000,-30.7000000,0.0000000,0.0000000,39.9960000); //object(controltower_sfse)(10)
    CreateObject(10763,1416.0000000,-2484.3994000,-30.7000000,0.0000000,0.0000000,39.9960000); //object(controltower_sfse)(11)
    CreateObject(10763,1415.9000000,-2488.3999000,-30.7000000,0.0000000,0.0000000,39.9960000); //object(controltower_sfse)(12)
    CreateObject(10763,1415.9004000,-2488.3994000,-30.7000000,0.0000000,0.0000000,39.9960000); //object(controltower_sfse)(13)
    CreateObject(10763,1416.1000000,-2492.2000000,-30.7000000,0.0000000,0.0000000,39.9960000); //object(controltower_sfse)(14)
    CreateObject(10763,1416.0996000,-2492.2002000,-30.7000000,0.0000000,0.0000000,39.9960000); //object(controltower_sfse)(15)
    CreateObject(10763,1416.2000000,-2494.7000000,-30.7000000,0.0000000,0.0000000,39.9960000); //object(controltower_sfse)(16)
    CreateObject(10763,1416.3000000,-2497.2000000,-30.7000000,0.0000000,0.0000000,39.9960000); //object(controltower_sfse)(17)
    CreateObject(10763,1416.2000000,-2494.7000000,-30.7000000,0.0000000,0.0000000,39.9960000); //object(controltower_sfse)(18)
    CreateObject(10763,1416.3000000,-2497.2000000,-30.7000000,0.0000000,0.0000000,39.9960000); //object(controltower_sfse)(19)
    CreateObject(10763,1416.4000000,-2500.0000000,-30.7000000,0.0000000,0.0000000,39.9960000); //object(controltower_sfse)(20)
    CreateObject(10763,1416.4004000,-2500.0000000,-30.7000000,0.0000000,0.0000000,39.9960000); //object(controltower_sfse)(21)
    CreateObject(10763,1416.2000000,-2500.0000000,-30.7000000,0.0000000,0.0000000,39.9960000); //object(controltower_sfse)(22)
    CreateObject(10763,1415.7000000,-2486.3999000,-30.7000000,0.0000000,0.0000000,39.9960000); //object(controltower_sfse)(23)
    CreateObject(10763,1415.7002000,-2486.3994000,-30.7000000,0.0000000,0.0000000,39.9960000); //object(controltower_sfse)(24)
    CreateObject(10763,1416.0000000,-2490.1001000,-30.7000000,0.0000000,0.0000000,39.9960000); //object(controltower_sfse)(25)
    CreateObject(10763,1416.0000000,-2490.0996000,-30.7000000,0.0000000,0.0000000,39.9960000); //object(controltower_sfse)(26)
    CreateObject(10763,1416.1000000,-2482.6001000,-30.7000000,0.0000000,0.0000000,39.9960000); //object(controltower_sfse)(27)
    CreateObject(10763,1416.0996000,-2482.5996000,-30.7000000,0.0000000,0.0000000,39.9960000); //object(controltower_sfse)(28)
    CreateObject(10763,1416.3000000,-2478.6001000,-30.7000000,0.0000000,0.0000000,39.9960000); //object(controltower_sfse)(29)
    CreateObject(10763,1416.2998000,-2478.5996000,-30.7000000,0.0000000,0.0000000,39.9960000); //object(controltower_sfse)(30)
    CreateObject(10763,1416.0000000,-2474.8999000,-30.7000000,0.0000000,0.0000000,39.9960000); //object(controltower_sfse)(31)
    CreateObject(10763,1416.0000000,-2474.8994000,-30.7000000,0.0000000,0.0000000,39.9960000); //object(controltower_sfse)(32)
    CreateObject(10763,1415.7000000,-2471.3999000,-30.7000000,0.0000000,0.0000000,39.9960000); //object(controltower_sfse)(33)
    CreateObject(10763,1415.7002000,-2471.3994000,-30.7000000,0.0000000,0.0000000,39.9960000); //object(controltower_sfse)(34)
    CreateObject(10763,1415.7002000,-2471.3994000,-30.7000000,0.0000000,0.0000000,39.9960000); //object(controltower_sfse)(35)
    CreateObject(9127,1555.0000000,-2635.3999000,12.9000000,0.0000000,0.0000000,28.0000000); //object(cmtneon02)(1)
    CreateObject(9127,1502.8000000,-2634.8999000,12.9000000,0.0000000,0.0000000,27.9990000); //object(cmtneon02)(2)
    CreateObject(9127,1450.6000000,-2633.1001000,12.9000000,0.0000000,0.0000000,27.9990000); //object(cmtneon02)(3)
    CreateObject(5990,1850.0000000,-2430.3000000,19.5000000,0.0000000,0.0000000,264.0000000); //object(ltseld01_lawn)(2)
    CreateObject(5990,1823.6000000,-2428.2000000,19.5000000,0.0000000,0.0000000,263.9960000); //object(ltseld01_lawn)(3)
    CreateObject(9125,1633.5000000,-2284.7000000,12.1000000,0.0000000,0.0000000,0.0000000); //object(lxorneon)(1)
    CreateObject(3971,1583.2000000,-2586.3000000,-30.2000000,0.0000000,0.0000000,0.0000000); //object(cj_bag_reclaim)(1)
    CreateObject(1683,1880.3000000,-2374.8999000,17.8000000,0.0000000,0.0000000,0.0000000); //object(ap_jumbo_01)(1)
    CreateObject(1683,776.4000200,-1963.9000000,197.8999900,0.0000000,0.0000000,0.0000000); //object(ap_jumbo_01)(2)
    CreateObject(1683,1109.5000000,-2247.8994000,210.5000000,0.0000000,0.0000000,0.0000000); //object(ap_jumbo_01)(3)
    CreateObject(1681,1878.7000000,-2423.7000000,15.5000000,0.0000000,0.0000000,266.0000000); //object(ap_learjet1_01)(1)
    CreateObject(3663,1899.7000000,-2381.8000000,14.6000000,0.0000000,0.0000000,270.0000000); //object(lasstepsa_las)(2)
    CreateObject(1681,1247.0000000,-2524.3000000,116.9000000,0.0000000,0.0000000,265.9950000); //object(ap_learjet1_01)(2)
    CreateObject(1681,779.2000100,-1526.3000000,110.4000000,0.0000000,0.0000000,265.9950000); //object(ap_learjet1_01)(3)
    CreateObject(13725,2896.8000000,-268.6000100,-1.0000000,0.0000000,0.0000000,83.8610000); //object(opmans01_cunte)(1)
    CreateObject(2792,1802.9000000,-2409.3000000,36.4000000,0.0000000,0.0000000,0.0000000); //object(cj_air_d_1)(1)
    CreateObject(2792,1767.0000000,-2431.5000000,18.8000000,0.0000000,0.0000000,0.0000000); //object(cj_air_d_1)(2)
    CreateObject(2793,1685.5000000,-2431.5000000,19.0000000,0.0000000,0.0000000,0.0000000); //object(cj_air_d_2)(1)
    CreateObject(2793,1685.5000000,-2431.5000000,19.0000000,0.0000000,0.0000000,0.0000000); //object(cj_air_d_2)(2)
    CreateObject(2794,1606.6000000,-2431.5000000,19.3000000,0.0000000,0.0000000,0.0000000); //object(cj_air_d_3)(1)
    CreateObject(2795,1525.5000000,-2431.5000000,18.5000000,0.0000000,0.0000000,0.0000000); //object(cj_air_d_4)(1)
    CreateObject(2797,1658.7000000,-2335.8999000,16.1000000,0.0000000,0.0000000,0.0000000); //object(cj_air_d_5)(1)
    CreateObject(7313,166.8000000,116.1000000,471.5000000,0.0000000,0.0000000,0.0000000); //object(vgsn_scrollsgn01)(5)
    CreateObject(3073,2456.7000000,-2507.8999000,14.3000000,0.0000000,0.0000000,0.0000000); //object(kmb_container_broke)(1)
    CreateObject(3092,2456.8000000,-2504.8000000,13.6000000,0.0000000,0.0000000,184.0000000); //object(dead_tied_cop)(1)
    CreateObject(14881,2515.8000000,-2640.3000000,8.6000000,0.0000000,0.0000000,0.0000000); //object(barbara-cop)(1)
    return 1;
    }

    Spoiler anzeigen
    public OnGameModeExit()
    {
    return 1;
    }

    Spoiler anzeigen
    public OnPlayerRequestClass(playerid, classid)
    {
    SetPlayerSkin(playerid, 61);
    SetPlayerPos(playerid, 1835.1000000,-2438.5000000,13.2000000);
    SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
    return 1;
    }

    Spoiler anzeigen
    public OnPlayerConnect(playerid)
    {
    SendClientMessage(playerid, 0x00FF00FF, "Serverdaten werden Abgerufen.");
    ShowPlayerDialog(playerid,REGISTER2,DIALOG_STYLE_INPUT,"Registrieren","Bitte schreibe in die untere Box ein Passwort.","Weiter","Abbrechen");
    return 1;
    }

    Spoiler anzeigen
    public OnPlayerDisconnect(playerid, reason)
    {
    return 1;
    }

    Spoiler anzeigen
    public OnPlayerSpawn(playerid)
    {
    return 1;

    Spoiler anzeigen
    public OnPlayerDeath(playerid, killerid, reason)
    {
    return 1;
    }

    Spoiler anzeigen
    public OnVehicleSpawn(vehicleid)
    {
    return 1;
    }

    Spoiler anzeigen
    public OnVehicleDeath(vehicleid, killerid)
    {
    return 1;
    }

    Spoiler anzeigen
    public OnPlayerText(playerid, text[])
    {
    return 1;
    }

    Spoiler anzeigen
    public OnPlayerCommandText(playerid, cmdtext[])
    {
    //setskins
    /*
    Feuerwehr
    */
    if (strcmp("/feuerwehr", cmdtext, true, 10) == 0)
    {
    SetPlayerSkin(playerid, 278);
    SetPlayerPos(playerid, 1820.7479,-2396.2224,13.5547);
    return 1;
    }
    /*
    Polizist
    */
    if (strcmp("/polizei", cmdtext, true, 10) == 0)
    {
    SetPlayerSkin(playerid, 280);
    SetPlayerPos(playerid, 1820.7479,-2396.2224,13.5547);
    return 1;
    }
    /*
    Arzt
    */
    if (strcmp("/arzt", cmdtext, true, 10) == 0)
    {
    SetPlayerSkin(playerid, 274);
    SetPlayerPos(playerid, 1820.7479,-2396.2224,13.5547);
    return 1;
    }
    /*
    Mechaniker
    */
    if (strcmp("/mechaniker", cmdtext, true, 10) == 0)
    {
    SetPlayerSkin(playerid, 278);
    SetPlayerPos(playerid, 1835.1000000,-2438.5000000,13.2000000);
    return 1;
    }
    /*
    Pilot
    */
    if (strcmp("/pilot", cmdtext, true, 10) == 0)
    {
    SetPlayerSkin(playerid, 61);
    SetPlayerPos(playerid, 1826.1917,-2423.4114,13.5547);
    return 1;
    }
    /*
    Zivilist
    */
    if (strcmp("/zivi", cmdtext, true, 10) == 0)
    {
    SetPlayerSkin(playerid, 120);
    SetPlayerPos(playerid, 1364.2247,-1648.7816,13.3828);
    return 1;
    }

    Spoiler anzeigen
    //reclass
    if (strcmp("/reclass", cmdtext, true, 10) == 0)
    {
    SendClientMessage(playerid, 0x00FF00FF, "/pilot /feuerwehr /polizei /arzt /mechaniker /zivi ");
    return 1;
    }
    //Befehle
    if (strcmp("/befehle", cmdtext, true, 10) == 0)
    {
    SendClientMessage(playerid, 0x00FF00FF, "Allgemein: /arbeiten /kontrolle /zoll /stoparbeiten.");
    SendClientMessage(playerid, 0x00FF00FF, " /support /help /kill /reclass <--- Anderen beruf wählen");
    return 1;
    }
    return 0;
    }

    Spoiler anzeigen
    public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
    {
    return 1;
    }

    Spoiler anzeigen
    public OnPlayerExitVehicle(playerid, vehicleid)
    {
    return 1;
    }

    Spoiler anzeigen
    public OnPlayerStateChange(playerid, newstate, oldstate)
    {
    return 1;
    }

    Spoiler anzeigen
    public OnPlayerEnterCheckpoint(playerid)
    {
    return 1;
    }

    Spoiler anzeigen
    public OnPlayerLeaveCheckpoint(playerid)
    {
    return 1;
    }

    Spoiler anzeigen
    public OnPlayerEnterRaceCheckpoint(playerid)
    {
    return 1;
    }

    Spoiler anzeigen
    public OnPlayerLeaveRaceCheckpoint(playerid)
    {
    return 1;
    }

    Spoiler anzeigen
    public OnRconCommand(cmd[])
    {
    return 1;
    }

    Spoiler anzeigen
    public OnPlayerRequestSpawn(playerid)
    {
    SendClientMessage(playerid, 0x00FF00FF, "Willkommen auf Pilot's Life (German).");
    SendClientMessage(playerid, 0x00FF00FF, "Tippe /befehle um die befehle zu sehen");
    SendClientMessage(playerid, 0x00FF00FF, "Tippe /hilfe um hilfe zu beckommen");
    SendClientMessage(playerid, 0x00FF00FF, "Tippe /support wenn du fragen hast.");
    return 1;
    }

    Spoiler anzeigen
    public OnObjectMoved(objectid)
    {
    return 1;
    }

    Spoiler anzeigen
    public OnPlayerObjectMoved(playerid, objectid)
    {
    return 1;
    }

    Spoiler anzeigen
    public OnPlayerPickUpPickup(playerid, pickupid)
    {
    return 1;
    }

    Spoiler anzeigen
    public OnVehicleMod(playerid, vehicleid, componentid)
    {
    return 1;
    }

    Spoiler anzeigen
    public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
    {
    return 1;
    }

    Spoiler anzeigen
    public OnVehicleRespray(playerid, vehicleid, color1, color2)
    {
    return 1;
    }

    Spoiler anzeigen
    public OnPlayerSelectedMenuRow(playerid, row)
    {
    return 1;
    }

    Spoiler anzeigen
    public OnPlayerExitedMenu(playerid)
    {
    return 1;
    }

    Spoiler anzeigen
    public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
    {
    return 1;
    }

    Spoiler anzeigen
    public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
    {
    return 1;
    }

    Spoiler anzeigen
    public OnRconLoginAttempt(ip[], password[], success)
    {
    return 1;
    }

    Spoiler anzeigen
    public OnPlayerUpdate(playerid)
    {
    return 1;
    }

    Spoiler anzeigen
    public OnPlayerStreamIn(playerid, forplayerid)
    {
    return 1;
    }

    Spoiler anzeigen
    public OnPlayerStreamOut(playerid, forplayerid)
    {
    return 1;
    }

    Spoiler anzeigen
    public OnVehicleStreamIn(vehicleid, forplayerid)
    {
    return 1;
    }

    Spoiler anzeigen
    public OnVehicleStreamOut(vehicleid, forplayerid)
    {
    return 1;
    }

    Spoiler anzeigen
    public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
    {
    return 1;
    }

    Spoiler anzeigen
    public OnPlayerClickPlayer(playerid, clickedplayerid, source)
    {
    return 1;
    }

  • Schreibe das callback so:
    public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
    {
    if(dialogid == REGISTER)
    {
    if(response == 0)
    {
    Kick(playerid);
    return 1;
    }
    if(response == 1)
    {
    if(strlen(inputtext) == 0)
    {
    ShowPlayerDialog(playerid,REGISTER,DIALOG_STYLE_INPUT,"Fehler","Du musst schon ein passowort eingeben","Weiter","Abbrechen");
    }
    else Register(playerid,inputtext);
    return 1;
    }
    }
    return 1;
    }


    Die zwei "is never used" Warnungen sind weg, sobald du in deinem Register stock etwas damit anfängst.

    3HZXdYd.png

    Einmal editiert, zuletzt von Jeffry ()

  • if(response == 1)
    {
    if(strlen(inputtext) == 0)
    {
    ShowPlayerDialog(playerid,REGISTER,DIALOG_STYLE_INPUT,"Fehler","Du musst schon ein passowort eingeben","Weiter","Abbrechen");
    }
    Register(playerid,inputtext);
    return 1;
    }
    Jeffry: Fehlt da nicht noch ein return? Wenn der Dialog kommt, wird doch auch Register ausgeführt :D