Habe errors Bitte helfen!!!

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
  • Hier der Code Es sind Zeile 19200-19250
    cmd = strtok(cmdtext, idx);
    GetPlayerName(playerid,sendername,sizeof(sendername));
    dcmd(tban,4,cmdtext);
    dcmd(tunban,6,cmdtext);
    /* dcmd(kennzeichenerlauben,19,cmdtext);
    dcmd(kennzeichen,11,cmdtext);
    dcmd(sirene,6,cmdtext);
    dcmd(licht,5,cmdtext);
    dcmd(kofferraum,10,cmdtext);
    dcmd(farbe,5,cmdtext);
    dcmd(efa,3,cmdtext);*/
    dcmd(gocords,7,cmdtext);
    dcmd(zollcontrol,11,cmdtext);
    dcmd(sirene,6,cmdtext);
    dcmd(givedonator,11,cmdtext);
    //dcmd(unban,5,cmdtext);
    dcmd(arbobjid,8,cmdtext);
    dcmd(arb,3,cmdtext);
    dcmd(deletearb,9,cmdtext);
    dcmd(deletearbfor,12,cmdtext);
    dcmd(arball,6,cmdtext);
    dcmd(arbforall,9,cmdtext);
    dcmd(arbobj,6,cmdtext);
    dcmd_tban(playerid,params[])
    {
    new pID,pIdName[MAX_PLAYER_NAME],pName[MAX_PLAYER_NAME],banTime,reason[64],string[128];
    if(!IsPlayerAdmin(playerid)) { return 1; }
    if(sscanf(params,"uds",pID,banTime,reason)) { return SendClientMessage(playerid,0xADC7E7FF,"Usage: /tban [playerid] [time(min)] [reason]"); }
    if(!IsPlayerConnected(pID)) { return SendClientMessage(playerid,0xADC7E7FF,"Invalid ID !"); }
    if(banTime < 1) { return SendClientMessage(playerid,0xADC7E7FF,"Minimum Time: 1 Minute"); }
    GetPlayerName(pID,pIdName,sizeof(pIdName));
    GetPlayerName(playerid,pName,sizeof(pName));
    format(string,sizeof(string),"[TIMEBAN] Admin %s timebanned %s for %d Minutes. Reason: %s",pName,pIdName,banTime,reason);
    SendClientMessageToAll(0xADC7E7FF,string);
    printf("AdmCmd(TIMEBAN): Admin: %s(%i) - Timebanned Player: %s(%i) - Timeban Reason: %s",pName,playerid,pIdName,pID,reason);
    pBanner[pID] = pName;
    TBan(pID,banTime);
    }
    dcmd_tunban(playerid,params[])
    {
    new pName[MAX_PLAYER_NAME],pIdName[MAX_PLAYER_NAME];
    if(!IsPlayerAdmin(playerid)) { return 1; }
    if(sscanf(params,"s",pIdName)) { return SendClientMessage(playerid,0xADC7E7FF,"Usage: /tunban [FULL-playername]"); }
    GetPlayerName(playerid,pName,sizeof(pName));
    if(BanFileExist(pIdName))
    {
    TUnban(pIdName);
    printf("AdmCmd(UNTIMEBAN): Admin: %s(%i) - untimebanned Player: %s",pName,playerid,pIdName);
    } else { return SendClientMessage(playerid,0xADC7E7FF,"Error: Wrong name"); }
    }



    Hier die 4 Errors:
    C:\Users\Peter\Desktop\pawno\include\streamer.inc(330) : warning 201: redefinition of constant/macro (symbol "OnPlayerConnect")
    Zeile (19202) : error 012: invalid function call, not a valid address
    Zeile (19202) : error 029: invalid expression, assumed zero
    Zeile (19202) : error 012: invalid function call, not a valid address
    Zeile (19202) : fatal error 107: too many error messages on one line


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


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


    Bitte um Hilfe

    Mit freunlichen Grüßen
    Pett1


    Mapper und Pprojektleiter von ItCrafted Reallife
    Forum: http://www.itcrafted-forum.tk
    TS: 81.30.150.226:7779
    SA-MP: 46.4.67.124:7779

  • dcmd_tban(playerid,params[])
    {
    new pID,pIdName[MAX_PLAYER_NAME],pName[MAX_PLAYER_NAME],banTime,reason[64],string[128];
    if(!IsPlayerAdmin(playerid)) { return 1; }
    if(sscanf(params,"uds",pID,banTime,reason)) { return SendClientMessage(playerid,0xADC7E7FF,"Usage: /tban [playerid] [time(min)] [reason]"); }
    if(!IsPlayerConnected(pID)) { return SendClientMessage(playerid,0xADC7E7FF,"Invalid ID !"); }
    if(banTime < 1) { return SendClientMessage(playerid,0xADC7E7FF,"Minimum Time: 1 Minute"); }
    GetPlayerName(pID,pIdName,sizeof(pIdName));
    GetPlayerName(playerid,pName,sizeof(pName));
    format(string,sizeof(string),"[TIMEBAN] Admin %s timebanned %s for %d Minutes. Reason: %s",pName,pIdName,banTime,reason);
    SendClientMessageToAll(0xADC7E7FF,string);
    printf("AdmCmd(TIMEBAN): Admin: %s(%i) - Timebanned Player: %s(%i) - Timeban Reason: %s",pName,playerid,pIdName,pID,reason);
    pBanner[pID] = pName;
    TBan(pID,banTime);
    }
    dcmd_tunban(playerid,params[])
    {
    new pName[MAX_PLAYER_NAME],pIdName[MAX_PLAYER_NAME];
    if(!IsPlayerAdmin(playerid)) { return 1; }
    if(sscanf(params,"s",pIdName)) { return SendClientMessage(playerid,0xADC7E7FF,"Usage: /tunban [FULL-playername]"); }
    GetPlayerName(playerid,pName,sizeof(pName));
    if(BanFileExist(pIdName))
    {
    TUnban(pIdName);
    printf("AdmCmd(UNTIMEBAN): Admin: %s(%i) - untimebanned Player: %s",pName,playerid,pIdName);
    } else { return SendClientMessage(playerid,0xADC7E7FF,"Error: Wrong name"); }
    }


    Das muss nicht in das public OnPlayerCommandText


    :D Hau das einfach unten ins Script.

  • ohh das wusste ich net:D
    warte ich versuche mal eben


    Jetzt habe ich aber folgende Errors:
    Zeile (61788) : error 001: expected token: "while", but found "if"
    Zeile (61788 -- 61790) : error 029: invalid expression, assumed zero
    Zeile (61792) : warning 225: unreachable code


    Und hier der Code:(Z 61785-61795)


    #if defined isnull
    if (isnull(string))
    #else
    if (string[0] == 0 || (string[0] == 1 && string[1] == 0))
    #endif
    { return format[0]; }
    #pragma tabsize 4
    while (paramPos < paramCount && string[stringPos]) {
    switch (format[formatPos++]) { case '\0': { return 0; } case 'i', 'd': {
    new neg = 1, num = 0, ch = string[stringPos]; if (ch == '-') { neg = -1; ch = string[++stringPos]; }
    do { stringPos++; if ('0' <= ch <= '9') { num = (num * 10) + (ch - '0'); } else { return -1; } }

    Mit freunlichen Grüßen
    Pett1


    Mapper und Pprojektleiter von ItCrafted Reallife
    Forum: http://www.itcrafted-forum.tk
    TS: 81.30.150.226:7779
    SA-MP: 46.4.67.124:7779

    Einmal editiert, zuletzt von Pett1 ()