Klammerfehler?

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
  • Wo is hier der Klammerfehler? :o
    MUss in diesem Abschnitt liegen..

    Spoiler anzeigen
    else if(newkeys == KEY_SECONDARY_ATTACK)
    {
    if(!IsPlayerInAnyVehicle(playerid))
    {
    for(new i;i<MAX_BIZ;i++)
    {
    if(IsPlayerInRangeOfPoint(playerid,2,BizInfo[i][bPosX],BizInfo[i][bPosY],BizInfo[i][bPosZ]))
    {
    if(!strcmp(BizInfo[i][bTyp],"Werbung",true))
    {
    SCM(playerid,COLOR_LIGHTRED,"Du kannst das Werbungsunternehmen nicht betreten, um eine Werbung zu schreiben nutze: /ad [Text]");
    }
    else
    {
    if(BizInfo[i][bLocked] == 0)
    {
    SetPlayerInterior(playerid, BizInfo[i][bInterior]);
    SetPlayerPos(playerid, BizInfo[i][bIntX], BizInfo[i][bIntY], BizInfo[i][bIntZ]);
    SCM(playerid,COLOR_WHITE,"Um das Business zu verlassen, begib dich zum Ausgang und drücke Enter!");
    }
    else
    {
    GameTextForPlayer(playerid,"~r~Abgeschlossen!",2000,1);
    }
    }
    }
    else if(IsPlayerInRangeOfPoint(playerid,3,BizInfo[i][bIntX],BizInfo[i][bIntY],BizInfo[i][bIntZ]))
    {
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid, BizInfo[i][bPosX],BizInfo[i][bPosY],BizInfo[i][bPosZ]);
    }
    }
    for(new i;i<MAX_HAEUSER;i++)
    {
    if(IsPlayerInRangeOfPoint(playerid,2,HausInfo[i][hPosX],HausInfo[i][hPosY],HausInfo[i][hPosZ]))
    {
    if(HausInfo[i][hLocked] == 0)
    {
    SetPlayerInterior(playerid, HausInfo[i][hInterior]);
    SetPlayerPos(playerid, HausInfo[i][hIntX], HausInfo[i][hIntY], HausInfo[i][hIntZ]);
    SCM(playerid,COLOR_WHITE,"Um das Haus zu verlassen, begib dich zum Ausgang und drücke Enter!");
    }
    else
    {
    GameTextForPlayer(playerid,"~r~Abgeschlossen!",2000,1);
    }
    }
    else if(IsPlayerInRangeOfPoint(playerid,3,HausInfo[i][hIntX],HausInfo[i][hIntY],HausInfo[i][hIntZ]))
    {
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid, HausInfo[i][hPosX],HausInfo[i][hPosY],HausInfo[i][hPosZ]);
    }
    }
    if(IsPlayerInRangeOfPoint(playerid,2,1555.2087,-1675.6969,16.1953))
    {
    SetPlayerPos(playerid,238.5645,139.1883,1003.0234);
    SetPlayerInterior(playerid,3);
    SetPlayerVirtualWorld(playerid,7);
    }
    else if(IsPlayerInRangeOfPoint(playerid,2,238.5645,139.1883,1003.0234))
    {
    SetPlayerPos(playerid,1555.2087,-1675.6969,16.1953);
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    }
    else if(IsPlayerInRangeOfPoint(playerid,2,1467.2745,-1009.9218,26.8438))
    {
    SetPlayerPos(playerid,1415.951171,-988.971191,1639.980224);
    SetPlayerVirtualWorld(playerid,1);
    }
    else if(IsPlayerInRangeOfPoint(playerid,2,1415.951171,-988.971191,1639.980224))
    {
    SetPlayerPos(playerid,1467.2745,-1009.9218,26.8438);
    SetPlayerVirtualWorld(playerid,0);
    }
    else if(IsPlayerInRangeOfPoint(playerid,2,1482.8876,-1807.3569,15.4766))
    {
    SetPlayerPos(playerid,390.7678,173.7899,1008.3828);
    SetPlayerInterior(playerid,3);
    SetPlayerVirtualWorld(playerid,2);

    Spoiler anzeigen
    else if(IsPlayerInRangeOfPoint(playerid,2,390.7678,173.7899,1008.3828))
    {
    SetPlayerPos(playerid,1482.8876,-1807.3569,16.4766);
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    }
    else if(IsPlayerInRangeOfPoint(playerid,2,1752.6875,-1930.0626,13.5763))
    {
    SetPlayerPos(playerid,2731.1636,-2486.7097,313.6659);
    SetPlayerVirtualWorld(playerid,3);
    SetPVarInt(playerid,"Helpcenter",1);
    }
    else if(IsPlayerInRangeOfPoint(playerid,2,1772.5376,-1653.6753,14.4229))
    {
    SetPlayerPos(playerid,2731.1636,-2486.7097,313.6659);
    SetPlayerVirtualWorld(playerid,4);
    SetPVarInt(playerid,"Helpcenter",2);
    }
    else if(IsPlayerInRangeOfPoint(playerid,2,1031.8666,-1435.2271,13.5546))
    {
    SetPlayerPos(playerid,2731.1636,-2486.7097,313.6659);
    SetPlayerVirtualWorld(playerid,5);
    SetPVarInt(playerid,"Helpcenter",3);
    }
    else if(IsPlayerInRangeOfPoint(playerid,2,2731.1636,-2486.7097,313.6659))
    {
    if(GetPVarInt(playerid,"Helpcenter") == 1)
    {
    SetPlayerPos(playerid,1752.6875,-1930.0626,13.5763);
    SetPlayerVirtualWorld(playerid,0);
    }
    else if(GetPVarInt(playerid,"Helpcenter") == 2)
    {
    SetPlayerPos(playerid,1772.5376,-1653.6753,14.4229);
    SetPlayerVirtualWorld(playerid,0);
    }
    else if(GetPVarInt(playerid,"Helpcenter") == 3)
    {
    SetPlayerPos(playerid,1031.8666,-1435.2271,13.5546);
    SetPlayerVirtualWorld(playerid,0);
    }
    }
    else if(IsPlayerInRangeOfPoint(playerid,3,1731.61, -1130.11, 23.04))
    {
    if(isPlayerInFrakt(playerid,4) && isPlayerFeuerwehr(playerid))
    {
    MoveDynamicObject(lsfdtuer1, 1731.61, -1130.11, 23.04,2,0.00, 0.00, 90.00);
    SetTimer("lsfdtuer1zu",2000,0);
    SCM(playerid,COLOR_PURPLE,"Die Tür schliesst in 2 Sekunden automatisch!");
    }
    }
    else if(IsPlayerInRangeOfPoint(playerid,3,1735.13, -1101.33, 23.04))
    {
    if(isPlayerInFrakt(playerid,4) && isPlayerFeuerwehr(playerid))
    {
    MoveDynamicObject(lsfdtuer2, 1735.13, -1101.33, 23.04,2, 0.00, 0.00, 280.00);
    SetTimer("lsfdtuer2zu",2000,0);
    SCM(playerid,COLOR_PURPLE,"Die Tür schliesst in 2 Sekunden automatisch!");
    }
    }
    else if(IsPlayerInRangeOfPoint(playerid,2,1324.0826,-1841.6254,13.5469))
    {
    SetPlayerPos(playerid,-2029.5314,-117.9387,1035.1719);
    SetPlayerInterior(playerid,3);
    SetPlayerVirtualWorld(playerid,8);
    }
    else if(IsPlayerInRangeOfPoint(playerid,2,-2029.6566,-119.6220,1035.1719))
    {
    SetPlayerPos(playerid,1324.0826,-1841.6254,13.5469);
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    }
    else if(IsPlayerInRangeOfPoint(playerid,2,1094.3629,-1323.5400,15.1867))
    {
    if(isPlayerInFrakt(playerid,4) && !isPlayerFeuerwehr(playerid))
    {
    SetPlayerPos(playerid,340.3668,169.3899,1019.9912);
    SetPlayerInterior(playerid,3);
    SetPlayerVirtualWorld(playerid,9);
    }
    }
    else if(IsPlayerInRangeOfPoint(playerid,2,340.3668,169.3899,1019.9912))
    {
    if(isPlayerInFrakt(playerid,4) && !isPlayerFeuerwehr(playerid))
    {
    SetPlayerPos(playerid,1094.3629,-1323.5400,15.1867);
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    }
    }
    else if(IsPlayerInRangeOfPoint(playerid,1,-688.0869,942.6823,13.6328) && isPlayerInFrakt(playerid,7))
    {
    SetPlayerPos(playerid,-688.0062,944.4323,13.6328);
    }
    else if(IsPlayerInRangeOfPoint(playerid,1,-688.0062,944.4323,13.6328) && isPlayerInFrakt(playerid,7))
    {
    SetPlayerPos(playerid,-688.0869,942.6823,13.6328);
    }
    }
    }

  • Spoiler anzeigen

    else if(newkeys == KEY_SECONDARY_ATTACK)
    {
    if(!IsPlayerInAnyVehicle(playerid))
    {
    for(new i;i<MAX_BIZ;i++)
    {
    if(IsPlayerInRangeOfPoint(playerid,2,BizInfo[i][bPosX],BizInfo[i][bPosY],BizInfo[i][bPosZ]))
    {
    if(!strcmp(BizInfo[i][bTyp],"Werbung",true))
    {
    SCM(playerid,COLOR_LIGHTRED,"Du kannst das Werbungsunternehmen nicht betreten, um eine Werbung zu schreiben nutze: /ad [Text]");
    }
    else
    {
    if(BizInfo[i][bLocked] == 0)
    {
    SetPlayerInterior(playerid, BizInfo[i][bInterior]);
    SetPlayerPos(playerid, BizInfo[i][bIntX], BizInfo[i][bIntY], BizInfo[i][bIntZ]);
    SCM(playerid,COLOR_WHITE,"Um das Business zu verlassen, begib dich zum Ausgang und drücke Enter!");
    }
    else
    {
    GameTextForPlayer(playerid,"~r~Abgeschlossen!",2000,1);
    }
    //Klammer Fehlt
    }
    }
    else if(IsPlayerInRangeOfPoint(playerid,3,BizInfo[i][bIntX],BizInfo[i][bIntY],BizInfo[i][bIntZ]))
    {
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid, BizInfo[i][bPosX],BizInfo[i][bPosY],BizInfo[i][bPosZ]);
    }
    }
    for(new i;i<MAX_HAEUSER;i++)
    {
    if(IsPlayerInRangeOfPoint(playerid,2,HausInfo[i][hPosX],HausInfo[i][hPosY],HausInfo[i][hPosZ]))
    {
    if(HausInfo[i][hLocked] == 0)
    {
    SetPlayerInterior(playerid, HausInfo[i][hInterior]);
    SetPlayerPos(playerid, HausInfo[i][hIntX], HausInfo[i][hIntY], HausInfo[i][hIntZ]);
    SCM(playerid,COLOR_WHITE,"Um das Haus zu verlassen, begib dich zum Ausgang und drücke Enter!");
    }
    else
    {
    GameTextForPlayer(playerid,"~r~Abgeschlossen!",2000,1);
    }
    }
    else if(IsPlayerInRangeOfPoint(playerid,3,HausInfo[i][hIntX],HausInfo[i][hIntY],HausInfo[i][hIntZ]))
    {
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid, HausInfo[i][hPosX],HausInfo[i][hPosY],HausInfo[i][hPosZ]);
    }
    }
    if(IsPlayerInRangeOfPoint(playerid,2,1555.2087,-1675.6969,16.1953))
    {
    SetPlayerPos(playerid,238.5645,139.1883,1003.0234);
    SetPlayerInterior(playerid,3);
    SetPlayerVirtualWorld(playerid,7);
    }
    else if(IsPlayerInRangeOfPoint(playerid,2,238.5645,139.1883,1003.0234))
    {
    SetPlayerPos(playerid,1555.2087,-1675.6969,16.1953);
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    }
    else if(IsPlayerInRangeOfPoint(playerid,2,1467.2745,-1009.9218,26.8438))
    {
    SetPlayerPos(playerid,1415.951171,-988.971191,1639.980224);
    SetPlayerVirtualWorld(playerid,1);
    }
    else if(IsPlayerInRangeOfPoint(playerid,2,1415.951171,-988.971191,1639.980224))
    {
    SetPlayerPos(playerid,1467.2745,-1009.9218,26.8438);
    SetPlayerVirtualWorld(playerid,0);
    }
    else if(IsPlayerInRangeOfPoint(playerid,2,1482.8876,-1807.3569,15.4766))
    {
    SetPlayerPos(playerid,390.7678,173.7899,1008.3828);
    SetPlayerInterior(playerid,3);
    SetPlayerVirtualWorld(playerid,2);

    Spoiler anzeigen
    else if(IsPlayerInRangeOfPoint(playerid,2,390.7678,173.7899,1008.3828))
    {
    SetPlayerPos(playerid,1482.8876,-1807.3569,16.4766);
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    }
    else if(IsPlayerInRangeOfPoint(playerid,2,1752.6875,-1930.0626,13.5763))
    {
    SetPlayerPos(playerid,2731.1636,-2486.7097,313.6659);
    SetPlayerVirtualWorld(playerid,3);
    SetPVarInt(playerid,"Helpcenter",1);
    }
    else if(IsPlayerInRangeOfPoint(playerid,2,1772.5376,-1653.6753,14.4229))
    {
    SetPlayerPos(playerid,2731.1636,-2486.7097,313.6659);
    SetPlayerVirtualWorld(playerid,4);
    SetPVarInt(playerid,"Helpcenter",2);
    }
    else if(IsPlayerInRangeOfPoint(playerid,2,1031.8666,-1435.2271,13.5546))
    {
    SetPlayerPos(playerid,2731.1636,-2486.7097,313.6659);
    SetPlayerVirtualWorld(playerid,5);
    SetPVarInt(playerid,"Helpcenter",3);
    }
    else if(IsPlayerInRangeOfPoint(playerid,2,2731.1636,-2486.7097,313.6659))
    {
    if(GetPVarInt(playerid,"Helpcenter") == 1)
    {
    SetPlayerPos(playerid,1752.6875,-1930.0626,13.5763);
    SetPlayerVirtualWorld(playerid,0);
    }
    else if(GetPVarInt(playerid,"Helpcenter") == 2)
    {
    SetPlayerPos(playerid,1772.5376,-1653.6753,14.4229);
    SetPlayerVirtualWorld(playerid,0);
    }
    else if(GetPVarInt(playerid,"Helpcenter") == 3)
    {
    SetPlayerPos(playerid,1031.8666,-1435.2271,13.5546);
    SetPlayerVirtualWorld(playerid,0);
    }
    }
    else if(IsPlayerInRangeOfPoint(playerid,3,1731.61, -1130.11, 23.04))
    {
    if(isPlayerInFrakt(playerid,4) && isPlayerFeuerwehr(playerid))
    {
    MoveDynamicObject(lsfdtuer1, 1731.61, -1130.11, 23.04,2,0.00, 0.00, 90.00);
    SetTimer("lsfdtuer1zu",2000,0);
    SCM(playerid,COLOR_PURPLE,"Die Tür schliesst in 2 Sekunden automatisch!");
    }
    }
    else if(IsPlayerInRangeOfPoint(playerid,3,1735.13, -1101.33, 23.04))
    {
    if(isPlayerInFrakt(playerid,4) && isPlayerFeuerwehr(playerid))
    {
    MoveDynamicObject(lsfdtuer2, 1735.13, -1101.33, 23.04,2, 0.00, 0.00, 280.00);
    SetTimer("lsfdtuer2zu",2000,0);
    SCM(playerid,COLOR_PURPLE,"Die Tür schliesst in 2 Sekunden automatisch!");
    }
    }
    else if(IsPlayerInRangeOfPoint(playerid,2,1324.0826,-1841.6254,13.5469))
    {
    SetPlayerPos(playerid,-2029.5314,-117.9387,1035.1719);
    SetPlayerInterior(playerid,3);
    SetPlayerVirtualWorld(playerid,8);
    }
    else if(IsPlayerInRangeOfPoint(playerid,2,-2029.6566,-119.6220,1035.1719))
    {
    SetPlayerPos(playerid,1324.0826,-1841.6254,13.5469);
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    }
    else if(IsPlayerInRangeOfPoint(playerid,2,1094.3629,-1323.5400,15.1867))
    {
    if(isPlayerInFrakt(playerid,4) && !isPlayerFeuerwehr(playerid))
    {
    SetPlayerPos(playerid,340.3668,169.3899,1019.9912);
    SetPlayerInterior(playerid,3);
    SetPlayerVirtualWorld(playerid,9);
    }
    }
    else if(IsPlayerInRangeOfPoint(playerid,2,340.3668,169.3899,1019.9912))
    {
    if(isPlayerInFrakt(playerid,4) && !isPlayerFeuerwehr(playerid))
    {
    SetPlayerPos(playerid,1094.3629,-1323.5400,15.1867);
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    }
    }
    else if(IsPlayerInRangeOfPoint(playerid,1,-688.0869,942.6823,13.6328) && isPlayerInFrakt(playerid,7))
    {
    SetPlayerPos(playerid,-688.0062,944.4323,13.6328);
    }
    else if(IsPlayerInRangeOfPoint(playerid,1,-688.0062,944.4323,13.6328) && isPlayerInFrakt(playerid,7))
    {
    SetPlayerPos(playerid,-688.0869,942.6823,13.6328);
    }
    }
    }

  • Sry, jetzt

    Spoiler anzeigen
    else if(newkeys == KEY_SECONDARY_ATTACK)
    {
    if(!IsPlayerInAnyVehicle(playerid))
    {
    for(new i;i<MAX_BIZ;i++)
    {
    if(IsPlayerInRangeOfPoint(playerid,2,BizInfo[i][bPosX],BizInfo[i][bPosY],BizInfo[i][bPosZ]))
    {
    if(!strcmp(BizInfo[i][bTyp],"Werbung",true))
    {
    SCM(playerid,COLOR_LIGHTRED,"Du kannst das Werbungsunternehmen nicht betreten, um eine Werbung zu schreiben nutze: /ad [Text]");
    }
    else
    {
    if(BizInfo[i][bLocked] == 0)
    {
    SetPlayerInterior(playerid, BizInfo[i][bInterior]);
    SetPlayerPos(playerid, BizInfo[i][bIntX], BizInfo[i][bIntY], BizInfo[i][bIntZ]);
    SCM(playerid,COLOR_WHITE,"Um das Business zu verlassen, begib dich zum Ausgang und drücke Enter!");
    }
    else
    {
    GameTextForPlayer(playerid,"~r~Abgeschlossen!",2000,1);
    }
    }
    }
    else if(IsPlayerInRangeOfPoint(playerid,3,BizInfo[i][bIntX],BizInfo[i][bIntY],BizInfo[i][bIntZ]))
    {
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid, BizInfo[i][bPosX],BizInfo[i][bPosY],BizInfo[i][bPosZ]);
    }
    }
    for(new i;i<MAX_HAEUSER;i++)
    {
    if(IsPlayerInRangeOfPoint(playerid,2,HausInfo[i][hPosX],HausInfo[i][hPosY],HausInfo[i][hPosZ]))
    {
    if(HausInfo[i][hLocked] == 0)
    {
    SetPlayerInterior(playerid, HausInfo[i][hInterior]);
    SetPlayerPos(playerid, HausInfo[i][hIntX], HausInfo[i][hIntY], HausInfo[i][hIntZ]);
    SCM(playerid,COLOR_WHITE,"Um das Haus zu verlassen, begib dich zum Ausgang und drücke Enter!");
    }
    else
    {
    GameTextForPlayer(playerid,"~r~Abgeschlossen!",2000,1);
    }
    }
    else if(IsPlayerInRangeOfPoint(playerid,3,HausInfo[i][hIntX],HausInfo[i][hIntY],HausInfo[i][hIntZ]))
    {
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid, HausInfo[i][hPosX],HausInfo[i][hPosY],HausInfo[i][hPosZ]);
    }
    }
    if(IsPlayerInRangeOfPoint(playerid,2,1555.2087,-1675.6969,16.1953))
    {
    SetPlayerPos(playerid,238.5645,139.1883,1003.0234);
    SetPlayerInterior(playerid,3);
    SetPlayerVirtualWorld(playerid,7);
    }
    else if(IsPlayerInRangeOfPoint(playerid,2,238.5645,139.1883,1003.0234))
    {
    SetPlayerPos(playerid,1555.2087,-1675.6969,16.1953);
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    }
    else if(IsPlayerInRangeOfPoint(playerid,2,1467.2745,-1009.9218,26.8438))
    {
    SetPlayerPos(playerid,1415.951171,-988.971191,1639.980224);
    SetPlayerVirtualWorld(playerid,1);
    }
    else if(IsPlayerInRangeOfPoint(playerid,2,1415.951171,-988.971191,1639.980224))
    {
    SetPlayerPos(playerid,1467.2745,-1009.9218,26.8438);
    SetPlayerVirtualWorld(playerid,0);
    }
    else if(IsPlayerInRangeOfPoint(playerid,2,1482.8876,-1807.3569,15.4766))
    {
    SetPlayerPos(playerid,390.7678,173.7899,1008.3828);
    SetPlayerInterior(playerid,3);
    SetPlayerVirtualWorld(playerid,2);

    Spoiler anzeigen
    else if(IsPlayerInRangeOfPoint(playerid,2,390.7678,173.7899,1008.3828))
    {
    SetPlayerPos(playerid,1482.8876,-1807.3569,16.4766);
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    }
    else if(IsPlayerInRangeOfPoint(playerid,2,1752.6875,-1930.0626,13.5763))
    {
    SetPlayerPos(playerid,2731.1636,-2486.7097,313.6659);
    SetPlayerVirtualWorld(playerid,3);
    SetPVarInt(playerid,"Helpcenter",1);
    }
    else if(IsPlayerInRangeOfPoint(playerid,2,1772.5376,-1653.6753,14.4229))
    {
    SetPlayerPos(playerid,2731.1636,-2486.7097,313.6659);
    SetPlayerVirtualWorld(playerid,4);
    SetPVarInt(playerid,"Helpcenter",2);
    }
    else if(IsPlayerInRangeOfPoint(playerid,2,1031.8666,-1435.2271,13.5546))
    {
    SetPlayerPos(playerid,2731.1636,-2486.7097,313.6659);
    SetPlayerVirtualWorld(playerid,5);
    SetPVarInt(playerid,"Helpcenter",3);
    }
    else if(IsPlayerInRangeOfPoint(playerid,2,2731.1636,-2486.7097,313.6659))
    {
    if(GetPVarInt(playerid,"Helpcenter") == 1)
    {
    SetPlayerPos(playerid,1752.6875,-1930.0626,13.5763);
    SetPlayerVirtualWorld(playerid,0);
    }
    else if(GetPVarInt(playerid,"Helpcenter") == 2)
    {
    SetPlayerPos(playerid,1772.5376,-1653.6753,14.4229);
    SetPlayerVirtualWorld(playerid,0);
    }
    else if(GetPVarInt(playerid,"Helpcenter") == 3)
    {
    SetPlayerPos(playerid,1031.8666,-1435.2271,13.5546);
    SetPlayerVirtualWorld(playerid,0);
    }
    }
    else if(IsPlayerInRangeOfPoint(playerid,3,1731.61, -1130.11, 23.04))
    {
    if(isPlayerInFrakt(playerid,4) && isPlayerFeuerwehr(playerid))
    {
    MoveDynamicObject(lsfdtuer1, 1731.61, -1130.11, 23.04,2,0.00, 0.00, 90.00);
    SetTimer("lsfdtuer1zu",2000,0);
    SCM(playerid,COLOR_PURPLE,"Die Tür schliesst in 2 Sekunden automatisch!");
    }
    }
    else if(IsPlayerInRangeOfPoint(playerid,3,1735.13, -1101.33, 23.04))
    {
    if(isPlayerInFrakt(playerid,4) && isPlayerFeuerwehr(playerid))
    {
    MoveDynamicObject(lsfdtuer2, 1735.13, -1101.33, 23.04,2, 0.00, 0.00, 280.00);
    SetTimer("lsfdtuer2zu",2000,0);
    SCM(playerid,COLOR_PURPLE,"Die Tür schliesst in 2 Sekunden automatisch!");
    }
    }
    else if(IsPlayerInRangeOfPoint(playerid,2,1324.0826,-1841.6254,13.5469))
    {
    SetPlayerPos(playerid,-2029.5314,-117.9387,1035.1719);
    SetPlayerInterior(playerid,3);
    SetPlayerVirtualWorld(playerid,8);
    }
    else if(IsPlayerInRangeOfPoint(playerid,2,-2029.6566,-119.6220,1035.1719))
    {
    SetPlayerPos(playerid,1324.0826,-1841.6254,13.5469);
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    }
    else if(IsPlayerInRangeOfPoint(playerid,2,1094.3629,-1323.5400,15.1867))
    {
    if(isPlayerInFrakt(playerid,4) && !isPlayerFeuerwehr(playerid))
    {
    SetPlayerPos(playerid,340.3668,169.3899,1019.9912);
    SetPlayerInterior(playerid,3);
    SetPlayerVirtualWorld(playerid,9);
    }
    }
    else if(IsPlayerInRangeOfPoint(playerid,2,340.3668,169.3899,1019.9912))
    {
    if(isPlayerInFrakt(playerid,4) && !isPlayerFeuerwehr(playerid))
    {
    SetPlayerPos(playerid,1094.3629,-1323.5400,15.1867);
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    }
    }
    else if(IsPlayerInRangeOfPoint(playerid,1,-688.0869,942.6823,13.6328) && isPlayerInFrakt(playerid,7))
    {
    SetPlayerPos(playerid,-688.0062,944.4323,13.6328);
    }
    else if(IsPlayerInRangeOfPoint(playerid,1,-688.0062,944.4323,13.6328) && isPlayerInFrakt(playerid,7))
    {
    SetPlayerPos(playerid,-688.0869,942.6823,13.6328);
    }
    }
    }

  • Spoiler anzeigen
    PAWN Quelltext

    Spoiler anzeigen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181

    Spoiler anzeigen
    else if(newkeys == KEY_SECONDARY_ATTACK)
    {
    if(!IsPlayerInAnyVehicle(playerid))
    {
    for(new i;i<MAX_BIZ;i++)
    {
    if(IsPlayerInRangeOfPoint(playerid,2,BizInfo[bPosX],BizInfo[bPosY],BizInfo[bPosZ]))
    {
    if(!strcmp(BizInfo[bTyp],"Werbung",true))
    {
    SCM(playerid,COLOR_LIGHTRED,"Du kannst das Werbungsunternehmen nicht betreten, um eine Werbung zu schreiben nutze: /ad [Text]");
    }
    else
    {
    if(BizInfo[i][bLocked] == 0)
    {
    SetPlayerInterior(playerid, BizInfo[i][bInterior]);
    SetPlayerPos(playerid, BizInfo[i][bIntX], BizInfo[i][bIntY], BizInfo[i][bIntZ]);
    SCM(playerid,COLOR_WHITE,"Um das Business zu verlassen, begib dich zum Ausgang und drücke Enter!");
    }
    else
    {
    GameTextForPlayer(playerid,"~r~Abgeschlossen!",2000,1);
    }
    }
    }
    else if(IsPlayerInRangeOfPoint(playerid,3,BizInfo[i][bIntX],BizInfo[i][bIntY],BizInfo[i][bIntZ]))
    {
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid, BizInfo[i][bPosX],BizInfo[i][bPosY],BizInfo[i][bPosZ]);
    }
    }
    for(new i;i<MAX_HAEUSER;i++)
    {
    if(IsPlayerInRangeOfPoint(playerid,2,HausInfo[i][hPosX],HausInfo[i][hPosY],HausInfo[i][hPosZ]))
    {
    if(HausInfo[i][hLocked] == 0)
    {
    SetPlayerInterior(playerid, HausInfo[i][hInterior]);
    SetPlayerPos(playerid, HausInfo[i][hIntX], HausInfo[i][hIntY], HausInfo[i][hIntZ]);
    SCM(playerid,COLOR_WHITE,"Um das Haus zu verlassen, begib dich zum Ausgang und drücke Enter!");
    }
    else
    {
    GameTextForPlayer(playerid,"~r~Abgeschlossen!",2000,1);
    }
    }
    else if(IsPlayerInRangeOfPoint(playerid,3,HausInfo[i][hIntX],HausInfo[i][hIntY],HausInfo[i][hIntZ]))
    {
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid, HausInfo[i][hPosX],HausInfo[i][hPosY],HausInfo[i][hPosZ]);
    }
    }
    if(IsPlayerInRangeOfPoint(playerid,2,1555.2087,-1675.6969,16.1953))
    {
    SetPlayerPos(playerid,238.5645,139.1883,1003.0234);
    SetPlayerInterior(playerid,3);
    SetPlayerVirtualWorld(playerid,7);
    }
    else if(IsPlayerInRangeOfPoint(playerid,2,238.5645,139.1883,1003.0234))
    {
    SetPlayerPos(playerid,1555.2087,-1675.6969,16.1953);
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    }
    else if(IsPlayerInRangeOfPoint(playerid,2,1467.2745,-1009.9218,26.8438))
    {
    SetPlayerPos(playerid,1415.951171,-988.971191,1639.980224);
    SetPlayerVirtualWorld(playerid,1);
    }
    else if(IsPlayerInRangeOfPoint(playerid,2,1415.951171,-988.971191,1639.980224))
    {
    SetPlayerPos(playerid,1467.2745,-1009.9218,26.8438);
    SetPlayerVirtualWorld(playerid,0);
    }
    else if(IsPlayerInRangeOfPoint(playerid,2,1482.8876,-1807.3569,15.4766))
    {
    SetPlayerPos(playerid,390.7678,173.7899,1008.3828);
    SetPlayerInterior(playerid,3);
    SetPlayerVirtualWorld(playerid,2);

    Spoiler anzeigen
    else if(IsPlayerInRangeOfPoint(playerid,2,390.7678,173.7899,1008.3828))
    {
    SetPlayerPos(playerid,1482.8876,-1807.3569,16.4766);
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    }
    else if(IsPlayerInRangeOfPoint(playerid,2,1752.6875,-1930.0626,13.5763))
    {
    SetPlayerPos(playerid,2731.1636,-2486.7097,313.6659);
    SetPlayerVirtualWorld(playerid,3);
    SetPVarInt(playerid,"Helpcenter",1);
    }
    else if(IsPlayerInRangeOfPoint(playerid,2,1772.5376,-1653.6753,14.4229))
    {
    SetPlayerPos(playerid,2731.1636,-2486.7097,313.6659);
    SetPlayerVirtualWorld(playerid,4);
    SetPVarInt(playerid,"Helpcenter",2);
    }
    else if(IsPlayerInRangeOfPoint(playerid,2,1031.8666,-1435.2271,13.5546))
    {
    SetPlayerPos(playerid,2731.1636,-2486.7097,313.6659);
    SetPlayerVirtualWorld(playerid,5);
    SetPVarInt(playerid,"Helpcenter",3);
    }
    else if(IsPlayerInRangeOfPoint(playerid,2,2731.1636,-2486.7097,313.6659))
    {
    if(GetPVarInt(playerid,"Helpcenter") == 1)
    {
    SetPlayerPos(playerid,1752.6875,-1930.0626,13.5763);
    SetPlayerVirtualWorld(playerid,0);
    }
    else if(GetPVarInt(playerid,"Helpcenter") == 2)
    {
    SetPlayerPos(playerid,1772.5376,-1653.6753,14.4229);
    SetPlayerVirtualWorld(playerid,0);
    }
    else if(GetPVarInt(playerid,"Helpcenter") == 3)
    {
    SetPlayerPos(playerid,1031.8666,-1435.2271,13.5546);
    SetPlayerVirtualWorld(playerid,0);
    }
    }
    else if(IsPlayerInRangeOfPoint(playerid,3,1731.61, -1130.11, 23.04))
    {
    if(isPlayerInFrakt(playerid,4) && isPlayerFeuerwehr(playerid))
    {
    MoveDynamicObject(lsfdtuer1, 1731.61, -1130.11, 23.04,2,0.00, 0.00, 90.00);
    SetTimer("lsfdtuer1zu",2000,0);
    SCM(playerid,COLOR_PURPLE,"Die Tür schliesst in 2 Sekunden automatisch!");
    }
    }
    else if(IsPlayerInRangeOfPoint(playerid,3,1735.13, -1101.33, 23.04))
    {
    if(isPlayerInFrakt(playerid,4) && isPlayerFeuerwehr(playerid))
    {
    MoveDynamicObject(lsfdtuer2, 1735.13, -1101.33, 23.04,2, 0.00, 0.00, 280.00);
    SetTimer("lsfdtuer2zu",2000,0);
    SCM(playerid,COLOR_PURPLE,"Die Tür schliesst in 2 Sekunden automatisch!");
    }
    }
    else if(IsPlayerInRangeOfPoint(playerid,2,1324.0826,-1841.6254,13.5469))
    {
    SetPlayerPos(playerid,-2029.5314,-117.9387,1035.1719);
    SetPlayerInterior(playerid,3);
    SetPlayerVirtualWorld(playerid,8);
    }
    else if(IsPlayerInRangeOfPoint(playerid,2,-2029.6566,-119.6220,1035.1719))
    {
    SetPlayerPos(playerid,1324.0826,-1841.6254,13.5469);
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    }
    else if(IsPlayerInRangeOfPoint(playerid,2,1094.3629,-1323.5400,15.1867))
    {
    if(isPlayerInFrakt(playerid,4) && !isPlayerFeuerwehr(playerid))
    {
    SetPlayerPos(playerid,340.3668,169.3899,1019.9912);
    SetPlayerInterior(playerid,3);
    SetPlayerVirtualWorld(playerid,9);
    }
    }
    else if(IsPlayerInRangeOfPoint(playerid,2,340.3668,169.3899,1019.9912))
    {
    if(isPlayerInFrakt(playerid,4) && !isPlayerFeuerwehr(playerid))
    {
    SetPlayerPos(playerid,1094.3629,-1323.5400,15.1867);
    SetPlayerInterior(playerid,0);
    SetPlayerVirtualWorld(playerid,0);
    }
    }
    else if(IsPlayerInRangeOfPoint(playerid,1,-688.0869,942.6823,13.6328) && isPlayerInFrakt(playerid,7))
    {
    SetPlayerPos(playerid,-688.0062,944.4323,13.6328);
    }
    else if(IsPlayerInRangeOfPoint(playerid,1,-688.0062,944.4323,13.6328) && isPlayerInFrakt(playerid,7))
    {
    SetPlayerPos(playerid,-688.0869,942.6823,13.6328);
    }
    }
    }


    Mag mir einer sagen warum er das so kommisch macht ? 8|
    [/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i][/i]

  • do.de - Domain-Offensive - Domains für alle und zu super Preisen