Beiträge von Mambo

    Also ich muss oben noch so quasi wie das hier hinpacken:


    enum pInfo
    {
    pKey[128],
    pLevel,
    pAdmin,
    pDonateRank,
    gPupgrade,
    pConnectTime,
    pReg,
    pSex,
    pAge,
    pOrigin,
    pCK,
    pMuted,
    pExp,
    pCash,
    pAccount,
    pCrimes,
    pKills,
    pDeaths,
    pArrested,
    pWantedDeaths,
    pPhoneBook,
    pLottoNr,
    pFishes,
    pBiggestFish,
    pJob,
    pPayCheck,
    pHeadValue,
    pJailed,
    pJailTime,
    pMats,
    pDrugs,
    pLeader,
    pMember,
    pFMember,
    pRank,
    pChar,
    pContractTime,
    pDetSkill,
    pSexSkill,
    pBoxSkill,
    pLawSkill,
    pMechSkill,
    pJackSkill,
    pCarSkill,
    pNewsSkill,
    pDrugsSkill,
    pCookSkill,
    pFishSkill,
    Float:pHealth,
    Float:pSHealth,
    pInt,
    pLocal,
    pTeam,
    pModel,
    pPnumber,
    pPhousekey,
    pPcarkey,
    pPcarkey2,
    pPcarkey3,
    pGangKey,
    pPbiskey,
    Float:pPos_x,
    Float:pPos_y,
    Float:pPos_z,
    pCarLic,
    pFlyLic,
    pBoatLic,
    pFishLic,
    pGunLic,
    pGun1,
    pGun2,
    pGun3,
    pGun4,
    pAmmo1,
    pAmmo2,
    pAmmo3,
    pAmmo4,
    pCarTime,
    pPayDay,
    pPayDayHad,
    pWatch,
    pCrashed,
    pWins,
    pLoses,
    pAlcoholPerk,
    pDrugPerk,
    pMiserPerk,
    pPainPerk,
    pTraderPerk,
    pTut,
    pMissionNr,
    pWarns,
    pVirWorld,
    pFuel,
    pMarried,
    pMarriedTo[128],
    pFishTool,
    pNote1[128],
    pNote1s,
    pNote2[128],
    pNote2s,
    pNote3[128],
    pNote3s,
    pNote4[128],
    pNote4s,
    pNote5[128],
    pNote5s,
    pInvWeapon,
    pInvAmmo,
    pLighter,
    pCigarettes,
    pRequestingBackup,
    pRoadblock,
    pMask,
    pMaskuse,
    pHideNumber,
    pSpeaker,
    pLocked,
    //pSQLID,
    };

    C:\GTa an lol (Lasse)\Server\GTARP\gamemodes\Untitled.pwn(248) : error 029: invalid expression, assumed zero
    C:\GTa an lol (Lasse)\Server\GTARP\gamemodes\Untitled.pwn(248) : warning 215: expression has no effect
    C:\GTa an lol (Lasse)\Server\GTARP\gamemodes\Untitled.pwn(248) : error 001: expected token: ";", but found "]"
    C:\GTa an lol (Lasse)\Server\GTARP\gamemodes\Untitled.pwn(248) : error 029: invalid expression, assumed zero
    C:\GTa an lol (Lasse)\Server\GTARP\gamemodes\Untitled.pwn(248) : 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.

    So Quasi?


    public OnPlayerLogin(playerid,password[])
    {
    new tmp2[256];
    new string2[64];
    new playername2[MAX_PLAYER_NAME];
    new playernamesplit[3][MAX_PLAYER_NAME];
    GetPlayerName(playerid, playername2, sizeof(playername2));
    strfind(playername2,"_",false);
    format(string2, sizeof(string2), "users/%s.ini", playername2);
    new File: UserFile = fopen(string2, io_read);
    if ( UserFile )
    {
    new PassData[256];
    new keytmp[256], valtmp[256];
    fread( UserFile , PassData , sizeof( PassData ) );
    keytmp = ini_GetKey( PassData );
    if( strcmp( keytmp , "Key" , true ) == 0 )
    {
    valtmp = ini_GetValue( PassData );
    //format(PlayerInfo[playerid][pKey], 128, valtmp);
    }
    if(strcmp(PlayerInfo[playerid][pKey],password, true ) == 0 )
    {
    new key[ 256 ] , val[ 256 ];
    new Data[ 256 ];
    while ( fread( UserFile , Data , sizeof( Data ) ) )
    {

    public OnPlayerLogin(playerid,password[])
    {
    new tmp2[256];
    new string2[64];
    new playername2[MAX_PLAYER_NAME];
    new playernamesplit[3][MAX_PLAYER_NAME];
    GetPlayerName(playerid, playername2, sizeof(playername2));
    strfind(playername2,"_",false);
    format(string2, sizeof(string2), "users/%s.ini", playername2);
    new File: UserFile = fopen(string2, io_read);
    if ( UserFile )
    {
    new PassData[256];
    new keytmp[256], valtmp[256];
    fread( UserFile , PassData , sizeof( PassData ) );
    keytmp = ini_GetKey( PassData );
    if( strcmp( keytmp , "Key" , true ) == 0 )
    {
    valtmp = ini_GetValue( PassData );
    format(PlayerInfo[playerid][pKey], 128, valtmp); ////////////////// Hier ist Zeile 246
    }
    if(strcmp(PlayerInfo[playerid][pKey],password, true ) == 0 )
    {
    new key[ 256 ] , val[ 256 ];
    new Data[ 256 ];
    while ( fread( UserFile , Data , sizeof( Data ) ) )
    {

    Dann bekomme ich diese Errors :


    C:\GTa an lol (Lasse)\Server\GTARP\gamemodes\Untitled.pwn(246) : error 029: invalid expression, assumed zero
    C:\GTa an lol (Lasse)\Server\GTARP\gamemodes\Untitled.pwn(246) : warning 215: expression has no effect
    C:\GTa an lol (Lasse)\Server\GTARP\gamemodes\Untitled.pwn(246) : error 001: expected token: ";", but found "]"
    C:\GTa an lol (Lasse)\Server\GTARP\gamemodes\Untitled.pwn(246) : error 029: invalid expression, assumed zero
    C:\GTa an lol (Lasse)\Server\GTARP\gamemodes\Untitled.pwn(246) : 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.

    Hier bei deisen Errors. Was habe ich vergessen oder muss ich umschrieben? Und was und wie muss ich es umschreiben?


    Hier die Errors:
    C:\GTa an lol (Lasse)\Server\GTARP\gamemodes\Untitled.pwn(246) : error 029: invalid expression, assumed zero
    C:\GTa an lol (Lasse)\Server\GTARP\gamemodes\Untitled.pwn(246) : warning 215: expression has no effect
    C:\GTa an lol (Lasse)\Server\GTARP\gamemodes\Untitled.pwn(246) : error 001: expected token: ";", but found "]"
    C:\GTa an lol (Lasse)\Server\GTARP\gamemodes\Untitled.pwn(246) : error 029: invalid expression, assumed zero
    C:\GTa an lol (Lasse)\Server\GTARP\gamemodes\Untitled.pwn(246) : 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.




    Und hier habt ihr die Zeile:


    strmid(PlayerInfo[playerid][pKey], valtmp, 0, strlen(valtmp)-1, 255);

    C:\GTa an lol (Lasse)\Server\GTARP\gamemodes\Untitled.pwn(256) : error 029: invalid expression, assumed zero
    C:\GTa an lol (Lasse)\Server\GTARP\gamemodes\Untitled.pwn(256) : warning 215: expression has no effect
    C:\GTa an lol (Lasse)\Server\GTARP\gamemodes\Untitled.pwn(256) : error 001: expected token: ";", but found "]"
    C:\GTa an lol (Lasse)\Server\GTARP\gamemodes\Untitled.pwn(256) : error 029: invalid expression, assumed zero
    C:\GTa an lol (Lasse)\Server\GTARP\gamemodes\Untitled.pwn(256) : 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 256:


    strmid(PlayerInfo[playerid][pKey], valtmp, 0, strlen(valtmp)-1, 255);

    Hier die Erros.:


    C:\GTa an lol (Lasse)\Server\GTARP\gamemodes\Untitled.pwn(25) : error 026: no matching "#if..."
    C:\GTa an lol (Lasse)\Server\GTARP\gamemodes\Untitled.pwn(34) : error 026: no matching "#if..."
    C:\GTa an lol (Lasse)\Server\GTARP\gamemodes\Untitled.pwn(244) : warning 215: expression has no effect
    C:\GTa an lol (Lasse)\Server\GTARP\gamemodes\Untitled.pwn(256) : error 029: invalid expression, assumed zero
    C:\GTa an lol (Lasse)\Server\GTARP\gamemodes\Untitled.pwn(256) : warning 215: expression has no effect
    C:\GTa an lol (Lasse)\Server\GTARP\gamemodes\Untitled.pwn(256) : error 001: expected token: ";", but found "]"
    C:\GTa an lol (Lasse)\Server\GTARP\gamemodes\Untitled.pwn(256) : error 029: invalid expression, assumed zero
    C:\GTa an lol (Lasse)\Server\GTARP\gamemodes\Untitled.pwn(256) : fatal error 107: too many error messages on one line


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



    6 Errors.



    Zeile 25 #else


    Teile 34 #endif


    Zeile 244 split(playername2, playernamesplit, '_');


    Zeile 256 strmid(PlayerInfo[playerid][pKey], valtmp, 0, strlen(valtmp)-1, 255);

    So hab ein paar sachen geändert.


    das mit


    --------Es wurde im script keine passende "#if/*.....*/" funktion gefunden.


    bin grade verwirrt, habe schonma das Problem gehabt aber vergessen wie ichs wegbekomme

    zeile 21


    #else


    Zeile 30


    #endif


    Zeile 252


    strmid(PlayerInfo[playerid][pKey], valtmp, 0, strlen(valtmp)-1, 255);




    Und wo genau kommt das hin?
    forward split(const strsrc[], strdest[][], delimiter);
    public split(const strsrc[], strdest[][], delimiter)
    {
    new i, li;
    new aNum;
    new len;
    while(i <= strlen(strsrc))
    {
    if(strsrc[i]==delimiter || i==strlen(strsrc))
    {
    len = strmid(strdest[aNum], strsrc, li, i, 128);
    strdest[aNum][len] = 0;
    li = i+1;
    aNum++;
    }
    i++;
    }
    return 1;
    }

    Was kann ich machen um die Errors wegzubekommen?


    C:\GTa an lol (Lasse)\Server\GTARP\gamemodes\Untitled.pwn(21) : error 026: no matching "#if..."
    C:\GTa an lol (Lasse)\Server\GTARP\gamemodes\Untitled.pwn(30) : error 026: no matching "#if..."
    C:\GTa an lol (Lasse)\Server\GTARP\gamemodes\Untitled.pwn(233) : warning 235: public function lacks forward declaration (symbol "OnPlayerLogin")
    C:\GTa an lol (Lasse)\Server\GTARP\gamemodes\Untitled.pwn(240) : error 017: undefined symbol "split"
    C:\GTa an lol (Lasse)\Server\GTARP\gamemodes\Untitled.pwn(252) : error 017: undefined symbol "PlayerInfo"
    C:\GTa an lol (Lasse)\Server\GTARP\gamemodes\Untitled.pwn(252) : warning 215: expression has no effect
    C:\GTa an lol (Lasse)\Server\GTARP\gamemodes\Untitled.pwn(252) : error 001: expected token: ";", but found "]"
    C:\GTa an lol (Lasse)\Server\GTARP\gamemodes\Untitled.pwn(252) : error 029: invalid expression, assumed zero
    C:\GTa an lol (Lasse)\Server\GTARP\gamemodes\Untitled.pwn(252) : fatal error 107: too many error messages on one line


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



    7 Errors.

    Hier die errors
    C:\GTa an lol (Lasse)\Server\GTARP\gamemodes\login_register017.pwn(237) : error 047: array sizes do not match, or destination array is too small
    C:\GTa an lol (Lasse)\Server\GTARP\gamemodes\login_register017.pwn(298) : error 047: array sizes do not match, or destination array is too small
    C:\GTa an lol (Lasse)\Server\GTARP\gamemodes\login_register017.pwn(312) : error 047: array sizes do not match, or destination array is too small
    C:\GTa an lol (Lasse)\Server\GTARP\gamemodes\login_register017.pwn(315) : error 047: array sizes do not match, or destination array is too small
    C:\GTa an lol (Lasse)\Server\GTARP\gamemodes\login_register017.pwn(327) : error 047: array sizes do not match, or destination array is too small
    C:\GTa an lol (Lasse)\Server\GTARP\gamemodes\login_register017.pwn(330) : error 047: array sizes do not match, or destination array is too small
    C:\GTa an lol (Lasse)\Server\GTARP\gamemodes\login_register017.pwn(341) : error 047: array sizes do not match, or destination array is too small
    C:\GTa an lol (Lasse)\Server\GTARP\gamemodes\login_register017.pwn(344) : error 047: array sizes do not match, or destination array is too small
    C:\GTa an lol (Lasse)\Server\GTARP\gamemodes\login_register017.pwn(356) : error 047: array sizes do not match, or destination array is too small
    C:\GTa an lol (Lasse)\Server\GTARP\gamemodes\login_register017.pwn(359) : error 047: array sizes do not match, or destination array is too small
    C:\GTa an lol (Lasse)\Server\GTARP\gamemodes\login_register017.pwn(371) : error 047: array sizes do not match, or destination array is too small
    C:\GTa an lol (Lasse)\Server\GTARP\gamemodes\login_register017.pwn(374) : error 047: array sizes do not match, or destination array is too small
    C:\GTa an lol (Lasse)\Server\GTARP\gamemodes\login_register017.pwn(390) : error 047: array sizes do not match, or destination array is too small
    C:\GTa an lol (Lasse)\Server\GTARP\gamemodes\login_register017.pwn(393) : error 047: array sizes do not match, or destination array is too small
    C:\GTa an lol (Lasse)\Server\GTARP\gamemodes\login_register017.pwn(817) : error 021: symbol already defined: "strtok"
    C:\GTa an lol (Lasse)\Server\GTARP\gamemodes\login_register017.pwn(832) : error 047: array sizes do not match, or destination array is too small
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase



    16 Errors.



    Hier die Zeilen
    cmd = strtok(cmdtext, idx); Zeile 237


    tmp = strtok(cmdtext, idx); Zeile 298


    tmp = strtok(cmdtext, idx); Zeile 312


    tmp = strtok(cmdtext, idx); Zeile 315


    tmp = strtok(cmdtext, idx); Zeile 327


    tmp = strtok(cmdtext, idx); Zeile 330


    tmp = strtok(cmdtext, idx); Zeile 341


    tmp = strtok(cmdtext, idx); Zeile 344


    tmp = strtok(cmdtext, idx); Zeile 356


    tmp = strtok(cmdtext, idx); Zeile 359


    tmp = strtok(cmdtext, idx); Zeile 371


    tmp = strtok(cmdtext, idx); Zeile 374


    tmp = strtok(cmdtext, idx); Zeile 390


    tmp = strtok(cmdtext, idx); Zeile 393


    { Zeile 817


    return result; Zeile 832


    Und hier das Komplette OnPlayerCommandText
    public OnPlayerCommandText(playerid, cmdtext[])
    {
    new cmd[128];
    new tmp[128];
    new idx;
    cmd = strtok(cmdtext, idx);
    if (strcmp("/alogin", cmdtext, true) == 0)
    {
    if(IsPlayerAnAdmin(playerid,1))
    {
    ShowPlayerDialog(playerid,ALogin,DIALOG_STYLE_INPUT,"Login","Bitte tippe dein Passwort in das TextFeld ein um dich als Admin einzuloggen!","Login","Abbruch");
    }
    return 1;
    }
    if (strcmp("/alogout", cmdtext, true) == 0)
    {
    if(IsPlayerAnAdmin(playerid,1))
    {
    ShowPlayerDialog(playerid,ALogout,DIALOG_STYLE_MSGBOX,"Logout","Bist du dir Sicher das du dich als Admin ausloggen möchtest ?","Logout","Abbruch");
    }
    return 1;
    }
    //---------->> Admin Befehle <<---------------------------------------------
    if (strcmp("/kick", cmdtext, true) == 0)
    {
    if(IsPlayerAnAdmin(playerid,1))
    {
    ShowPlayerDialog(playerid,KickD,DIALOG_STYLE_INPUT,"Kick","Bitte tippe die ID des Spielers in das Feld ein!","Kick","Abbruch");
    }
    return 1;
    }
    if (strcmp("/goto", cmdtext, true) == 0)
    {
    if(IsPlayerAnAdmin(playerid,1))
    {
    ShowPlayerDialog(playerid,gotoD,DIALOG_STYLE_INPUT,"Gehe zu","Bitte tippe die ID des Spielers in das Feld ein!","OK","Abbruch");
    }
    return 1;
    }
    if (strcmp("/gethere", cmdtext, true) == 0)
    {
    if(IsPlayerAnAdmin(playerid,1))
    {
    ShowPlayerDialog(playerid,getD,DIALOG_STYLE_INPUT,"Spieler holen ...","Bitte tippe die ID des Spielers in das Feld ein!","OK","Abbruch");
    }
    return 1;
    }
    if (strcmp("/ban", cmdtext, true) == 0)
    {
    if(IsPlayerAnAdmin(playerid,2))
    {
    ShowPlayerDialog(playerid,banD,DIALOG_STYLE_INPUT,"Spieler Banen","Bitte tippe die ID des Spielers in das Feld ein!","BAN","Abbruch");
    }
    return 1;
    }
    if (strcmp("/gmx",cmd,true) == 0)
    {
    if(IsPlayerAnAdmin(playerid,5))
    {
    SendRconCommand("gmx");
    }
    }
    if (strcmp("/killplayer",cmd,true) == 0)
    {
    if(IsPlayerAnAdmin(playerid,3))
    {
    tmp = strtok(cmdtext, idx);
    if(!tmp[0])return SendClientMessage(playerid, COLOR_GRAD2, "INFO: /killplayer [playerid]");
    new playa = strval(tmp);
    SetPlayerHealth(playerid,0);
    new tbanplay[128];
    format(tbanplay,sizeof(tbanplay),"ADMCMD : Der Admin %s hat den Spieler %s gekillt(CMD)",SpielerName(playerid),SpielerName(playa));
    SendClientMessageToAll(Rot,tbanplay);
    }
    return 1;
    }
    if (strcmp("/timeban",cmd,true) == 0)
    {
    if(IsPlayerAnAdmin(playerid,3))
    {
    tmp = strtok(cmdtext, idx);
    if(!tmp[0])return SendClientMessage(playerid, COLOR_GRAD2, "INFO: /timeban [playerid] [Zeit]");
    new playa = strval(tmp);
    tmp = strtok(cmdtext, idx);
    if(!tmp[0])return SendClientMessage(playerid, COLOR_GRAD2, "INFO: /timeban [playerid] [Zeit]");
    new timeX = strval(tmp);
    BanPlayerforTime(playa,timeX);
    new tbanplay[128];
    format(tbanplay,sizeof(tbanplay),"ADMCMD : Der Admin %s hat den Spieler %s für eine bestimmte Zeit gebannt",SpielerName(playerid),SpielerName(playa));
    SendClientMessageToAll(Rot,tbanplay);
    }
    return 1;
    }
    if(strcmp(cmd, "/givemoney", true) == 0)
    {
    tmp = strtok(cmdtext, idx);
    if(!tmp[0])return SendClientMessage(playerid, COLOR_GRAD2, "INFO: /givemoney [bin] [geld]");
    new playa = strval(tmp);
    tmp = strtok(cmdtext, idx);
    if(!tmp[0])return SendClientMessage(playerid, COLOR_GRAD2, "INFO: /givemoney [bin] [geld]");
    new geld_x = strval(tmp);
    GivePlayerMoney(playa,geld_x);
    new nachricht[128];
    format(nachricht,sizeof(nachricht),"Du hast dem Spieler %s, %d$ gegeben !",SpielerName(playa),geld_x);
    SendClientMessage(playerid,COLOR_GREY,nachricht);
    return 1;
    }
    if(strcmp(cmd, "/givebank", true) == 0)
    {
    tmp = strtok(cmdtext, idx);
    if(!tmp[0])return SendClientMessage(playerid, COLOR_GRAD2, "INFO: /givemoney [bin] [geld]");
    new bin = strval(tmp);
    tmp = strtok(cmdtext, idx);
    if(!tmp[0])return SendClientMessage(playerid, COLOR_GRAD2, "INFO: /givemoney [bin] [geld]");
    new geld_x = strval(tmp);
    new nachricht[128];
    format(nachricht,sizeof(nachricht),"BIN %d, %d$ gegeben !",bin,geld_x);
    SendClientMessage(playerid,COLOR_RED,nachricht);
    SpielerInfo[playerid][bank] += geld_x;
    SendClientMessage(playerid,COLOR_GREY,nachricht);
    return 1;
    }
    if (strcmp("/setscore",cmd,true) == 0)
    {
    tmp = strtok(cmdtext, idx);
    if(!tmp[0])return SendClientMessage(playerid, COLOR_GRAD2, "INFO: /givemoney [playerid] [geld]");
    new playa = strval(tmp);
    tmp = strtok(cmdtext, idx);
    if(!tmp[0])return SendClientMessage(playerid, COLOR_GRAD2, "INFO: /givemoney [playerid] [geld]");
    new punkte_x = strval(tmp);
    SetPlayerScore(playa,punkte_x);
    new nachricht[128];
    format(nachricht,sizeof(nachricht),"Du hast dem Spieler %s, %d$ gegeben !",SpielerName(playa),punkte_x);
    SendClientMessage(playerid,COLOR_GREY,nachricht);
    return 1;
    }
    if (strcmp("/givegun",cmd,true) == 0)
    {

    tmp = strtok(cmdtext, idx);
    if(!tmp[0])return SendClientMessage(playerid, COLOR_GRAD2, "INFO: /givegun [playerid] [waffen ID] [ammo]");
    new playa = strval(tmp);
    tmp = strtok(cmdtext, idx);
    if(!tmp[0])return SendClientMessage(playerid, COLOR_GRAD2, "INFO: /givegun [playerid] [Waffen ID] [ammo]");
    new gun = strval(tmp);
    if(!tmp[0])return SendClientMessage(playerid, COLOR_GRAD2, "INFO: /givegun [playerid] [Waffen ID] [ammo]");
    new ammo = strval(tmp);
    if(gun < 1||gun > 46||gun==27||gun==1||gun==2||gun==9||gun==17||gun==19||gun==20||gun==21||gun==36||gun==38||gun==39||gun==40||gun==44||gun==45) return SendClientMessage(playerid,Rot,"Falsche Waffen ID");
    GivePlayerWeapon(playa,gun,ammo);
    new mess[128];
    format(mess,sizeof(mess),"ADMCMD : Der Admin %s hat dem Spieler %s eine Waffe gegeben (ID: %d)",SpielerName(playerid),SpielerName(playa),gun);
    SendClientMessageToAll(Rot,mess);
    return 1;
    }
    if (strcmp("/madmin",cmd,true) == 0)
    {
    if(IsPlayerAdmin(playerid))
    {
    tmp = strtok(cmdtext, idx);
    if(!tmp[0])return SendClientMessage(playerid, COLOR_GRAD2, "INFO: /madmin [playerid] [level]");
    new playa = strval(tmp);
    tmp = strtok(cmdtext, idx);
    if(!tmp[0])return SendClientMessage(playerid, COLOR_GRAD2, "INFO: /madmin [playerid] [level]");
    new level_x = strval(tmp);
    new randomp[128];
    new mess[128];
    format(randomp,sizeof randomp,"%s",RandomStr(12));
    strmid(SpielerInfo[playerid][Apass],randomp,0,strlen(randomp),sizeof randomp);
    SpielerInfo[playerid][Admin] = level_x;
    SendClientMessage(playa,Rot,">_______!ACHTUNG!______________________< ");
    SendClientMessage(playa,Rot,"> Bitte schreibe dir dein persönliches");
    SendClientMessage(playa,Rot,"> Admin Passwort auf!");
    format(mess,sizeof(mess),"> Passwort : %s",SpielerInfo[playerid][Apass]);
    SendClientMessageToAll(Rot,mess);
    format(mess,sizeof(mess),"ADMCMD : Der Admin %s hat dem Spieler %s zum Admin gemacht (LEVEL: %d)",SpielerName(playerid),SpielerName(playa),level_x);
    SendClientMessageToAll(Rot,mess);
    //SaveAdminPasswort(playerid);
    SpielerSpeichern(playerid);
    }
    return 1;
    }
    return 0;
    }

    public OnPlayerCommandText(playerid, cmdtext[])
    {
    new cmd[128];
    new tmp[128];
    new idx;
    cmd = strtok(cmdtext, idx);
    if (strcmp("/alogin", cmdtext, true) == 0)
    {
    if(IsPlayerAnAdmin(playerid,1))
    {
    ShowPlayerDialog(playerid,ALogin,DIALOG_STYLE_INPUT,"Login","Bitte tippe dein Passwort in das TextFeld ein um dich als Admin einzuloggen!","Login","Abbruch");
    }
    return 1;
    }
    if (strcmp("/alogout", cmdtext, true) == 0)
    {
    if(IsPlayerAnAdmin(playerid,1))
    {
    ShowPlayerDialog(playerid,ALogout,DIALOG_STYLE_MSGBOX,"Logout","Bist du dir Sicher das du dich als Admin ausloggen möchtest ?","Logout","Abbruch");
    }
    return 1;
    }
    //---------->> Admin Befehle <<---------------------------------------------
    if (strcmp("/kick", cmdtext, true) == 0)
    {
    if(IsPlayerAnAdmin(playerid,1))
    {
    ShowPlayerDialog(playerid,KickD,DIALOG_STYLE_INPUT,"Kick","Bitte tippe die ID des Spielers in das Feld ein!","Kick","Abbruch");
    }
    return 1;
    }
    if (strcmp("/goto", cmdtext, true) == 0)
    {
    if(IsPlayerAnAdmin(playerid,1))
    {
    ShowPlayerDialog(playerid,gotoD,DIALOG_STYLE_INPUT,"Gehe zu","Bitte tippe die ID des Spielers in das Feld ein!","OK","Abbruch");
    }
    return 1;
    }
    if (strcmp("/gethere", cmdtext, true) == 0)
    {
    if(IsPlayerAnAdmin(playerid,1))
    {
    ShowPlayerDialog(playerid,getD,DIALOG_STYLE_INPUT,"Spieler holen ...","Bitte tippe die ID des Spielers in das Feld ein!","OK","Abbruch");
    }
    return 1;
    }
    if (strcmp("/ban", cmdtext, true) == 0)
    {
    if(IsPlayerAnAdmin(playerid,2))
    {
    ShowPlayerDialog(playerid,banD,DIALOG_STYLE_INPUT,"Spieler Banen","Bitte tippe die ID des Spielers in das Feld ein!","BAN","Abbruch");
    }
    return 1;
    }
    if (strcmp("/gmx",cmd,true) == 0)
    {
    if(IsPlayerAnAdmin(playerid,5))
    {
    SendRconCommand("gmx");
    }
    }
    if (strcmp("/killplayer",cmd,true) == 0)
    {
    if(IsPlayerAnAdmin(playerid,3))
    {
    tmp = strtok(cmdtext, idx);
    if(!tmp[0])return SendClientMessage(playerid, COLOR_GRAD2, "INFO: /killplayer [playerid]");
    new playa = strval(tmp);
    SetPlayerHealth(playerid,0);
    new tbanplay[128];
    format(tbanplay,sizeof(tbanplay),"ADMCMD : Der Admin %s hat den Spieler %s gekillt(CMD)",SpielerName(playerid),SpielerName(playa));
    SendClientMessageToAll(Rot,tbanplay);
    }
    return 1;
    }
    if (strcmp("/timeban",cmd,true) == 0)
    {
    if(IsPlayerAnAdmin(playerid,3))
    {
    tmp = strtok(cmdtext, idx);
    if(!tmp[0])return SendClientMessage(playerid, COLOR_GRAD2, "INFO: /timeban [playerid] [Zeit]");
    new playa = strval(tmp);
    tmp = strtok(cmdtext, idx);
    if(!tmp[0])return SendClientMessage(playerid, COLOR_GRAD2, "INFO: /timeban [playerid] [Zeit]");
    new timeX = strval(tmp);
    BanPlayerforTime(playa,timeX);
    new tbanplay[128];
    format(tbanplay,sizeof(tbanplay),"ADMCMD : Der Admin %s hat den Spieler %s für eine bestimmte Zeit gebannt",SpielerName(playerid),SpielerName(playa));
    SendClientMessageToAll(Rot,tbanplay);
    }
    return 1;
    }
    if(strcmp(cmd, "/givemoney", true) == 0)
    {
    tmp = strtok(cmdtext, idx);
    if(!tmp[0])return SendClientMessage(playerid, COLOR_GRAD2, "INFO: /givemoney [bin] [geld]");
    new playa = strval(tmp);
    tmp = strtok(cmdtext, idx);
    if(!tmp[0])return SendClientMessage(playerid, COLOR_GRAD2, "INFO: /givemoney [bin] [geld]");
    new geld_x = strval(tmp);
    GivePlayerMoney(playa,geld_x);
    new nachricht[128];
    format(nachricht,sizeof(nachricht),"Du hast dem Spieler %s, %d$ gegeben !",SpielerName(playa),geld_x);
    SendClientMessage(playerid,COLOR_GREY,nachricht);
    return 1;
    }
    if(strcmp(cmd, "/givebank", true) == 0)
    {
    tmp = strtok(cmdtext, idx);
    if(!tmp[0])return SendClientMessage(playerid, COLOR_GRAD2, "INFO: /givemoney [bin] [geld]");
    new bin = strval(tmp);
    tmp = strtok(cmdtext, idx);
    if(!tmp[0])return SendClientMessage(playerid, COLOR_GRAD2, "INFO: /givemoney [bin] [geld]");
    new geld_x = strval(tmp);
    new nachricht[128];
    format(nachricht,sizeof(nachricht),"BIN %d, %d$ gegeben !",bin,geld_x);
    SendClientMessage(playerid,COLOR_RED,nachricht);
    SpielerInfo[playerid][bank] += geld_x;
    SendClientMessage(playerid,COLOR_GREY,nachricht);
    return 1;
    }
    if (strcmp("/setscore",cmd,true) == 0)
    {
    tmp = strtok(cmdtext, idx);
    if(!tmp[0])return SendClientMessage(playerid, COLOR_GRAD2, "INFO: /givemoney [playerid] [geld]");
    new playa = strval(tmp);
    tmp = strtok(cmdtext, idx);
    if(!tmp[0])return SendClientMessage(playerid, COLOR_GRAD2, "INFO: /givemoney [playerid] [geld]");
    new punkte_x = strval(tmp);
    SetPlayerScore(playa,punkte_x);
    new nachricht[128];
    format(nachricht,sizeof(nachricht),"Du hast dem Spieler %s, %d$ gegeben !",SpielerName(playa),punkte_x);
    SendClientMessage(playerid,COLOR_GREY,nachricht);
    return 1;
    }
    if (strcmp("/givegun",cmd,true) == 0)
    {

    tmp = strtok(cmdtext, idx);
    if(!tmp[0])return SendClientMessage(playerid, COLOR_GRAD2, "INFO: /givegun [playerid] [waffen ID] [ammo]");
    new playa = strval(tmp);
    tmp = strtok(cmdtext, idx);
    if(!tmp[0])return SendClientMessage(playerid, COLOR_GRAD2, "INFO: /givegun [playerid] [Waffen ID] [ammo]");
    new gun = strval(tmp);
    if(!tmp[0])return SendClientMessage(playerid, COLOR_GRAD2, "INFO: /givegun [playerid] [Waffen ID] [ammo]");
    new ammo = strval(tmp);
    if(gun < 1||gun > 46||gun==27||gun==1||gun==2||gun==9||gun==17||gun==19||gun==20||gun==21||gun==36||gun==38||gun==39||gun==40||gun==44||gun==45) return SendClientMessage(playerid,Rot,"Falsche Waffen ID");
    GivePlayerWeapon(playa,gun,ammo);
    new mess[128];
    format(mess,sizeof(mess),"ADMCMD : Der Admin %s hat dem Spieler %s eine Waffe gegeben (ID: %d)",SpielerName(playerid),SpielerName(playa),gun);
    SendClientMessageToAll(Rot,mess);
    return 1;
    }
    if (strcmp("/madmin",cmd,true) == 0)
    {
    if(IsPlayerAdmin(playerid))
    {
    tmp = strtok(cmdtext, idx);
    if(!tmp[0])return SendClientMessage(playerid, COLOR_GRAD2, "INFO: /madmin [playerid] [level]");
    new playa = strval(tmp);
    tmp = strtok(cmdtext, idx);
    if(!tmp[0])return SendClientMessage(playerid, COLOR_GRAD2, "INFO: /madmin [playerid] [level]");
    new level_x = strval(tmp);
    new randomp[128];
    new mess[128];
    format(randomp,sizeof randomp,"%s",RandomStr(12));
    strmid(SpielerInfo[playerid][Apass],randomp,0,strlen(randomp),sizeof randomp);
    SpielerInfo[playerid][Admin] = level_x;
    SendClientMessage(playa,Rot,">_______!ACHTUNG!______________________< ");
    SendClientMessage(playa,Rot,"> Bitte schreibe dir dein persönliches");
    SendClientMessage(playa,Rot,"> Admin Passwort auf!");
    format(mess,sizeof(mess),"> Passwort : %s",SpielerInfo[playerid][Apass]);
    SendClientMessageToAll(Rot,mess);
    format(mess,sizeof(mess),"ADMCMD : Der Admin %s hat dem Spieler %s zum Admin gemacht (LEVEL: %d)",SpielerName(playerid),SpielerName(playa),level_x);
    SendClientMessageToAll(Rot,mess);
    //SaveAdminPasswort(playerid);
    SpielerSpeichern(playerid);
    }
    return 1;
    }
    return 0;
    }

    cmd = strtok(cmdtext, idx); Zeile 237


    tmp = strtok(cmdtext, idx); Zeile 298


    tmp = strtok(cmdtext, idx); Zeile 312


    tmp = strtok(cmdtext, idx); Zeile 315


    tmp = strtok(cmdtext, idx); Zeile 327


    tmp = strtok(cmdtext, idx); Zeile 330


    tmp = strtok(cmdtext, idx); Zeile 341


    tmp = strtok(cmdtext, idx); Zeile 344


    tmp = strtok(cmdtext, idx); Zeile 356


    tmp = strtok(cmdtext, idx); Zeile 359


    tmp = strtok(cmdtext, idx); Zeile 371


    tmp = strtok(cmdtext, idx); Zeile 374


    tmp = strtok(cmdtext, idx); Zeile 390


    tmp = strtok(cmdtext, idx); Zeile 393


    { Zeile 817


    return result; Zeile 832