Pawn stürtzt ab?

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
  • Hey habe das rein gemacht:


    if(newkeys & KEY_CROUCH)
    {
    if(IsACop(playerid) || PlayerInfo[playerid][pAdmin] >= 5)
    {
    if(IsPlayerInRangeOfPoint(playerid,50.0,2237.831787, 2450.287842, 9.971788))
    {
    MoveDynamicObject(FBIEingangTor,2237.849854, 2458.842041, 10.011017, 3.5);
    SetProTimer("FBIEingangTor1", 9000, 0);
    }
    if(IsPlayerInRangeOfPoint(playerid,50.0,2293.852295, 2500.680908, 5.106819))
    {
    MoveDynamicObject(FBIGarageTorA,2293.852295, 2508.680908, 5.106819, 3.5);
    SetProTimer("FBIGarageTorA1", 9000, 0);
    }
    if(IsPlayerInRangeOfPoint(playerid,50.0,2334.016357, 2442.365723, 7.487854))
    {
    MoveDynamicObject(FBIGarageTorB,2334.016357, 2442.365723, 13.000000, 3.5);
    SetProTimer("FBIGarageTorB1", 9000, 0);
    }
    if(IsPlayerInRangeOfPoint(playerid,50.0,1549.5883789063, -1627.7351074219, 16.296792984009))
    {
    MoveDynamicObject(LSPDHofTor,1549.6455078125, -1638.0, 16.296792984009, 5.0);
    SetProTimer("LSPDHofTor1", 10000, 0);
    }
    if(IsPlayerInRangeOfPoint(playerid,50.0,1584.721313, -1637.874512, 12.525799))
    {
    MoveDynamicObject(LSPDTor,1592.721313, -1637.874512, 12.525799, 5.0);
    SetProTimer("LSPDTor1", 10000, 0);
    }
    if(IsPlayerInRangeOfPoint(playerid,50.0,-1632.4403,687.4573,7.1875))
    {
    MoveDynamicObject(SFPDTorA,-1618.2524414063, 688.2, 7, 3.5);
    MoveDynamicObject(SFPDTorB,-1646.1857910156, 688.2, 7, 3.5);
    SetProTimer("SFPDTore", 5000, 0);
    }
    }
    return 1;
    }
    }


    wenn ich es Compilire dan Stürtzt Pawno ab?
    Was habe ich das falsch gemacht?

  • Versuch es mal so:

    if(newkeys & KEY_CROUCH)
    {
    if(IsACop(playerid) || PlayerInfo[playerid][pAdmin] >= 5)
    {
    if(IsPlayerInRangeOfPoint(playerid,50.0,2237.831787, 2450.287842, 9.971788))
    {
    MoveDynamicObject(FBIEingangTor,2237.849854, 2458.842041, 10.011017, 3.5);
    SetProTimer("FBIEingangTor1", 9000, 0);
    }
    if(IsPlayerInRangeOfPoint(playerid,50.0,2293.852295, 2500.680908, 5.106819))
    {
    MoveDynamicObject(FBIGarageTorA,2293.852295, 2508.680908, 5.106819, 3.5);
    SetProTimer("FBIGarageTorA1", 9000, 0);
    }
    if(IsPlayerInRangeOfPoint(playerid,50.0,2334.016357, 2442.365723, 7.487854))
    {
    MoveDynamicObject(FBIGarageTorB,2334.016357, 2442.365723, 13.000000, 3.5);
    SetProTimer("FBIGarageTorB1", 9000, 0);
    }
    if(IsPlayerInRangeOfPoint(playerid,50.0,1549.5883789063, -1627.7351074219, 16.296792984009))
    {
    MoveDynamicObject(LSPDHofTor,1549.6455078125, -1638.0, 16.296792984009, 5.0);
    SetProTimer("LSPDHofTor1", 10000, 0);
    }
    if(IsPlayerInRangeOfPoint(playerid,50.0,1584.721313, -1637.874512, 12.525799))
    {
    MoveDynamicObject(LSPDTor,1592.721313, -1637.874512, 12.525799, 5.0);
    SetProTimer("LSPDTor1", 10000, 0);
    }
    if(IsPlayerInRangeOfPoint(playerid,50.0,-1632.4403,687.4573,7.1875))
    {
    MoveDynamicObject(SFPDTorA,-1618.2524414063, 688.2, 7, 3.5);
    MoveDynamicObject(SFPDTorB,-1646.1857910156, 688.2, 7, 3.5);
    SetProTimer("SFPDTore", 5000, 0);
    }
    }
    return 1;
    }

    :) SWAGETTI & YOLONAISE!