Ich bin neu im Scripten (MAPPING) filterscripts

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
  • ?( ich weiß nicht wo mein fehler liegt ich habe eine base gemacht bzw. Props entfernt und was kommt (Pawno) :


    Script : // This is a comment
    // uncomment the line below if you want to write a filterscript
    //#define FILTERSCRIPT


    #include <a_samp>
    #if defined FILTERSCRIPT


    public OnFilterScriptInit()
    {
    print("\n--------------------------------------");
    print(" Blank Filterscript by your name here");
    print("--------------------------------------\n");
    return 1;
    }


    public OnFilterScriptExit()
    {
    return 1;
    }


    #else


    main()
    {
    print("\n----------------------------------");
    print(" Blank Gamemode by your name here");
    print("----------------------------------\n");
    }


    #endif


    public OnGameModeInit()
    {
    RemoveBuildingForPlayer(playerid, 17770, 2485.9063, -1639.3281, 16.9531, 0.25);
    RemoveBuildingForPlayer(playerid, 3654, 2517.4766, -1644.6953, 15.1953, 0.25);
    RemoveBuildingForPlayer(playerid, 3592, 2498.3047, -1638.3281, 15.1797, 0.25);
    RemoveBuildingForPlayer(playerid, 1410, 2487.3984, -1688.1016, 13.2813, 0.25);
    RemoveBuildingForPlayer(playerid, 1265, 2488.8047, -1684.7891, 12.8125, 0.25);
    RemoveBuildingForPlayer(playerid, 1410, 2491.8984, -1688.1016, 13.2813, 0.25);
    RemoveBuildingForPlayer(playerid, 1410, 2498.6719, -1688.2344, 13.2813, 0.25);
    RemoveBuildingForPlayer(playerid, 1265, 2491.2344, -1653.9609, 12.9219, 0.25);
    RemoveBuildingForPlayer(playerid, 1308, 2491.8984, -1647.8984, 12.7500, 0.25);
    RemoveBuildingForPlayer(playerid, 1230, 2492.2656, -1653.9922, 12.8984, 0.25);
    RemoveBuildingForPlayer(playerid, 3589, 2498.3047, -1638.3281, 15.1797, 0.25);
    RemoveBuildingForPlayer(playerid, 1211, 2495.2656, -1653.6719, 12.9141, 0.25);
    RemoveBuildingForPlayer(playerid, 1265, 2505.6719, -1658.9063, 12.8125, 0.25);
    RemoveBuildingForPlayer(playerid, 1265, 2510.9219, -1656.1328, 12.8125, 0.25);
    RemoveBuildingForPlayer(playerid, 1211, 2505.6641, -1657.9375, 12.9219, 0.25);
    RemoveBuildingForPlayer(playerid, 1410, 2511.5000, -1654.1563, 13.4922, 0.25);
    RemoveBuildingForPlayer(playerid, 1410, 2509.0156, -1652.1719, 13.4922, 0.25);
    RemoveBuildingForPlayer(playerid, 1230, 2501.9297, -1650.5078, 12.9141, 0.25);
    RemoveBuildingForPlayer(playerid, 1468, 2505.1094, -1646.0391, 13.9141, 0.25);
    RemoveBuildingForPlayer(playerid, 1410, 2509.1719, -1648.7031, 13.4922, 0.25);
    RemoveBuildingForPlayer(playerid, 760, 2507.5859, -1646.5547, 12.5313, 0.25);
    RemoveBuildingForPlayer(playerid, 760, 2501.7500, -1645.5000, 12.2969, 0.25);
    RemoveBuildingForPlayer(playerid, 620, 2508.8672, -1634.4922, 11.9063, 0.25);
    RemoveBuildingForPlayer(playerid, 762, 2508.4141, -1635.4375, 11.7500, 0.25);
    RemoveBuildingForPlayer(playerid, 3594, 2514.3906, -1658.6016, 13.1406, 0.25);
    RemoveBuildingForPlayer(playerid, 760, 2517.0938, -1656.0703, 13.0625, 0.25);
    RemoveBuildingForPlayer(playerid, 645, 2518.6484, -1655.5234, 12.9922, 0.25);
    RemoveBuildingForPlayer(playerid, 1468, 2520.6016, -1652.5938, 13.8125, 0.25);
    RemoveBuildingForPlayer(playerid, 1410, 2514.7344, -1654.1875, 13.7734, 0.25);
    RemoveBuildingForPlayer(playerid, 760, 2521.6953, -1653.0391, 13.2109, 0.25);
    RemoveBuildingForPlayer(playerid, 1468, 2524.4063, -1648.8516, 13.8125, 0.25);
    RemoveBuildingForPlayer(playerid, 3649, 2517.4766, -1644.6953, 15.1953, 0.25);
    RemoveBuildingForPlayer(playerid, 669, 2530.4766, -1636.7031, 12.3047, 0.25);
    RemoveBuildingForPlayer(playerid, 762, 2446.5547, -1681.0703, 12.3828, 0.25);
    RemoveBuildingForPlayer(playerid, 1468, 2468.3516, -1680.9844, 13.8125, 0.25);
    RemoveBuildingForPlayer(playerid, 3593, 2457.8672, -1679.6719, 12.9453, 0.25);
    RemoveBuildingForPlayer(playerid, 1468, 2465.6953, -1676.4453, 13.8125, 0.25);
    RemoveBuildingForPlayer(playerid, 1468, 2463.8672, -1671.5156, 13.8125, 0.25);
    RemoveBuildingForPlayer(playerid, 17879, 2484.5313, -1667.6094, 21.4375, 0.25);
    RemoveBuildingForPlayer(playerid, 1226, 2456.3672, -1662.8828, 16.4297, 0.25);
    RemoveBuildingForPlayer(playerid, 1230, 2453.9609, -1653.6953, 12.6797, 0.25);
    RemoveBuildingForPlayer(playerid, 1230, 2475.0000, -1653.6094, 12.7891, 0.25);
    RemoveBuildingForPlayer(playerid, 1498, 2485.6797, -1644.1094, 13.2578, 0.25);
    RemoveBuildingForPlayer(playerid, 17699, 2485.9063, -1639.3281, 16.9531, 0.25);


    return 1;
    }


    public OnGameModeExit()
    {
    return 1;
    }





    Fehler :





    C:\Users\Anwender\Desktop\ALLE ORDNER\D____s\Grand Theft Auto San Andreas\samp037_svr_R2-1-1_win32 (2)\filterscripts\Removed_Props.pwn(34) : error 017: undefined symbol "playerid"
    C:\Users\Anwender\Desktop\ALLE ORDNER\D____s\Grand Theft Auto San Andreas\samp037_svr_R2-1-1_win32 (2)\filterscripts\Removed_Props.pwn(35) : error 017: undefined symbol "playerid"
    C:\Users\Anwender\Desktop\ALLE ORDNER\D____s\Grand Theft Auto San Andreas\samp037_svr_R2-1-1_win32 (2)\filterscripts\Removed_Props.pwn(36) : error 017: undefined symbol "playerid"
    C:\Users\Anwender\Desktop\ALLE ORDNER\D____s\Grand Theft Auto San Andreas\samp037_svr_R2-1-1_win32 (2)\filterscripts\Removed_Props.pwn(37) : error 017: undefined symbol "playerid"
    C:\Users\Anwender\Desktop\ALLE ORDNER\D____s\Grand Theft Auto San Andreas\samp037_svr_R2-1-1_win32 (2)\filterscripts\Removed_Props.pwn(38) : error 017: undefined symbol "playerid"
    C:\Users\Anwender\Desktop\ALLE ORDNER\D____s\Grand Theft Auto San Andreas\samp037_svr_R2-1-1_win32 (2)\filterscripts\Removed_Props.pwn(39) : error 017: undefined symbol "playerid"
    C:\Users\Anwender\Desktop\ALLE ORDNER\D____s\Grand Theft Auto San Andreas\samp037_svr_R2-1-1_win32 (2)\filterscripts\Removed_Props.pwn(40) : error 017: undefined symbol "playerid"
    C:\Users\Anwender\Desktop\ALLE ORDNER\D____s\Grand Theft Auto San Andreas\samp037_svr_R2-1-1_win32 (2)\filterscripts\Removed_Props.pwn(41) : error 017: undefined symbol "playerid"
    C:\Users\Anwender\Desktop\ALLE ORDNER\D____s\Grand Theft Auto San Andreas\samp037_svr_R2-1-1_win32 (2)\filterscripts\Removed_Props.pwn(42) : error 017: undefined symbol "playerid"
    C:\Users\Anwender\Desktop\ALLE ORDNER\D____s\Grand Theft Auto San Andreas\samp037_svr_R2-1-1_win32 (2)\filterscripts\Removed_Props.pwn(43) : error 017: undefined symbol "playerid"
    C:\Users\Anwender\Desktop\ALLE ORDNER\D____s\Grand Theft Auto San Andreas\samp037_svr_R2-1-1_win32 (2)\filterscripts\Removed_Props.pwn(44) : error 017: undefined symbol "playerid"
    C:\Users\Anwender\Desktop\ALLE ORDNER\D____s\Grand Theft Auto San Andreas\samp037_svr_R2-1-1_win32 (2)\filterscripts\Removed_Props.pwn(45) : error 017: undefined symbol "playerid"
    C:\Users\Anwender\Desktop\ALLE ORDNER\D____s\Grand Theft Auto San Andreas\samp037_svr_R2-1-1_win32 (2)\filterscripts\Removed_Props.pwn(46) : error 017: undefined symbol "playerid"
    C:\Users\Anwender\Desktop\ALLE ORDNER\D____s\Grand Theft Auto San Andreas\samp037_svr_R2-1-1_win32 (2)\filterscripts\Removed_Props.pwn(47) : error 017: undefined symbol "playerid"
    C:\Users\Anwender\Desktop\ALLE ORDNER\D____s\Grand Theft Auto San Andreas\samp037_svr_R2-1-1_win32 (2)\filterscripts\Removed_Props.pwn(48) : error 017: undefined symbol "playerid"
    C:\Users\Anwender\Desktop\ALLE ORDNER\D____s\Grand Theft Auto San Andreas\samp037_svr_R2-1-1_win32 (2)\filterscripts\Removed_Props.pwn(49) : error 017: undefined symbol "playerid"
    C:\Users\Anwender\Desktop\ALLE ORDNER\D____s\Grand Theft Auto San Andreas\samp037_svr_R2-1-1_win32 (2)\filterscripts\Removed_Props.pwn(50) : error 017: undefined symbol "playerid"
    C:\Users\Anwender\Desktop\ALLE ORDNER\D____s\Grand Theft Auto San Andreas\samp037_svr_R2-1-1_win32 (2)\filterscripts\Removed_Props.pwn(51) : error 017: undefined symbol "playerid"
    C:\Users\Anwender\Desktop\ALLE ORDNER\D____s\Grand Theft Auto San Andreas\samp037_svr_R2-1-1_win32 (2)\filterscripts\Removed_Props.pwn(52) : error 017: undefined symbol "playerid"
    C:\Users\Anwender\Desktop\ALLE ORDNER\D____s\Grand Theft Auto San Andreas\samp037_svr_R2-1-1_win32 (2)\filterscripts\Removed_Props.pwn(53) : error 017: undefined symbol "playerid"
    C:\Users\Anwender\Desktop\ALLE ORDNER\D____s\Grand Theft Auto San Andreas\samp037_svr_R2-1-1_win32 (2)\filterscripts\Removed_Props.pwn(54) : error 017: undefined symbol "playerid"
    C:\Users\Anwender\Desktop\ALLE ORDNER\D____s\Grand Theft Auto San Andreas\samp037_svr_R2-1-1_win32 (2)\filterscripts\Removed_Props.pwn(55) : error 017: undefined symbol "playerid"
    C:\Users\Anwender\Desktop\ALLE ORDNER\D____s\Grand Theft Auto San Andreas\samp037_svr_R2-1-1_win32 (2)\filterscripts\Removed_Props.pwn(56) : error 017: undefined symbol "playerid"
    C:\Users\Anwender\Desktop\ALLE ORDNER\D____s\Grand Theft Auto San Andreas\samp037_svr_R2-1-1_win32 (2)\filterscripts\Removed_Props.pwn(57) : error 017: undefined symbol "playerid"
    C:\Users\Anwender\Desktop\ALLE ORDNER\D____s\Grand Theft Auto San Andreas\samp037_svr_R2-1-1_win32 (2)\filterscripts\Removed_Props.pwn(58) : error 017: undefined symbol "playerid"
    C:\Users\Anwender\Desktop\ALLE ORDNER\D____s\Grand Theft Auto San Andreas\samp037_svr_R2-1-1_win32 (2)\filterscripts\Removed_Props.pwn(59) : error 017: undefined symbol "playerid"


    Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    26 Errors. :cursing: :pinch:


    Wo liegt denn das Problem Bitte um Hilfe
    und wenn ich mir Props Hinplatziere funktioniert alles

  • Alles von OnGameModeInit zu OnPlayerConnect verschieben :)


    So:



    public OnPlayerConnect(playerid)
    {
    RemoveBuildingForPlayer(playerid, 17770, 2485.9063, -1639.3281, 16.9531, 0.25);
    RemoveBuildingForPlayer(playerid, 3654, 2517.4766, -1644.6953, 15.1953, 0.25);
    RemoveBuildingForPlayer(playerid, 3592, 2498.3047, -1638.3281, 15.1797, 0.25);
    RemoveBuildingForPlayer(playerid, 1410, 2487.3984, -1688.1016, 13.2813, 0.25);
    RemoveBuildingForPlayer(playerid, 1265, 2488.8047, -1684.7891, 12.8125, 0.25);
    RemoveBuildingForPlayer(playerid, 1410, 2491.8984, -1688.1016, 13.2813, 0.25);
    RemoveBuildingForPlayer(playerid, 1410, 2498.6719, -1688.2344, 13.2813, 0.25);
    RemoveBuildingForPlayer(playerid, 1265, 2491.2344, -1653.9609, 12.9219, 0.25);
    RemoveBuildingForPlayer(playerid, 1308, 2491.8984, -1647.8984, 12.7500, 0.25);
    RemoveBuildingForPlayer(playerid, 1230, 2492.2656, -1653.9922, 12.8984, 0.25);
    RemoveBuildingForPlayer(playerid, 3589, 2498.3047, -1638.3281, 15.1797, 0.25);
    RemoveBuildingForPlayer(playerid, 1211, 2495.2656, -1653.6719, 12.9141, 0.25);
    RemoveBuildingForPlayer(playerid, 1265, 2505.6719, -1658.9063, 12.8125, 0.25);
    RemoveBuildingForPlayer(playerid, 1265, 2510.9219, -1656.1328, 12.8125, 0.25);
    RemoveBuildingForPlayer(playerid, 1211, 2505.6641, -1657.9375, 12.9219, 0.25);
    RemoveBuildingForPlayer(playerid, 1410, 2511.5000, -1654.1563, 13.4922, 0.25);
    RemoveBuildingForPlayer(playerid, 1410, 2509.0156, -1652.1719, 13.4922, 0.25);
    RemoveBuildingForPlayer(playerid, 1230, 2501.9297, -1650.5078, 12.9141, 0.25);
    RemoveBuildingForPlayer(playerid, 1468, 2505.1094, -1646.0391, 13.9141, 0.25);
    RemoveBuildingForPlayer(playerid, 1410, 2509.1719, -1648.7031, 13.4922, 0.25);
    RemoveBuildingForPlayer(playerid, 760, 2507.5859, -1646.5547, 12.5313, 0.25);
    RemoveBuildingForPlayer(playerid, 760, 2501.7500, -1645.5000, 12.2969, 0.25);
    RemoveBuildingForPlayer(playerid, 620, 2508.8672, -1634.4922, 11.9063, 0.25);
    RemoveBuildingForPlayer(playerid, 762, 2508.4141, -1635.4375, 11.7500, 0.25);
    RemoveBuildingForPlayer(playerid, 3594, 2514.3906, -1658.6016, 13.1406, 0.25);
    RemoveBuildingForPlayer(playerid, 760, 2517.0938, -1656.0703, 13.0625, 0.25);
    RemoveBuildingForPlayer(playerid, 645, 2518.6484, -1655.5234, 12.9922, 0.25);
    RemoveBuildingForPlayer(playerid, 1468, 2520.6016, -1652.5938, 13.8125, 0.25);
    RemoveBuildingForPlayer(playerid, 1410, 2514.7344, -1654.1875, 13.7734, 0.25);
    RemoveBuildingForPlayer(playerid, 760, 2521.6953, -1653.0391, 13.2109, 0.25);
    RemoveBuildingForPlayer(playerid, 1468, 2524.4063, -1648.8516, 13.8125, 0.25);
    RemoveBuildingForPlayer(playerid, 3649, 2517.4766, -1644.6953, 15.1953, 0.25);
    RemoveBuildingForPlayer(playerid, 669, 2530.4766, -1636.7031, 12.3047, 0.25);
    RemoveBuildingForPlayer(playerid, 762, 2446.5547, -1681.0703, 12.3828, 0.25);
    RemoveBuildingForPlayer(playerid, 1468, 2468.3516, -1680.9844, 13.8125, 0.25);
    RemoveBuildingForPlayer(playerid, 3593, 2457.8672, -1679.6719, 12.9453, 0.25);
    RemoveBuildingForPlayer(playerid, 1468, 2465.6953, -1676.4453, 13.8125, 0.25);
    RemoveBuildingForPlayer(playerid, 1468, 2463.8672, -1671.5156, 13.8125, 0.25);
    RemoveBuildingForPlayer(playerid, 17879, 2484.5313, -1667.6094, 21.4375, 0.25);
    RemoveBuildingForPlayer(playerid, 1226, 2456.3672, -1662.8828, 16.4297, 0.25);
    RemoveBuildingForPlayer(playerid, 1230, 2453.9609, -1653.6953, 12.6797, 0.25);
    RemoveBuildingForPlayer(playerid, 1230, 2475.0000, -1653.6094, 12.7891, 0.25);
    RemoveBuildingForPlayer(playerid, 1498, 2485.6797, -1644.1094, 13.2578, 0.25);
    RemoveBuildingForPlayer(playerid, 17699, 2485.9063, -1639.3281, 16.9531, 0.25);



    return 1;
    }


    Mit freundlichen Grüßen
    JustMe.77 8)