Beiträge von They[NEF]

    hey.
    Wenn ich z.B /makeadmin (meine version settm) machen will.
    Steht da: Unknown Server Command.
    Hier Code:
    (ps, ich bin admin)


    dcmd_settm(playerid,params[])
    {
    new pID, rang, pnameb[MAX_PLAYER_NAME];
    if(sscanf(params,"ui",pID,rang))return SendClientMessage(playerid,COLOR_ROT,"Befehl: /settm [playerid][Rang]");
    if(SInfo[playerid][pAdmin] >= 5)
    {
    GetPlayerName(playerid,pname,sizeof(pname));
    GetPlayerName(pID,pnameb,sizeof(pnameb));
    SInfo[pID][pAdmin] = rang;
    format(str,sizeof(str),"Administrator %s hat %s zu Adminrang %d befördert.",pname,pnameb,rang);
    SendClientMessageToAll(COLOR_GELB,str);
    return 1;
    }
    return Adminbefehl;
    }


    dcmd_setchef(playerid,params[])
    {
    new pID, rang, pnameb[MAX_PLAYER_NAME];
    if(sscanf(params,"ui",pID,rang))return SendClientMessage(playerid,COLOR_ROT,"Befehl: /setchef [playerid][Fraktion]");
    if(SInfo[playerid][pAdmin] >= 4)
    {
    GetPlayerName(playerid,pname,sizeof(pname));
    GetPlayerName(pID,pnameb,sizeof(pnameb));
    SInfo[pID][pLeader] = rang;
    SendClientMessage(playerid,0xFFFFFFFF,"Du hast %s zum Chef der %d gemacht.",pnameb,rang);
    format(str,sizeof(str),"Teammitglied %s hat %s zur Fraktion %d hinzugefügt.",pname,pnameb,rang);
    SendClientMessageToAll(COLOR_GELB,str);
    return 1;
    }
    return Adminbefehl;
    }




    /e


    Warnings (falls es unterstützt)
    C:\Users\Home\Desktop\It's Roleplay v0.1\Neuer Ordner\pawno\include\md5.inc(92) : warning 219: local variable "str" shadows a variable at a preceding level
    C:\Users\Home\Desktop\It's Roleplay v0.1\Neuer Ordner\gamemodes\Selfmade.pwn(3257) : warning 203: symbol is never used: "params"
    C:\Users\Home\Desktop\It's Roleplay v0.1\Neuer Ordner\gamemodes\Selfmade.pwn(3350) : warning 204: symbol is assigned a value that is never used: "vehicleid"
    C:\Users\Home\Desktop\It's Roleplay v0.1\Neuer Ordner\gamemodes\Selfmade.pwn(3720) : warning 202: number of arguments does not match definition
    C:\Users\Home\Desktop\It's Roleplay v0.1\Neuer Ordner\gamemodes\Selfmade.pwn(3720) : warning 202: number of arguments does not match definition
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    5 Warnings.

    Die Errors:
    C:\Users\Home\Desktop\It's Roleplay v0.1\gamemodes\IR.pwn(48) : error 017: undefined symbol "DIALOG_STLYE_PASSWORD"
    C:\Users\Home\Desktop\It's Roleplay v0.1\gamemodes\IR.pwn(55) : error 010: invalid function or declaration
    C:\Users\Home\Desktop\It's Roleplay v0.1\gamemodes\IR.pwn(241) : warning 217: loose indentation
    C:\Users\Home\Desktop\It's Roleplay v0.1\gamemodes\IR.pwn(248) : error 017: undefined symbol "DIALOG_STLYE_PASSWORD"
    C:\Users\Home\Desktop\It's Roleplay v0.1\gamemodes\IR.pwn(252) : warning 217: loose indentation
    C:\Users\Home\Desktop\It's Roleplay v0.1\gamemodes\IR.pwn(255) : warning 217: loose indentation
    C:\Users\Home\Desktop\It's Roleplay v0.1\gamemodes\IR.pwn(264) : warning 219: local variable "name" shadows a variable at a preceding level
    C:\Users\Home\Desktop\It's Roleplay v0.1\gamemodes\IR.pwn(278) : error 017: undefined symbol "spielerdatei"
    C:\Users\Home\Desktop\It's Roleplay v0.1\gamemodes\IR.pwn(281) : warning 217: loose indentation
    C:\Users\Home\Desktop\It's Roleplay v0.1\gamemodes\IR.pwn(281) : error 017: undefined symbol "SpielerLaden"
    C:\Users\Home\Desktop\It's Roleplay v0.1\gamemodes\IR.pwn(285) : error 017: undefined symbol "DIALOG_STLYE_PASSWORD"
    C:\Users\Home\Desktop\It's Roleplay v0.1\gamemodes\IR.pwn(300) : warning 217: loose indentation
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    6 Errors.

    Hab ich doch ^^


    :


    #include <a_samp>
    #include <dini>
    #include <md5>




    #if defined FILTERSCRIPT
    #define REGISTER 1
    #define LOGIN 2
    new spieler[128];


    main()
    {
    print("\n----------------------------------");
    print(" It's Roleplay v0.1");
    print("----------------------------------\n");
    }

    Ich habe definiert:


    #include <a_samp>
    #include <dini>
    #include <md5>




    #if defined FILTERSCRIPT
    #define REGISTER 1
    #define LOGIN 2
    new spieler[128];


    main()
    {
    print("\n----------------------------------");
    print(" It's Roleplay v0.1");
    print("----------------------------------\n");
    }


    Das zweite hab ich nicht verstanden.
    Bitte nochmal


    MfG

    C:\Users\Home\Desktop\It's Roleplay v0.1\gamemodes\IR.pwn(48) : error 017: undefined symbol "spieler"
    C:\Users\Home\Desktop\It's Roleplay v0.1\gamemodes\IR.pwn(48) : error 017: undefined symbol "spieler"
    C:\Users\Home\Desktop\It's Roleplay v0.1\gamemodes\IR.pwn(48) : error 029: invalid expression, assumed zero
    C:\Users\Home\Desktop\It's Roleplay v0.1\gamemodes\IR.pwn(48) : fatal error 107: too many error messages on one line


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



    4 Errors.


    Zeile 48:
    format(spieler, sizeof(spieler), "/Accounts/%s.ini",name(playerid));


    Danke für die Hilfe..


    Mfg