Pickup Problem

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
  • Hallo Leute,
    Ich hab ein kleines Scripting problem
    undzwar wollte ich ein pickup machen vorm BSN
    also das man in dem BSN nacher rein kann
    ist auch schon alles so eingestellt, aber nun
    kriege ich 2 Errors


    D:\.............\Tutorial.pwn(46) : error 017: undefined symbol "bsnenter"
    D:\.................\Tutorial.pwn(258) : error 017: undefined symbol "bsnenter"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    2 Errors.


    new bsnenter;


    bsnenter = CreatePickup(1239,1,1199.3143,-918.3618,43.1212);
    DisableInteriorEnterExits();


    public OnPlayerPickUpPickup(playerid, pickupid)
    {
    if(pickupid == bsnenter)
    {
    SetPlayerPos(playerid,375.962463,-65.816848,1001.507812);
    SetPlayerInterior(playerid,10);
    }
    return 1;
    }


    Kann mir da jemand vielleicht Helfen hab auch schon ein Tutorial Durch geguckt und alles so gemacht
    es hat i,wie trotzdem nicht so richtig gefunzt !!
    Bitte um Hilfe :D

  • #include <a_samp>
    #pragma tabsize 0


    #if defined FILTERSCRIPT
    #define COLOR_ROT 0xAA3333AA
    #define MAX_STRING 255
    #define COLOR_GREY 0xAFAFAFAA
    #define COLOR_GRÜN 0x33AA33AA
    #define COLOR_BRIGHTRED 0xFF0000AA
    #define COLOR_GELB 0xFFFF00AA
    #define COLOR_PINK 0xFF66FFAA
    #define COLOR_BLAU 0x3A47DEFF
    #define COLOR_TAN 0xBDB76BAA
    #define COLOR_PURPLE 0x800080AA
    #define COLOR_WEIß 0xFFFFFFAA
    #define COLOR_LIGHTBLUE 0x33CCFFAA
    #define COLOR_ORANGE 0xFF9900AA
    #define COLOR_INDIGO 0x4B00B0AA
    #define COLOR_SCHWARZ 0x00000000
    #define COLOR_DARKGREY 0x696969FF


    //-------------------NEW--------------------------------------
    new bsnenter;
    //----------------------FORWARD-------------------------------
    forward ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5);
    forward ProxDetectorS(Float:radi, playerid, targetid);
    //------------------------------------------------------------



    main()
    {
    print("\n----------------------------------");
    print(" Samp: Dm Script");
    print("----------------------------------\n");
    }


    #endif


    public OnGameModeInit()
    {
    SetNameTagDrawDistance(20.0);
    bsnenter = CreatePickup(1239,1,1199.3143,-918.3618,43.1212);



    DisableInteriorEnterExits();
    SetGameModeText("Deathmatch Arena 'LS'");
    AddPlayerClass(0,2015.4891,1106.1516,10.8203,214.6195,0,0,0,0,0,0); // Noobbspawn LV!!!!!!!!
    AddPlayerClass(28,2015.4891,1106.1516,10.8203,214.6195,20,200,16,500,28,500); // Noobbspawn LV!!!!!!!!
    AddPlayerClass(36,2015.4891,1106.1516,10.8203,214.6195,22,200,29,500,0,0); // Noobbspawn LV!!!!!!!!
    AddPlayerClass(32,2015.4891,1106.1516,10.8203,214.6195,22,200,29,500,0,0); // Noobbspawn LV!!!!!!!!
    AddPlayerClass(253,2015.4891,1106.1516,10.8203,214.6195,22,200,29,500,3,1); // Noobbspawn LV!!!!!!!!
    AddPlayerClass(175,2015.4891,1106.1516,10.8203,214.6195,22,200,29,500,15,250); // Noobbspawn LV!!!!!!!!
    AddPlayerClass(174,2015.4891,1106.1516,10.8203,214.6195,22,200,29,500,15,250); // Noobbspawn LV!!!!!!!!
    AddPlayerClass(173,2015.4891,1106.1516,10.8203,214.6195,22,200,29,500,15,250); // Noobbspawn LV!!!!!!!!
    AddPlayerClass(172,2015.4891,1106.1516,10.8203,214.6195,22,200,29,500,15,250); // Noobbspawn LV!!!!!!!!
    AddPlayerClass(31,2015.4891,1106.1516,10.8203,214.6195,22,200,29,500,0,0); // Noobbspawn LV!!!!!!!!
    AddPlayerClass(92,2015.4891,1106.1516,10.8203,214.6195,22,200,29,500,0,0); // Noobbspawn LV!!!!!!!!
    AddPlayerClass(16,2015.4891,1106.1516,10.8203,214.6195,22,200,29,500,0,0); // Noobbspawn LV!!!!!!!!
    AddPlayerClass(67,2015.4891,1106.1516,10.8203,214.6195,22,200,29,500,0,0); // Noobbspawn LV!!!!!!!!

    //---------------Fahrzeuge--------------

    AddStaticVehicle(404,2001.2410,1079.6884,10.5510,0.2020,123,92); // Autospawn 1 LV
    AddStaticVehicle(411,1992.3011,1079.1086,10.5436,359.9999,123,1); // Autospawn 2 LV
    AddStaticVehicle(429,1997.7181,1079.4852,10.5000,359.2204,14,14); // Autospawn 3 LV
    AddStaticVehicle(445,1988.5608,1078.8242,10.6915,0.8149,37,37); // Autospawn 4 LV
    AddStaticVehicle(451,2022.3789,1069.7214,10.5184,270.6433,36,36); // Autospawn 5 LV
    AddStaticVehicle(502,2026.4492,1059.2239,10.7058,179.9631,51,75); // Autospawn 6 LV
    AddStaticVehicle(516,2026.4261,1038.2368,10.6544,0.3161,122,1); // Autospawn 7 LV
    AddStaticVehicle(522,1994.8289,1079.0115,10.3940,358.5842,6,25); // Autospawn 8 LV

    //-----------------------------------------

    return 1;
    }


    public OnGameModeExit()
    {
    return 1;
    }


    public OnPlayerRequestClass(playerid, classid)
    {
    SetPlayerPos(playerid, 2015.4891,1106.1516,10.8203);
    SetPlayerFacingAngle(playerid,214.6195);
    SetPlayerCameraPos(playerid, 2017.4746,1103.1694,10.8203);
    SetPlayerCameraLookAt(playerid, 2015.4891,1106.1516,10.8203);
    return 1;
    }


    public OnPlayerConnect(playerid)
    {
    SendClientMessage(playerid,0x0000BBAA,"Willkommen auf Deathmatch Arena 'LS'");
    SendClientMessage(playerid,0x0000BBAA,"Besuchen sie doch mal unsere Homepage www.DeathmachtArne.de");
    SendClientMessage(playerid,0x0000BBAA,"Wir hoffen ihr habt Spaß am Spielen");
    SendClientMessage(playerid,0x0000BBAA,"Euer [DMA]-Team!!");
    return 1;
    }


    public OnPlayerDisconnect(playerid, reason)
    {
    new pname[MAX_PLAYER_NAME];
    new string[50];
    GetPlayerName(playerid, pname, sizeof(pname));


    switch(reason)
    {
    case 0: format(string, sizeof(string), "%s hat den Server verlassen. (Crash)", pname);
    case 1: format(string, sizeof(string), "%s hat den Server verlassen.", pname);
    case 2: format(string, sizeof(string), "%s hat den Server verlassen. (Kick/Ban)", pname);
    }
    SendClientMessageToAll(0xAFAFAFAA, string);
    return 1;
    }


    public OnPlayerSpawn(playerid)
    {
    return 1;
    }


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


    public OnVehicleSpawn(vehicleid)
    {
    return 1;
    }


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


    public OnPlayerText(playerid, text[])
    {
    new Float:pX,Float:pY,Float:pZ;
    new pName[MAX_PLAYER_NAME];
    new pString[256];
    GetPlayerPos(playerid,pX,pY,pZ);
    GetPlayerName(playerid, pName, sizeof(pName));
    format(pString,sizeof(pString),"%s sagt: %s",pName,text);
    SendClientMessageToAll(0xFFFFFFAA,pString); //

    return 0;
    }


    public OnPlayerCommandText(playerid, cmdtext[])
    {
    if (strcmp("/regeln", cmdtext, true, 10) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    SendClientMessage(playerid,0xAA3333AA,"INFO: 1§ Drive-by ist Verboten");
    SendClientMessage(playerid,0xAA3333AA,"INFO: 2§ Es werden keine andern User Beleidigt");
    SendClientMessage(playerid,0xAA3333AA,"INFO: 3§ Respektiert die Admins sowie auch andere User");
    SendClientMessage(playerid,0xAA3333AA,"INFO: 3§ Bunny-hop ist Verboten");
    }
    return 1;
    }

    if (strcmp("/help", cmdtext, true, 10) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    SendClientMessage(playerid,0xFFFF00AA,"****SERVER****/rules /help /stvo");
    }
    }
    if (strcmp("/hilfe", cmdtext, true, 10) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    SendClientMessage(playerid,0xFFFF00AA,"****SERVER****/regeln /hilfe /stvo");
    }
    }
    if (strcmp("/rules", cmdtext, true, 10) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    SendClientMessage(playerid,0xAA3333AA,"DRIVE-BY is prohibited");
    SendClientMessage(playerid,0xAA3333AA,"Bunny-hop is prohibited");
    }
    }
    if (strcmp("/StVo", cmdtext, true, 10) == 0)
    {
    if(IsPlayerConnected(playerid))
    {
    SendClientMessage(playerid,0xFF9900AA,"INFO §1 Hier sind die StVo Regeln!");
    SendClientMessage(playerid,0xFF9900AA,"INFO §2 Es wird immer Rechts gefahren!");
    SendClientMessage(playerid,0xFF9900AA,"INFO §3 Die Ampeln werden beachtet!");
    }
    }
    return 1;
    }


    public OnPlayerPickUpPickup(playerid, pickupid)
    {
    if(pickupid == bsnenter)
    {
    SetPlayerPos(playerid,375.962463,-65.816848,1001.507812);
    SetPlayerInterior(playerid,10);
    }
    return 1;
    }



    D:\......................\Tutorial.pwn(42) : error 017: undefined symbol "bsnenter"
    D:\......................\Tutorial.pwn(199) : error 017: undefined symbol "bsnenter"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    2 Errors.