Beiträge von [SaR]Decimo

    wenn ich das so mache und compile kommt das



    C:\Users\Eve\Desktop\Sonstiges\pawno\GM9.6.pwn(48672) : warning 219: local variable "pID" shadows a variable at a preceding level
    C:\Users\Eve\Desktop\Sonstiges\pawno\GM9.6.pwn(49059) : warning 219: local variable "pID" shadows a variable at a preceding level
    C:\Users\Eve\Desktop\Sonstiges\pawno\GM9.6.pwn(49230) : error 010: invalid function or declaration
    C:\Users\Eve\Desktop\Sonstiges\pawno\GM9.6.pwn(49232) : error 010: invalid function or declaration
    C:\Users\Eve\Desktop\Sonstiges\pawno\GM9.6.pwn(49235) : error 010: invalid function or declaration
    C:\Users\Eve\Desktop\Sonstiges\pawno\GM9.6.pwn(49236) : error 010: invalid function or declaration
    C:\Users\Eve\Desktop\Sonstiges\pawno\GM9.6.pwn(49237) : error 010: invalid function or declaration
    C:\Users\Eve\Desktop\Sonstiges\pawno\GM9.6.pwn(49238) : error 010: invalid function or declaration
    C:\Users\Eve\Desktop\Sonstiges\pawno\GM9.6.pwn(49240) : error 021: symbol already defined: "M_GivePlayerMoney"
    C:\Users\Eve\Desktop\Sonstiges\pawno\GM9.6.pwn(49243) : error 010: invalid function or declaration
    C:\Users\Eve\Desktop\Sonstiges\pawno\GM9.6.pwn(49245) : error 021: symbol already defined: "M_GivePlayerMoney"
    C:\Users\Eve\Desktop\Sonstiges\pawno\GM9.6.pwn(49248) : error 010: invalid function or declaration
    C:\Users\Eve\Desktop\Sonstiges\pawno\GM9.6.pwn(49250) : error 021: symbol already defined: "M_GivePlayerMoney"
    C:\Users\Eve\Desktop\Sonstiges\pawno\GM9.6.pwn(49253) : error 010: invalid function or declaration
    C:\Users\Eve\Desktop\Sonstiges\pawno\GM9.6.pwn(49255) : error 021: symbol already defined: "M_GivePlayerMoney"
    C:\Users\Eve\Desktop\Sonstiges\pawno\GM9.6.pwn(49262) : error 021: symbol already defined: "ABroadCast"
    C:\Users\Eve\Desktop\Sonstiges\pawno\GM9.6.pwn(49263) : error 010: invalid function or declaration
    C:\Users\Eve\Desktop\Sonstiges\pawno\GM9.6.pwn(49265) : error 010: invalid function or declaration
    C:\Users\Eve\Desktop\Sonstiges\pawno\GM9.6.pwn(49267) : warning 203: symbol is never used: "Rank"
    C:\Users\Eve\Desktop\Sonstiges\pawno\GM9.6.pwn(49267) : warning 203: symbol is never used: "pID"
    C:\Users\Eve\Desktop\Sonstiges\pawno\GM9.6.pwn(49267) : warning 203: symbol is never used: "stingx"

    dcmd_givedonator(playerid, params[])
    {
    if(PlayerInfo[playerid][pAdmin] == 2002)
    {
    new pID, Rank;
    if(sscanf(params, "ui", pID, Rank)) return SendClientMessage(playerid, COLOR_WHITE, "Befehl: /givedonator [Spieler-ID/Name] [Donatorrank]");
    if(!IsPlayerConnected(pID)) return SendClientMessage(playerid, COLOR_WHITE, "Der Spieler ist nicht Online.");
    if(Rank==0||Rank >= 5) return SendClientMessage(playerid, COLOR_GREY, "Es gibt nur die Ränge 1-4.");
    if(Rank == 1) {
    GivePlayerMoney(pID, 50000);
    PlayerInfo[pID][pExp] += 3;
    }
    else if(Rank == 2) {
    GivePlayerMoney(pID, 100000);
    PlayerInfo[pID][pExp] += 6;
    }
    else if(Rank == 3) {
    GivePlayerMoney(pID, 150000);
    PlayerInfo[pID][pExp] += 9;
    }
    else if(Rank == 4) {
    GivePlayerMoney(pID, 350000);
    PlayerInfo[pID][pExp] += 12;
    }
    PlayerInfo[pID][pDonateRank] = Rank;
    format(stringx, sizeof(stringx), "Herzlichen Glückwunsch! Du hast den Donator-Rang %d! Siehe unter /rechte zu sehen was er dir für Vorteile bringt.", Rank);
    SendClientMessage(pID, COLOR_LIGHTBLUE, stringx);
    format(stringx, sizeof(stringx), "AdmCmd: Admin %s hat %s den Donator-Rang %d gegeben!", MeinName(playerid), MeinName(pID), Rank);
    ABroadCast(COLOR_LIGHTRED, stringx, 1);
    }
    else return SendClientMessage(playerid, COLOR_WHITE, "Nur für Projektleiter");
    return 1;
    }







    C:\Users\Eve\Desktop\Sonstiges\pawno\GM9.6.pwn(49286) : error 035: argument type mismatch (argument 1)
    C:\Users\Eve\Desktop\Sonstiges\pawno\GM9.6.pwn(49286) : error 020: invalid symbol name ""
    C:\Users\Eve\Desktop\Sonstiges\pawno\GM9.6.pwn(49286) : error 029: invalid expression, assumed zero




    wenn ich das compilen will kommen diese errors ich weiß nit mehr weiter hoffe auf hilfe danke