2 Probleme (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
  • Ich bin gerade dabei mein altes script wissen aufzubessern.
    Mein erstes Problem ist, dass in den script
    [ GAMEMODE ] GermanReallife_By_MuKkI, dort werden die pickups nicht angezeigt. gibt aber kein compile fehler



    public OnPlayerPickUpPickup(playerid, pickupid)
    {





    if(pickupid == knasticonforcops)
    {
    GameTextForPlayer(playerid, "~r~/arrest Um jemanden in den Knast zu stecken",5000,3);
    }




    new currentpickup = pickupid;
    if(currentpickup == InteriorEnters[1])
    {
    GameTextForPlayer(playerid, "~y~Cluckin Bell", 5000, 3);
    SetPlayerPos(playerid, 366.4043,-8.0554,1001.8516);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,9);
    }
    if(currentpickup == InteriorExits[1])
    {
    GameTextForPlayer(playerid, "~w~Los Santos", 5000, 3);
    SetPlayerPos(playerid, 923.7872,-1352.7813,13.3766);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,0);
    }
    if(currentpickup == InteriorEnters[2])
    {//Victim Shop Rein
    GameTextForPlayer(playerid, "~r~Victim Shop", 5000, 3);
    SetPlayerPos(playerid, 224.1030,-7.5747,1002.2109);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,5);
    }
    if(currentpickup == InteriorExits[2])
    {//Victim Shop Raus
    GameTextForPlayer(playerid, "~w~Los Santos", 5000, 3);
    SetPlayerPos(playerid, 456.6782,-1500.9597,31.0442);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,0);
    }
    if(currentpickup == InteriorEnters[3])
    {//GYM Rein
    GameTextForPlayer(playerid, "~g~Box Studio", 5000, 3);
    SetPlayerPos(playerid, 771.3609,-1.7553,1000.7283);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,5);
    }
    if(currentpickup == InteriorExits[3])
    {//GYM Raus
    GameTextForPlayer(playerid, "~w~Los Santos", 5000, 3);
    SetPlayerPos(playerid, 2226.6560,-1723.1659,13.5532);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,0);
    }
    if(currentpickup == InteriorEnters[4])
    {//Grove Street Home Rein
    GameTextForPlayer(playerid, "~g~Grove Home", 5000, 3);
    SetPlayerPos(playerid, 2496.0608,-1693.9111,1014.7422);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,3);
    }
    if(currentpickup == InteriorExits[4])
    {//Grove Street Home Raus
    GameTextForPlayer(playerid, "~w~Los Santos", 5000, 3);
    SetPlayerPos(playerid, 2495.2390,-1687.0714,13.5149);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,0);
    }
    if(currentpickup == InteriorEnters[5])
    {//Ten Green Bottles Rein
    GameTextForPlayer(playerid, "~w~Ten~g~Green~w~Bottles", 5000, 3);
    SetPlayerPos(playerid, 502.5231,-70.5881,998.7578);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,11);
    }
    if(currentpickup == InteriorExits[5])
    {//Ten Green Bottles Raus
    GameTextForPlayer(playerid, "~w~Los Santos", 5000, 3);
    SetPlayerPos(playerid, 2307.4128,-1646.2214,14.8270);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,0);
    }
    if(currentpickup == InteriorEnters[6])
    {//Pig Pen Rein
    GameTextForPlayer(playerid, "~r~Strip-Club", 5000, 3);
    SetPlayerPos(playerid, 1204.9412,-10.8175,1000.9219);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,2);
    }
    if(currentpickup == InteriorExits[6])
    {//Pig Pen Raus
    GameTextForPlayer(playerid, "~w~Los Santos", 5000, 3);
    SetPlayerPos(playerid, 2422.0151,-1224.3535,25.2298);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,0);
    }
    if(currentpickup == InteriorEnters[7])
    {//Motel Rein
    GameTextForPlayer(playerid, "~y~Jeffersen Motel", 5000, 3);
    SetPlayerPos(playerid, 2218.5327,-1150.5479,1025.7969);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,15);
    }
    if(currentpickup == InteriorExits[7])
    {//Motel Raus
    GameTextForPlayer(playerid, "~w~Los Santos", 5000, 3);
    SetPlayerPos(playerid, 2232.1570,-1162.8846,25.8906);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,0);
    }
    if(currentpickup == InteriorEnters[9])
    {//Binco LS Rein
    GameTextForPlayer(playerid, "~y~Binco Los Santos", 5000, 3);
    SetPlayerPos(playerid, 207.8009,-107.4914,1005.1328);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,15);
    }
    if(currentpickup == InteriorExits[9])
    {//Binco LS Raus
    GameTextForPlayer(playerid, "~w~Los Santos", 5000, 3);
    SetPlayerPos(playerid, 2245.7949,-1662.5033,15.4690);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,0);
    }
    if(currentpickup == InteriorEnters[10])
    {//Weißes Haus Rein
    GameTextForPlayer(playerid, "~w~White House", 5000, 3);
    SetPlayerPos(playerid, 1265.0969,-781.3518,1091.9063);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,5);
    }
    if(currentpickup == InteriorExits[10])
    {//Weißes Haus Raus
    GameTextForPlayer(playerid, "~w~Los Santos", 5000, 3);
    SetPlayerPos(playerid, 1130.8662,-2036.9832,69.0078);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,0);
    }
    if(currentpickup == InteriorEnters[11])
    {//Jizzi Club Rein
    GameTextForPlayer(playerid, "~r~Jizzi Club", 5000, 3);
    SetPlayerPos(playerid, -2638.1052,1407.4567,906.4647);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,3);
    }
    if(currentpickup == InteriorExits[11])
    {//Jizzi Club Raus
    GameTextForPlayer(playerid, "~w~San Fierro", 5000, 3);
    SetPlayerPos(playerid, -2628.6838,1401.3866,7.0938);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,0);
    }
    if(currentpickup == InteriorEnters[12])
    {//BS Nord Rein
    GameTextForPlayer(playerid, "~y~BurgerShot ~w~Nord", 5000, 3);
    SetPlayerPos(playerid, 367.8980,-72.7784,1001.5078);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,10);
    }
    if(currentpickup == InteriorExits[12])
    {//BS Nord Raus
    GameTextForPlayer(playerid, "~w~Los Santos", 5000, 3);
    SetPlayerPos(playerid, 1199.4792,-921.5715,43.0253);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,0);
    }
    if(currentpickup == InteriorEnters[13])
    {//24/7 am BSN Rein
    GameTextForPlayer(playerid, "~y~24/7 Shop", 5000, 3);
    SetPlayerPos(playerid, -28.0758,-89.6018,1003.5469);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,18);
    }
    if(currentpickup == InteriorExits[13])
    {//24/7 am BSN Raus
    GameTextForPlayer(playerid, "~w~Los Santos", 5000, 3);
    SetPlayerPos(playerid, 1315.4900,-900.8430,39.5781);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,0);
    }
    if(currentpickup == InteriorEnters[14])
    {//24/7 am PD Rein
    GameTextForPlayer(playerid, "~y~24/7 Shop", 5000, 3);
    SetPlayerPos(playerid, -26.6916,-55.7149,1003.5469);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,6);
    }
    if(currentpickup == InteriorExits[14])
    {//24/7 am PD Raus
    GameTextForPlayer(playerid, "~w~Los Santos", 5000, 3);
    SetPlayerPos(playerid, 1352.3300,-1755.7100,13.3530);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,0);
    }
    if(currentpickup == InteriorEnters[16])
    {//24/7 Tanke Rein
    GameTextForPlayer(playerid, "~w~24/7 Shop", 5000, 3);
    SetPlayerPos(playerid, -27.3123,-29.2776,1003.5573);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,4);
    }
    if(currentpickup == InteriorExits[16])
    {//24/7 Tanke Raus
    GameTextForPlayer(playerid, "~w~Los Santos", 5000, 3);
    SetPlayerPos(playerid, 998.3270,-919.9240,42.1797);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,0);
    }
    if(currentpickup == InteriorEnters[17])
    {//Well Stacked Pizza Rein
    GameTextForPlayer(playerid, "~y~Well Stacked ~r~Pizza", 5000, 3);
    SetPlayerPos(playerid, 372.3520,-131.6510,1001.4922);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,5);
    }
    if(currentpickup == InteriorExits[17])
    {//Well Stacked Pizza Raus
    GameTextForPlayer(playerid, "~w~Los Santos", 5000, 3);
    SetPlayerPos(playerid, 2103.4600,-1806.5900,13.5547);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,0);
    }
    if(currentpickup == InteriorEnters[18])
    {//Alhambria Rein
    GameTextForPlayer(playerid, "~r~Alhambria Disco", 5000, 3);
    SetPlayerPos(playerid, 493.3910,-22.7228,1000.6797);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,17);
    }
    if(currentpickup == InteriorExits[18])
    {//Alhambria Raus
    GameTextForPlayer(playerid, "~w~Los Santos", 5000, 3);
    SetPlayerPos(playerid, 1834.4000,-1681.7500,13.4331);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,0);
    }
    if(currentpickup == InteriorEnters[19])
    {//PD Los Santos Rein
    GameTextForPlayer(playerid, "~r~Polizei Department", 5000, 3);
    SetPlayerPos(playerid, 289.3889,172.8435,1007.1794);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,3);
    }
    if(currentpickup == InteriorExits[19])
    {//PD Los Santos Raus
    GameTextForPlayer(playerid, "~w~Los Santos", 5000, 3);
    SetPlayerPos(playerid, 1550.0662,-1675.6694,15.2440);
    SetCameraBehindPlayer(playerid);
    SetPlayerInterior(playerid,0);
    }
    if(currentpickup == PickupForThis)
    {
    ShowMenuForPlayer(HauptMenu,playerid);
    TogglePlayerControllable(playerid, 0);
    SetPlayerPos(playerid, 366.0963,173.6243,1008.3828);
    }
    return 1;
    }


    Mfg white2knight