8 Errors

In 10 Minuten startet der nächtliche Backupvorgang! Es kann währenddessen (ca. 10 Minuten) zu Einschränkungen bei der Nutzung des Forums kommen
Weitere Infos findet ihr im Thema Backup des Forums
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 Brotfish Mitglieder ich brauche Hilfe bei 8 Errors
    Errors: C:\Users\Patrick\Desktop\Server[CSS]\GodFather\Gamemodes\gf.pwn(2064) : error 004: function "IsACopCar" is not implemented
    C:\Users\Patrick\Desktop\Server[CSS]\GodFather\Gamemodes\gf.pwn(2067) : error 004: function "SetPlayerCriminal" is not implemented
    C:\Users\Patrick\Desktop\Server[CSS]\GodFather\Gamemodes\gf.pwn(2069) : error 004: function "IsAnAmbulance" is not implemented
    C:\Users\Patrick\Desktop\Server[CSS]\GodFather\Gamemodes\gf.pwn(2072) : error 004: function "SetPlayerCriminal" is not implemented
    C:\Users\Patrick\Desktop\Server[CSS]\GodFather\Gamemodes\gf.pwn(2172) : error 004: function "PlayerToPoint" is not implemented
    C:\Users\Patrick\Desktop\Server[CSS]\GodFather\Gamemodes\gf.pwn(2172) : error 004: function "PlayerToPoint" is not implemented
    C:\Users\Patrick\Desktop\Server[CSS]\GodFather\Gamemodes\gf.pwn(2172) : error 029: invalid expression, assumed zero
    C:\Users\Patrick\Desktop\Server[CSS]\GodFather\Gamemodes\gf.pwn(2172) : fatal error 107: too many error messages on one line
    Hier der Pawn Code


    if (IsACopCar(vehicleid) && !ispassenger)// 2064
    {
    if(PlayerInfo[playerid][pLeader]==1||PlayerInfo[playerid][pMember]==1) {}
    else { WantedPoints[playerid]+=2; SetPlayerCriminal(playerid,255, "Kradzie¿ Policyjnego Auta"); }
    }
    if (IsAnAmbulance(vehicleid) && !ispassenger) // 2069
    {
    if(PlayerInfo[playerid][pMember]==4||PlayerInfo[playerid][pLeader]==4) { }
    else { WantedPoints[playerid]+=2; SetPlayerCriminal(playerid,255, "Kradzie¿ Ambulansu"); }// 2067
    }
    }
    return 1;
    }


    public IsAnInstructor(playerid)
    {
    if(IsPlayerConnected(playerid))
    {
    new leader = PlayerInfo[playerid][pLeader];
    new member = PlayerInfo[playerid][pMember];
    if(member==11)
    {
    return 1;
    }
    if(leader==11)
    {
    return 1;
    }
    }
    return 0;
    }


    public IsAMember(playerid)
    {
    if(IsPlayerConnected(playerid))
    {
    new leader = PlayerInfo[playerid][pLeader];
    new member = PlayerInfo[playerid][pMember];
    if(member==5 || member==6 || member==8 || member==12)
    {
    return 1;
    }
    if(leader==5 || leader==6 || leader==8 || leader==12)
    {
    return 1;
    }
    }
    return 0;
    }


    public IsACop(playerid)
    {
    if(IsPlayerConnected(playerid))
    {
    new leader = PlayerInfo[playerid][pLeader];
    new member = PlayerInfo[playerid][pMember];
    if(member==1 || member==2 || member==3)
    {
    return 1;
    }
    else if(leader==1 || leader==2 || leader==3)
    {
    return 1;
    }
    }
    return 0;
    }


    public IsAFBI(playerid)
    {
    if(IsPlayerConnected(playerid))
    {
    new leader = PlayerInfo[playerid][pLeader];
    new member = PlayerInfo[playerid][pMember];
    if(member==2)
    {
    return 1;
    }
    else if(leader==2)
    {
    return 1;
    }
    }
    return 0;
    }


    public IsANG(playerid)
    {
    if(IsPlayerConnected(playerid))
    {
    new leader = PlayerInfo[playerid][pLeader];
    new member = PlayerInfo[playerid][pMember];
    if(member==3)
    {
    return 1;
    }
    else if(leader==3)
    {
    return 1;
    }
    }
    return 0;
    }


    public IsAtClothShop(playerid)
    {
    if(IsPlayerConnected(playerid))
    {
    if (PlayerToPoint(25.0,playerid,207.5627,-103.7291,1005.2578) /|| PlayerToPoint(25.0,playerid,203.9068,-41.0728,1001.8047)) // 2172


    Zeile2064: if (IsACopCar(vehicleid) && !ispassenger)
    Zeile2067: else { WantedPoints[playerid]+=2; SetPlayerCriminal(playerid,255, "Klaut Polizeiwagen "); }
    Zeile2069: if (IsAnAmbulance(vehicleid) && !ispassenger)
    Zeile2072: else { WantedPoints[playerid]+=2; SetPlayerCriminal(playerid,255, "Klaut Krankenwagen"); }
    Zeile2172: if (PlayerToPoint(25.0,playerid,207.5627,-103.7291,1005.2578) /|| PlayerToPoint(25.0,playerid,203.9068,-41.0728,1001.8047))


    LG JasonX

    3 Mal editiert, zuletzt von JasonX ()

  • if (IsACopCar(vehicleid) && !ispassenger)
    {
    if(PlayerInfo[playerid][pLeader]==1||PlayerInfo[playerid][pMember]==1) {}
    else { WantedPoints[playerid]+=2; SetPlayerCriminal(playerid,255, "Kradzie¿ Policyjnego Auta"); }
    }
    if (IsAnAmbulance(vehicleid) && !ispassenger)
    {
    if(PlayerInfo[playerid][pMember]==4||PlayerInfo[playerid][pLeader]==4) { }
    else { WantedPoints[playerid]+=2; SetPlayerCriminal(playerid,255, "Kradzie¿ Ambulansu"); }
    }
    }
    return 1;
    }


    public IsAnInstructor(playerid)
    {
    if(IsPlayerConnected(playerid))
    {
    new leader = PlayerInfo[playerid][pLeader];
    new member = PlayerInfo[playerid][pMember];
    if(member==11)
    {
    return 1;
    }
    if(leader==11)
    {
    return 1;
    }
    }
    return 0;
    }


    public IsAMember(playerid)
    {
    if(IsPlayerConnected(playerid))
    {
    new leader = PlayerInfo[playerid][pLeader];
    new member = PlayerInfo[playerid][pMember];
    if(member==5 || member==6 || member==8 || member==12)
    {
    return 1;
    }
    if(leader==5 || leader==6 || leader==8 || leader==12)
    {
    return 1;
    }
    }
    return 0;
    }


    public IsACop(playerid)
    {
    if(IsPlayerConnected(playerid))
    {
    new leader = PlayerInfo[playerid][pLeader];
    new member = PlayerInfo[playerid][pMember];
    if(member==1 || member==2 || member==3)
    {
    return 1;
    }
    else if(leader==1 || leader==2 || leader==3)
    {
    return 1;
    }
    }
    return 0;
    }


    public IsAFBI(playerid)
    {
    if(IsPlayerConnected(playerid))
    {
    new leader = PlayerInfo[playerid][pLeader];
    new member = PlayerInfo[playerid][pMember];
    if(member==2)
    {
    return 1;
    }
    else if(leader==2)
    {
    return 1;
    }
    }
    return 0;
    }


    public IsANG(playerid)
    {
    if(IsPlayerConnected(playerid))
    {
    new leader = PlayerInfo[playerid][pLeader];
    new member = PlayerInfo[playerid][pMember];
    if(member==3)
    {
    return 1;
    }
    else if(leader==3)
    {
    return 1;
    }
    }
    return 0;
    }


    public IsAtClothShop(playerid)
    {
    if(IsPlayerConnected(playerid))
    {
    if (!PlayerToPoint(25.0,playerid,207.5627,-103.7291,1005.2578) || PlayerToPoint(25.0,playerid,203.9068,-41.0728,1001.8047))

  • Underdead bei deinem PWN Code hab ich 10 Errors


    C:\Users\Patrick\Desktop\Server[CSS]\GodFather\Gamemodes\gf.pwn(2064) : error 004: function "IsACopCar" is not implemented
    C:\Users\Patrick\Desktop\Server[CSS]\GodFather\Gamemodes\gf.pwn(2067) : error 004: function "SetPlayerCriminal" is not implemented
    C:\Users\Patrick\Desktop\Server[CSS]\GodFather\Gamemodes\gf.pwn(2069) : error 004: function "IsAnAmbulance" is not implemented
    C:\Users\Patrick\Desktop\Server[CSS]\GodFather\Gamemodes\gf.pwn(2072) : error 004: function "SetPlayerCriminal" is not implemented
    C:\Users\Patrick\Desktop\Server[CSS]\GodFather\Gamemodes\gf.pwn(2172) : error 004: function "PlayerToPoint" is not implemented
    C:\Users\Patrick\Desktop\Server[CSS]\GodFather\Gamemodes\gf.pwn(2174) : error 079: inconsistent return types (array & non-array)
    C:\Users\Patrick\Desktop\Server[CSS]\GodFather\Gamemodes\gf.pwn(2176) : warning 225: unreachable code
    C:\Users\Patrick\Desktop\Server[CSS]\GodFather\Gamemodes\gf.pwn(2176) : error 029: invalid expression, assumed zero
    C:\Users\Patrick\Desktop\Server[CSS]\GodFather\Gamemodes\gf.pwn(2176) : warning 215: expression has no effect
    C:\Users\Patrick\Desktop\Server[CSS]\GodFather\Gamemodes\gf.pwn(2176) : error 001: expected token: ";", but found "if"
    C:\Users\Patrick\Desktop\Server[CSS]\GodFather\Gamemodes\gf.pwn(2176) : error 004: function "PlayerToPoint" is not implemented
    C:\Users\Patrick\Desktop\Server[CSS]\GodFather\Gamemodes\gf.pwn(2176) : fatal error 107: too many error messages on one line


    Kann mir keiner Helfen???

    Einmal editiert, zuletzt von JasonX ()

  • // wird nur vom Compiler übersehen also das er das nicht mit nimmt^^

  • Steht der Code so in deinem Gamemode oder hast du nur ein paar Stellen vom Gamemode zitiert? Wenn es genauso in deinem Gamemode steht, kommt ein Fehler, weil du ein if Statement außerhalb eines Callbacks verwendest. So wie ich das anschaue, solltest du den oberen Teil mit den "ifs" (CopCar und Ambulance) in den Callback "OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)" einfügen.

  • if (IsACopCar(vehicleid) && !ispassenger)
    {
    if(PlayerInfo[playerid][pLeader]==1||PlayerInfo[playerid][pMember]==1)
    else { WantedPoints[playerid]+=2; SetPlayerCriminal(playerid,255, "Kradzie¿ Policyjnego Auta");
    }
    if (IsAnAmbulance(vehicleid) && !ispassenger)
    {
    if(PlayerInfo[playerid][pMember]==4||PlayerInfo[playerid][pLeader]==4)
    else { WantedPoints[playerid]+=2; SetPlayerCriminal(playerid,255, "Kradzie¿ Ambulansu");
    }
    }
    return 1;
    }


    public IsAnInstructor(playerid)
    {
    if(IsPlayerConnected(playerid))
    {
    new leader = PlayerInfo[playerid][pLeader];
    new member = PlayerInfo[playerid][pMember];
    if(member==11)
    {
    return 1;
    }
    if(leader==11)
    {
    return 1;
    }
    }
    return 0;
    }


    public IsAMember(playerid)
    {
    if(IsPlayerConnected(playerid))
    {
    new leader = PlayerInfo[playerid][pLeader];
    new member = PlayerInfo[playerid][pMember];
    if(member==5 || member==6 || member==8 || member==12)
    {
    return 1;
    }
    if(leader==5 || leader==6 || leader==8 || leader==12)
    {
    return 1;
    }
    }
    return 0;
    }


    public IsACop(playerid)
    {
    if(IsPlayerConnected(playerid))
    {
    new leader = PlayerInfo[playerid][pLeader];
    new member = PlayerInfo[playerid][pMember];
    if(member==1 || member==2 || member==3)
    {
    return 1;
    }
    else if(leader==1 || leader==2 || leader==3)
    {
    return 1;
    }
    }
    return 0;
    }


    public IsAFBI(playerid)
    {
    if(IsPlayerConnected(playerid))
    {
    new leader = PlayerInfo[playerid][pLeader];
    new member = PlayerInfo[playerid][pMember];
    if(member==2)
    {
    return 1;
    }
    else if(leader==2)
    {
    return 1;
    }
    }
    return 0;
    }


    public IsANG(playerid)
    {
    if(IsPlayerConnected(playerid))
    {
    new leader = PlayerInfo[playerid][pLeader];
    new member = PlayerInfo[playerid][pMember];
    if(member==3)
    {
    return 1;
    }
    else if(leader==3)
    {
    return 1;
    }
    }
    return 0;
    }


    public IsAtClothShop(playerid)
    {
    if(!IsPlayerConnected(playerid))
    {
    if (PlayerToPoint(25.0,playerid,207.5627,-103.7291,1005.2578) || PlayerToPoint(25.0,playerid,203.9068,-41.0728,1001.8047))