Hilfe habe Errors pls Hilfe

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 benoetige etwas hilfe wieso kommen diese Errors??


    C:\DOKUME~1\...\Desktop\Godfather\pawno\include\morphinc.inc(5) : Variable "x" wurde mehrmals deklariert
    C:\DOKUME~1\...\Desktop\Godfather\pawno\include\morphinc.inc(5) : Variable "y" wurde mehrmals deklariert
    C:\DOKUME~1\...\Desktop\Godfather\pawno\include\morphinc.inc(5) : Variable "z" wurde mehrmals deklariert
    C:\DOKUME~1\...\Desktop\Godfather\pawno\include\dutils.inc(28) : Variable "string" wurde mehrmals deklariert
    C:\DOKUME~1\...\Desktop\Godfather\pawno\include\dutils.inc(132) : Variable "string" wurde mehrmals deklariert
    C:\DOKUME~1\...\Desktop\Godfather\pawno\include\dutils.inc(172) : Variable "string" wurde mehrmals deklariert
    C:\DOKUME~1\...\Desktop\Godfather\pawno\include\dutils.inc(280) : Variable "string" wurde mehrmals deklariert
    C:\DOKUME~1\...\Desktop\Godfather\pawno\include\dutils.inc(337) : Variable "string" wurde mehrmals deklariert
    C:\DOKUME~1\...\Desktop\Godfather\pawno\include\dutils.inc(379) : Variable "string" wurde mehrmals deklariert
    Zeile (2237) : Variable wurde bereits definiert: "Time"
    Zeile (3622) : error 025: function heading differs from prototype
    Zeile (3623) : Variable wurde bereits definiert: "strtok"
    Zeile (3638) : error 047: array sizes do not match, or destination array is too small
    Zeile (6827) : error 076: syntax error in the expression, or invalid function call
    Zeile (6947) : error 076: syntax error in the expression, or invalid function call
    Zeile (17252) : error 076: syntax error in the expression, or invalid function call
    Zeile (17254) : error 076: syntax error in the expression, or invalid function call
    Zeile (17255) : error 076: syntax error in the expression, or invalid function call
    Zeile (17256) : error 076: syntax error in the expression, or invalid function call
    Zeile (17257) : error 076: syntax error in the expression, or invalid function call
    Zeile (26619) : Variable "mod" wurde mehrmals deklariert


    ??


    Hier dazu die zeilen:


    Zeile 5: #include <float>


    Zeile: 28: #define DIALOG_REPORT 5547


    Zeile 279: stock UnFreezePlayer(playerid)
    stock UnFreezePlayer(playerid)
    {
    TogglePlayerControllable(playerid,true);
    M_Bot[playerid][PFrozen] = 0;
    }


    Zeile 2237: new TaxiCallTime[MAX_PLAYERS];


    Zeile: 3622


    public SearchingHit(playerid)
    {
    new giveplayer[MAX_PLAYER_NAME];
    new searchhit = 0;
    for(new i=0; i<MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i))
    {
    if(searchhit == 0)
    {
    if(PlayerInfo[i][pHeadValue] > 0 && GotHit[i] == 0 && PlayerInfo[i][pMember] != 8)
    {
    GetPlayerName(i, giveplayer, sizeof(giveplayer));
    searchhit = 1;
    hitfound = 1;
    hitid = i;
    for(new k=0; k<MAX_PLAYERS; k++)
    {
    if(IsPlayerConnected(k))
    {
    if(PlayerInfo[k][pMember] == 8 || PlayerInfo[k][pLeader] == 8)
    {
    SendClientMessage(k, COLOR_WHITE, "|__________________ Hitman Agentur News __________________|");
    SendClientMessage(k, COLOR_DBLUE, "*** Eingehende Mitteilung: Ein Auftrag ist verfügbar. ***");
    format(string, sizeof(string), "Person: %s ID: %d Bezahlung: $%d", giveplayer, i, PlayerInfo[i][pHeadValue]);
    SendClientMessage(k, COLOR_DBLUE, string);
    SendClientMessage(k, COLOR_YELLOW, "Benutze auftraggeben [hitmanid], um den Auftrag einem Hitman zuzuweisen.");
    SendClientMessage(k, COLOR_WHITE, "|________________________________________________________|");
    }
    }
    }
    return 0;
    }
    }
    }
    }
    if(searchhit == 0)
    {
    SendClientMessage(playerid, COLOR_GREY, " Es sind momentan keine Aufträge verfügbar!");
    }
    return 0;
    }


    Zeile 6827: if(!strcmp(botname, "Pilot", true))
    {
    PlayerInfo[playerid][pCarLic] = 1;
    PlayerInfo[playerid][pFlyLic] = 1;
    PutPlayerInVehicle(playerid, Helikopter, 0);
    printf("[NPC(SPAWN)]:NPC 'Pilot' wurde erfolgreich gespawnt und in den Helikopter[Vehicleid:1] gesetzt!");
    SetPlayerChatBubble(playerid,"Helikopter Rundflüge",COLOR_LIGHTBLUE,40.0,9999999);
    SetPlayerSkin(playerid, 71);
    SetTimerEx("LightOn",5000,0,"i",GetPlayerVehicleID(playerid));
    SetTimerEx("EngineOn",5000,0,"i",GetPlayerVehicleID(playerid));
    return 1;
    }


    Zeile: 6947: if(mafid==1||mafid==2||mafid==3||mafid==4||mafid==5||mafid==6)


    Zeile 26619: else if (strcmp(gunid, "Baseballschläger", true, strlen(gunid)) == 0)
    {
    gun = 5; guncharge = GunPrice[4][0]/100*mod; ammocharge = 0;
    PlayerInfo[playerid][pGun1] = 5; PlayerInfo[playerid][pAmmo1] = 1;
    }


    Wieso kommen diese Errors??? ;(

  • so habe jetzt die Includes alle geupdatet aber es klapt innernoch nicht


    diese Errors::


    C:\DOKUME~1\Tobias.PAPAPC\Desktop\Godfather\pawno\include\utils.inc(1) : Variable "string" wurde mehrmals deklariert
    C:\DOKUME~1\Tobias.PAPAPC\Desktop\Godfather\pawno\include\morphinc.inc(5) : Variable "x" wurde mehrmals deklariert
    C:\DOKUME~1\Tobias.PAPAPC\Desktop\Godfather\pawno\include\morphinc.inc(5) : Variable "y" wurde mehrmals deklariert
    C:\DOKUME~1\Tobias.PAPAPC\Desktop\Godfather\pawno\include\morphinc.inc(5) : Variable "z" wurde mehrmals deklariert
    C:\DOKUME~1\Tobias.PAPAPC\Desktop\Godfather\pawno\include\dutils.inc(28) : Variable "string" wurde mehrmals deklariert
    C:\DOKUME~1\Tobias.PAPAPC\Desktop\Godfather\pawno\include\dutils.inc(132) : Variable "string" wurde mehrmals deklariert
    C:\DOKUME~1\Tobias.PAPAPC\Desktop\Godfather\pawno\include\dutils.inc(172) : Variable "string" wurde mehrmals deklariert
    C:\DOKUME~1\Tobias.PAPAPC\Desktop\Godfather\pawno\include\dutils.inc(280) : Variable "string" wurde mehrmals deklariert
    C:\DOKUME~1\Tobias.PAPAPC\Desktop\Godfather\pawno\include\dutils.inc(337) : Variable "string" wurde mehrmals deklariert
    C:\DOKUME~1\Tobias.PAPAPC\Desktop\Godfather\pawno\include\dutils.inc(379) : Variable "string" wurde mehrmals deklariert
    Zeile (3579) : error 025: function heading differs from prototype
    Zeile (3580) : Variable wurde bereits definiert: "strtok"
    Zeile (3595) : error 047: array sizes do not match, or destination array is too small
    Zeile (6784) : error 076: syntax error in the expression, or invalid function call
    Zeile (6904) : error 076: syntax error in the expression, or invalid function call
    Zeile (17209) : error 076: syntax error in the expression, or invalid function call
    Zeile (17211) : error 076: syntax error in the expression, or invalid function call
    Zeile (17212) : error 076: syntax error in the expression, or invalid function call
    Zeile (17213) : error 076: syntax error in the expression, or invalid function call
    Zeile (17214) : error 076: syntax error in the expression, or invalid function call
    Zeile (26564) : Variable "mod" wurde mehrmals deklariert
    Zeile (58682) : Variable wird nie benutzt: "Time2"


    17 Errors, 12 Warnungen
    Du hast Errors im Skript. Kompilierung abgebrochen

    • Offizieller Beitrag

    Die ersten zehn Fehler bedeuten, dass etwas mit den Includes nicht stimmt.
    Es heißt, dass einige Variablen öfter mit dem selben Namen erstellt werden.
    Das Stichwort ist hier eine Umbenennung von z.B. string zu string1 o.ä.
    Fehler 12 sagt dir, dass die Variable bereits existiert. Klammere eine davon aus (//).
    Fehler 21 ist praktisch dasselbe, wie die Fehler in den Includes.
    Variable "Time2" wird nicht benutzt, kannst du auch ausklammern (//).

  • jetzt habe ich 47 Errors


    C:\DOKUME~1\Tobias.PAPAPC\Desktop\Godfather\pawno\include\utils.inc(1) : Variable "string" wurde mehrmals deklariert
    C:\DOKUME~1\Tobias.PAPAPC\Desktop\Godfather\pawno\include\morphinc.inc(5) : Variable "x" wurde mehrmals deklariert
    C:\DOKUME~1\Tobias.PAPAPC\Desktop\Godfather\pawno\include\morphinc.inc(5) : Variable "y" wurde mehrmals deklariert
    C:\DOKUME~1\Tobias.PAPAPC\Desktop\Godfather\pawno\include\morphinc.inc(5) : Variable "z" wurde mehrmals deklariert
    C:\DOKUME~1\Tobias.PAPAPC\Desktop\Godfather\pawno\include\dutils.inc(28) : Variable "string" wurde mehrmals deklariert
    C:\DOKUME~1\Tobias.PAPAPC\Desktop\Godfather\pawno\include\dutils.inc(132) : Variable "string" wurde mehrmals deklariert
    C:\DOKUME~1\Tobias.PAPAPC\Desktop\Godfather\pawno\include\dutils.inc(172) : Variable "string" wurde mehrmals deklariert
    C:\DOKUME~1\Tobias.PAPAPC\Desktop\Godfather\pawno\include\dutils.inc(280) : Variable "string" wurde mehrmals deklariert
    C:\DOKUME~1\Tobias.PAPAPC\Desktop\Godfather\pawno\include\dutils.inc(337) : Variable "string" wurde mehrmals deklariert
    C:\DOKUME~1\Tobias.PAPAPC\Desktop\Godfather\pawno\include\dutils.inc(379) : Variable "string" wurde mehrmals deklariert
    Zeile (2194) : Variable wurde bereits definiert: "Time"
    Zeile (26572 -- 26573) : error 076: syntax error in the expression, or invalid function call
    Zeile (26575 -- 26576) : error 076: syntax error in the expression, or invalid function call
    Zeile (26578 -- 26579) : error 076: syntax error in the expression, or invalid function call
    Zeile (26581 -- 26582) : error 076: syntax error in the expression, or invalid function call
    Zeile (26602) : error 076: syntax error in the expression, or invalid function call
    Zeile (26607) : error 076: syntax error in the expression, or invalid function call
    Zeile (26612) : error 076: syntax error in the expression, or invalid function call
    Zeile (26617) : error 076: syntax error in the expression, or invalid function call
    Zeile (26622) : error 076: syntax error in the expression, or invalid function call
    Zeile (26627) : error 076: syntax error in the expression, or invalid function call
    Zeile (26632) : error 076: syntax error in the expression, or invalid function call
    Zeile (26637) : error 076: syntax error in the expression, or invalid function call
    Zeile (26642) : error 076: syntax error in the expression, or invalid function call
    Zeile (26647) : error 076: syntax error in the expression, or invalid function call
    Zeile (26652) : error 076: syntax error in the expression, or invalid function call
    Zeile (26657) : error 076: syntax error in the expression, or invalid function call
    Zeile (26662) : error 076: syntax error in the expression, or invalid function call
    Zeile (26667) : error 076: syntax error in the expression, or invalid function call
    Zeile (26672) : error 076: syntax error in the expression, or invalid function call
    Zeile (26677) : error 076: syntax error in the expression, or invalid function call
    Zeile (26682) : error 076: syntax error in the expression, or invalid function call
    Zeile (26687) : error 076: syntax error in the expression, or invalid function call
    Zeile (26692) : error 076: syntax error in the expression, or invalid function call


    47 Errors, 10 Warnungen
    Du hast Errors im Skript. Kompilierung abgebrochen


    PWNMod Compiler Version 1.2
    (c) Trooper[Y]

  • so jetzt habe ich mich hingesessen und habe den befehl /buygun rausgenommen jetzt erhalte ich diesen Pawno code>


    C:\DOKUME~1\Tobias.PAPAPC\Desktop\Godfather\pawno\include\utils.inc(1) : Variable "string" wurde mehrmals deklariert
    C:\DOKUME~1\Tobias.PAPAPC\Desktop\Godfather\pawno\include\morphinc.inc(5) : Variable "x" wurde mehrmals deklariert
    C:\DOKUME~1\Tobias.PAPAPC\Desktop\Godfather\pawno\include\morphinc.inc(5) : Variable "y" wurde mehrmals deklariert
    C:\DOKUME~1\Tobias.PAPAPC\Desktop\Godfather\pawno\include\morphinc.inc(5) : Variable "z" wurde mehrmals deklariert
    C:\DOKUME~1\Tobias.PAPAPC\Desktop\Godfather\pawno\include\dutils.inc(28) : Variable "string" wurde mehrmals deklariert
    C:\DOKUME~1\Tobias.PAPAPC\Desktop\Godfather\pawno\include\dutils.inc(132) : Variable "string" wurde mehrmals deklariert
    C:\DOKUME~1\Tobias.PAPAPC\Desktop\Godfather\pawno\include\dutils.inc(172) : Variable "string" wurde mehrmals deklariert
    C:\DOKUME~1\Tobias.PAPAPC\Desktop\Godfather\pawno\include\dutils.inc(280) : Variable "string" wurde mehrmals deklariert
    C:\DOKUME~1\Tobias.PAPAPC\Desktop\Godfather\pawno\include\dutils.inc(337) : Variable "string" wurde mehrmals deklariert
    C:\DOKUME~1\Tobias.PAPAPC\Desktop\Godfather\pawno\include\dutils.inc(379) : Variable "string" wurde mehrmals deklariert
    Zeile (2194) : Variable wurde bereits definiert: "Time"
    Zeile (26545) : warning 216: nested comment


    1 Errors, 11 Warnungen
    Du hast Errors im Skript. Kompilierung abgebrochen


    PWNMod Compiler Version 1.2
    (c) Trooper[Y]
    In Kooperation mit GTA-Servers.de


    wie behebe ich die Errors?

  • nene das habe ich behoben aber jetzt diese Warnungen:


    C:\DOKUME~1\Tobias.PAPAPC\Desktop\Godfather\pawno\include\utils.inc(1) : Variable "string" wurde mehrmals deklariert
    C:\DOKUME~1\Tobias.PAPAPC\Desktop\Godfather\pawno\include\morphinc.inc(5) : Variable "x" wurde mehrmals deklariert
    C:\DOKUME~1\Tobias.PAPAPC\Desktop\Godfather\pawno\include\morphinc.inc(5) : Variable "y" wurde mehrmals deklariert
    C:\DOKUME~1\Tobias.PAPAPC\Desktop\Godfather\pawno\include\morphinc.inc(5) : Variable "z" wurde mehrmals deklariert
    C:\DOKUME~1\Tobias.PAPAPC\Desktop\Godfather\pawno\include\dutils.inc(28) : Variable "string" wurde mehrmals deklariert
    C:\DOKUME~1\Tobias.PAPAPC\Desktop\Godfather\pawno\include\dutils.inc(132) : Variable "string" wurde mehrmals deklariert
    C:\DOKUME~1\Tobias.PAPAPC\Desktop\Godfather\pawno\include\dutils.inc(172) : Variable "string" wurde mehrmals deklariert
    C:\DOKUME~1\Tobias.PAPAPC\Desktop\Godfather\pawno\include\dutils.inc(280) : Variable "string" wurde mehrmals deklariert
    C:\DOKUME~1\Tobias.PAPAPC\Desktop\Godfather\pawno\include\dutils.inc(337) : Variable "string" wurde mehrmals deklariert
    C:\DOKUME~1\Tobias.PAPAPC\Desktop\Godfather\pawno\include\dutils.inc(379) : Variable "string" wurde mehrmals deklariert


    0 Errors, 10 Warnungen
    Kompilierung erfolgreich


    PWNMod Compiler Version 1.2
    (c) Trooper[Y]
    In Kooperation mit GTA-Servers.de


    Zeile1: #include <a_samp>


    Zeile5: #include <float>


    Zeile28: new BlitzOrt[MAX_PLAYERS];


    Zeile172: Float:PXpos,


    Zeile280: M_Bot[playerid][PFrozen] = 0;


    Zeile337: SetTimerEx("BanHim",100,0,"d",playerid);


    Zeile379: stock M_WriteIPToBlacklist(ip[])
    {
    new File:BLACKLISTFILE;
    if(!fexist("/MBot/M_Black.cfg"))
    {
    BLACKLISTFILE = fopen("/MBot/M_Black.cfg",io_write);
    }
    else
    {
    BLACKLISTFILE = fopen("/MBot/M_Black.cfg",io_append);
    }
    if(BLACKLISTFILE)
    {
    new M_Bot_String[20];
    format(M_Bot_String,sizeof(M_Bot_String),"%s\n",ip);
    fwrite(BLACKLISTFILE,M_Bot_String);
    }
    fclose(BLACKLISTFILE);
    }

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