[Problem] mit Frakkammer

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,


    Ich habe ein Problem mit dem Befehl "Frakkammer" bei mir kommt immer ein fehler. ich weiß nicht mehr weiter Helfen sie mir bitte


    if(strcmp("/frakkammer", cmdtext, true) == 0)
    {
    if (PlayerToPoint(2.0,playerid,-224.4697,1411.0306,27.7734) || PlayerToPoint(2.0,playerid,1712.4611,-1640.0770,20.2239) || PlayerToPoint(2.0,playerid,1277.5029,-808.4862,1089.9375) || PlayerToPoint(2.0,playerid,2580.4900,2328.9592,17.8222) || PlayerToPoint(2.0,playerid, 1939.4677,982.8486,992.4688) || IsPlayerInRangeOfPoint(playerid, 5.0, 231.5756,1067.9391,1084.2061) || IsPlayerInRangeOfPoint(playerid, 3.0, 2819.4785,-1169.4138,1025.5703) || IsPlayerInRangeOfPoint(playerid, 3.0, -2642.2175,1419.0121,906.4609))
    {
    if(IsPlayerInFrac(playerid, 5) || IsPlayerInFrac(playerid, 6) || IsPlayerInFrac(playerid, 12) || IsPlayerInFrac(playerid, 13) || IsPlayerInFrac(playerid, 14) || IsPlayerInFrac(playerid, 16) || IsPlayerInFrac(playerid, 17) || IsPlayerInFrac(playerid, 18) || IsPlayerInFrac(playerid, 19) || IsPlayerInFrac(playerid, 20) || IsPlayerInFrac(playerid, 23))
    {
    ShowPlayerDialog(playerid, DIALOG_KAMMER, DIALOG_STYLE_LIST, "Fraktionskammer", "Waffen\nDrogen\nFraktions Materialien", "Auswählen", "Abbrechen");
    }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD1, "Du bist kein Gang- / Mafiamitglied");
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD1, "Du bist nicht an der Fraktionskammer!");
    }
    return 1;
    }


    Code
    Zeile (40138) : error 075: input line too long (after substitutions)
    
    
    1 Errors, 0 Warnungen
    Du hast Errors im Skript. Kompilierung abgebrochen
    
    
    PWNMod Compiler Version 1.2
    (c) Trooper[Y]
    In Kooperation mit GTA-Servers.de


    MfG iBesT_

  • if (PlayerToPoint(2.0,playerid,-224.4697,1411.0306,27.7734) || PlayerToPoint(2.0,playerid,1712.4611,-1640.0770,20.2239) || PlayerToPoint(2.0,playerid,1277.5029,-808.4862,1089.9375) || PlayerToPoint(2.0,playerid,2580.4900,2328.9592,17.8222) || PlayerToPoint(2.0,playerid, 1939.4677,982.8486,992.4688) || IsPlayerInRangeOfPoint(playerid, 5.0, 231.5756,1067.9391,1084.2061) || IsPlayerInRangeOfPoint(playerid, 3.0, 2819.4785,-1169.4138,1025.5703) || IsPlayerInRangeOfPoint(playerid, 3.0, -2642.2175,1419.0121,906.4609))
    ändern in:

    if(PlayerToPoint(2.0,playerid,-224.4697,1411.0306,27.7734) || PlayerToPoint(2.0,playerid,1712.4611,-1640.0770,20.2239) || PlayerToPoint(2.0,playerid,1277.5029,-808.4862,1089.9375)
    || PlayerToPoint(2.0,playerid,2580.4900,2328.9592,17.8222) || PlayerToPoint(2.0,playerid, 1939.4677,982.8486,992.4688) || IsPlayerInRangeOfPoint(playerid, 5.0, 231.5756,1067.9391,1084.2061)
    || IsPlayerInRangeOfPoint(playerid, 3.0, 2819.4785,-1169.4138,1025.5703) || IsPlayerInRangeOfPoint(playerid, 3.0, -2642.2175,1419.0121,906.4609))

  • if(strcmp("/frakkammer", cmdtext, true) == 0)
    {
    if (PlayerToPoint(2.0,playerid,-224.4697,1411.0306,27.7734) || PlayerToPoint(2.0,playerid,1712.4611,-1640.0770,20.2239) || PlayerToPoint(2.0,playerid,1277.5029,-808.4862,1089.9375) || PlayerToPoint(2.0,playerid,2580.4900,2328.9592,17.8222) || PlayerToPoint(2.0,playerid, 1939.4677,982.8486,992.4688) || IsPlayerInRangeOfPoint(playerid, 5.0, 231.5756,1067.9391,1084.2061) || IsPlayerInRangeOfPoint(playerid, 3.0, 2819.4785,-1169.4138,1025.5703) || IsPlayerInRangeOfPoint(playerid, 3.0, -2642.2175,1419.0121,906.4609))
    {
    if(PlayerToPoint(2.0,playerid,-224.4697,1411.0306,27.7734) || PlayerToPoint(2.0,playerid,1712.4611,-1640.0770,20.2239) || PlayerToPoint(2.0,playerid,1277.5029,-808.4862,1089.9375)
    || PlayerToPoint(2.0,playerid,2580.4900,2328.9592,17.8222) || PlayerToPoint(2.0,playerid, 1939.4677,982.8486,992.4688) || IsPlayerInRangeOfPoint(playerid, 5.0, 231.5756,1067.9391,1084.2061)
    || IsPlayerInRangeOfPoint(playerid, 3.0, 2819.4785,-1169.4138,1025.5703) || IsPlayerInRangeOfPoint(playerid, 3.0, -2642.2175,1419.0121,906.4609))
    {
    ShowPlayerDialog(playerid, DIALOG_KAMMER, DIALOG_STYLE_LIST, "Fraktionskammer", "Waffen\nDrogen\nFraktions Materialien", "Auswählen", "Abbrechen");
    }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD1, "Du bist kein Gang- / Mafiamitglied");
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD1, "Du bist nicht an der Fraktionskammer!");
    }
    return 1;
    }


    Und immer noch der gleiche fehler..

  • if (PlayerToPoint(2.0,playerid,-224.4697,1411.0306,27.7734) || PlayerToPoint(2.0,playerid,1712.4611,-1640.0770,20.2239) || PlayerToPoint(2.0,playerid,1277.5029,-808.4862,1089.9375) || PlayerToPoint(2.0,playerid,2580.4900,2328.9592,17.8222) || PlayerToPoint(2.0,playerid, 1939.4677,982.8486,992.4688) || IsPlayerInRangeOfPoint(playerid, 5.0, 231.5756,1067.9391,1084.2061) || IsPlayerInRangeOfPoint(playerid, 3.0, 2819.4785,-1169.4138,1025.5703) || IsPlayerInRangeOfPoint(playerid, 3.0, -2642.2175,1419.0121,906.4609))


    Das auch noch^^

  • if(strcmp("/frakkammerr", cmdtext, true) == 0)
    {
    if (IsPlayerInRangeOfPoint(playerid,3,c,y,z) && IsPlayerInFrac(playerid, id)
    || IsPlayerInRangeOfPoint(playerid,3,c,y,z) && IsPlayerInFrac(playerid, id)
    || IsPlayerInRangeOfPoint(playerid,3,c,y,z) && IsPlayerInFrac(playerid, id)
    || IsPlayerInRangeOfPoint(playerid,3,c,y,z) && IsPlayerInFrac(playerid, id)
    || IsPlayerInRangeOfPoint(playerid,3,c,y,z) && IsPlayerInFrac(playerid,id) && SpielerInfo[playerid][pRank] >=iid
    || IsPlayerInRangeOfPoint(playerid,3,c,y,z) && IsPlayerInFrac(playerid, id))
    {
    ShowPlayerDialog(playerid, DIALOG_KAMMER, DIALOG_STYLE_LIST, "frakkammer", "waffen", "Auswählen", "Abbrechen");
    }
    else
    {
    SendClientMessage(playerid, COLOR_GRAD1, "Du bist nicht an der frakkammer oder darfst es nicht!");
    }
    return 1;
    }


    bei IsPlayerInFrac(playerid, id)) Musst du bei der letzten id also playerid, (id) zb "playerid,2))" Machen ;D


    versuch das mal ;D


  • Warum fragst du die Frakid bei jedem Punkt ab?
    das ist einfach nur Resourcenfressend...