26 Errors...

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

  • ../include/gl_common.inc(80) : error 021: symbol already defined: "strtok"
    ../include/gl_common.inc(95) : error 047: array sizes do not match, or destination array is too small
    ../include/gl_common.inc(139) : error 021: symbol already defined: "isNumeric"
    ../include/gl_common.inc(194) : error 021: symbol already defined: "ReturnUser"
    C:\Users\Master\Desktop\UltimateReallife\gamemodes\NSR.pwn(18932) : error 047: array sizes do not match, or destination array is too small
    C:\Users\Master\Desktop\UltimateReallife\gamemodes\NSR.pwn(19146) : error 047: array sizes do not match, or destination array is too small
    C:\Users\Master\Desktop\UltimateReallife\gamemodes\NSR.pwn(19353) : error 047: array sizes do not match, or destination array is too small
    C:\Users\Master\Desktop\UltimateReallife\gamemodes\NSR.pwn(19383) : error 047: array sizes do not match, or destination array is too small
    C:\Users\Master\Desktop\UltimateReallife\gamemodes\NSR.pwn(19437) : error 047: array sizes do not match, or destination array is too small
    C:\Users\Master\Desktop\UltimateReallife\gamemodes\NSR.pwn(19467) : error 047: array sizes do not match, or destination array is too small
    C:\Users\Master\Desktop\UltimateReallife\gamemodes\NSR.pwn(19653) : error 047: array sizes do not match, or destination array is too small
    C:\Users\Master\Desktop\UltimateReallife\gamemodes\NSR.pwn(19661) : error 047: array sizes do not match, or destination array is too small
    C:\Users\Master\Desktop\UltimateReallife\gamemodes\NSR.pwn(19817) : error 047: array sizes do not match, or destination array is too small
    C:\Users\Master\Desktop\UltimateReallife\gamemodes\NSR.pwn(19826) : error 047: array sizes do not match, or destination array is too small
    C:\Users\Master\Desktop\UltimateReallife\gamemodes\NSR.pwn(19861) : error 047: array sizes do not match, or destination array is too small
    C:\Users\Master\Desktop\UltimateReallife\gamemodes\NSR.pwn(20030) : error 047: array sizes do not match, or destination array is too small
    C:\Users\Master\Desktop\UltimateReallife\gamemodes\NSR.pwn(20077) : error 047: array sizes do not match, or destination array is too small
    C:\Users\Master\Desktop\UltimateReallife\gamemodes\NSR.pwn(20083) : error 047: array sizes do not match, or destination array is too small
    C:\Users\Master\Desktop\UltimateReallife\gamemodes\NSR.pwn(20095) : error 047: array sizes do not match, or destination array is too small
    C:\Users\Master\Desktop\UltimateReallife\gamemodes\NSR.pwn(20141) : error 047: array sizes do not match, or destination array is too small
    C:\Users\Master\Desktop\UltimateReallife\gamemodes\NSR.pwn(20150) : error 047: array sizes do not match, or destination array is too small
    C:\Users\Master\Desktop\UltimateReallife\gamemodes\NSR.pwn(20210) : error 047: array sizes do not match, or destination array is too small
    C:\Users\Master\Desktop\UltimateReallife\gamemodes\NSR.pwn(20288) : error 047: array sizes do not match, or destination array is too small
    C:\Users\Master\Desktop\UltimateReallife\gamemodes\NSR.pwn(20356) : error 047: array sizes do not match, or destination array is too small
    C:\Users\Master\Desktop\UltimateReallife\gamemodes\NSR.pwn(20499) : error 047: array sizes do not match, or destination array is too small


    Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    26 Errors.



    Und ich hab nirgendswo im Script strtok definiert....

  • error 021: symbol already defined: "strtok"


    Schon definiert, also weg machen.


    error 021: symbol already defined: "isNumeric"
    error 021: symbol already defined: "ReturnUser"


    Ebenfalls. Wobei sich diese Errors im Include gl_common.inc befinden. Lösche einfach strtok, isNumeric und ReturnUser aus deinem Script.


    error 047: array sizes do not match, or destination array is too small


    Poste dazu die jeweiligen Zeilen

  • Hier ein kleines Beispiel :



    else if(strcmp(x_nr,"Drogen",true) == 0)
    {
    tmp = strtok(cmdtext, idx);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GRAD2, "Benutzung: /put drogen [Menge]");
    format(string, sizeof(string), " Du hast %d Drogen bei dir.", PlayerInfo[playerid][pDrugs]);
    SendClientMessage(playerid, COLOR_GRAD3, string);
    return 1;
    }
    new drugss;
    drugss = strval(tmp);
    if(!strlen(tmp))
    {
    SendClientMessage(playerid, COLOR_GRAD2, "Benutzung: /put drogen [Menge]");
    format(string, sizeof(string), " Du hast %d Drogen bei dir.", PlayerInfo[playerid][pDrugs]);
    SendClientMessage(playerid, COLOR_GRAD3, string);
    return 1;
    }
    if(drugss > PlayerInfo[playerid][pDrugs])
    {
    SendClientMessage(playerid, COLOR_GRAD2, " So viele Drogen hast du nicht!");
    return 1;
    }
    PlayerInfo[playerid][pDrugs] -= drugss;
    PlayerInfo[playerid][pBoxDrugs] += drugss;
    format(string, sizeof(string), " %d Drogen in die Savebox gelegt!", drugss);
    SendClientMessage(playerid, COLOR_GRAD4, string);
    return 1;
    }
    }
    else
    {
    SendClientMessage(playerid, COLOR_RED, " Du bist an keiner Savebox!");
    return 1;
    }
    }
    return 1;