[SUCHE]Erfahrenen Scripter!

In 10 Minuten startet der nächtliche Backupvorgang! Es kann währenddessen (ca. 10 Minuten) zu Einschränkungen bei der Nutzung des Forums kommen
Weitere Infos findet ihr im Thema Backup des Forums
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
  • wenn uns jemand helfen könnte... :)
    Das Auslesen des Passwortes funktioniert nicht...
    Wenn man es richtig eingibt, kommt trotzdem die Nachricht, dass es falsch ist! :(


    WICHTIG!!! Beide Abschnitte wurden gekürzt, sodass nur das notwendige zusehen ist...



    public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
    {
    if(dialogid == Loginmenu)
    {
    if(response)
    {
    Encrypt(inputtext);
    OnPlayerLogin(playerid,inputtext);
    }
    else
    {
    Kick(playerid);
    }
    }
    return 1;
    }


    public OnPlayerLogin(playerid,inputtext[])
    {
    new tmp2[256];
    new string2[256];
    new playername2[256];
    GetPlayerName(playerid, playername2, sizeof(playername2));
    format(string2, sizeof(string2), "user/%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 );
    strmid(Info[playerid][pKey], valtmp, 0, strlen(valtmp)-1, 255);
    }
    if(strcmp(Info[playerid][pKey],inputtext, true ) == 0 )
    {
    new key[ 256 ] , val[ 256 ];
    new Data[ 256 ];
    while ( fread( UserFile , Data , sizeof( Data ) ) )
    {
    key = ini_GetKey( Data );
    if( strcmp( key , "Level" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pLevel] = strval( val ); }
    if( strcmp( key , "AdminLevel" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pAdmin] = strval( val ); }
    if( strcmp( key , "DonateRank" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pDonateRank] = strval( val ); }
    if( strcmp( key , "ConnectedTime" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pConnectTime] = strval( val ); }
    if( strcmp( key , "Sex" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pSex] = strval( val ); }
    if( strcmp( key , "Muted" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pMuted] = strval( val ); }
    if( strcmp( key , "Respect" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pExp] = strval( val ); }
    if( strcmp( key , "Money" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pCash] = strval( val ); }
    if( strcmp( key , "Bank" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pBank] = strval( val ); }
    if( strcmp( key , "Wanted" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pWanted] = strval( val ); }
    if( strcmp( key , "Crimes" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pCrimes] = strval( val ); }
    if( strcmp( key , "Arrested" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pArrested] = strval( val ); }
    if( strcmp( key , "Phonebook" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pPhoneBook] = strval( val ); }
    if( strcmp( key , "JailTime" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pJailTime] = strval( val ); }
    if( strcmp( key , "Leader" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pLeader] = strval( val ); }
    if( strcmp( key , "Member" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pMember] = strval( val ); }
    if( strcmp( key , "Rank" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pRank] = strval( val ); }
    if( strcmp( key , "Char" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pChar] = strval( val ); }
    if( strcmp( key , "Job" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pJob] = strval( val ); }
    if( strcmp( key , "Wmoney" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pWmoney] = strval( val ); }
    if( strcmp( key , "FishSkill" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pFishSkill] = strval( val ); }
    if( strcmp( key , "Model" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pModel] = strval( val ); }
    if( strcmp( key , "PhoneNr" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pPhonenumber] = strval( val ); }
    if( strcmp( key , "House" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pHousekey] = strval( val ); }
    if( strcmp( key , "Bizz" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pBiskey] = strval( val ); }
    if( strcmp( key , "DriveLic" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pDriveLic] = strval( val ); }
    if( strcmp( key , "CarLic" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pCarLic] = strval( val ); }
    if( strcmp( key , "FlyLic" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pFlyLic] = strval( val ); }
    if( strcmp( key , "FishLic" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pFishLic] = strval( val ); }
    if( strcmp( key , "GunLic" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pGunLic] = strval( val ); }
    if( strcmp( key , "PayDay" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pPayDay] = strval( val ); }
    if( strcmp( key , "Tutorial" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pTut] = strval( val ); }
    if( strcmp( key , "Warnings" , true ) == 0 ) { val = ini_GetValue( Data ); Info[playerid][pWarns] = strval( val ); }
    }
    fclose(UserFile);
    }
    else
    {
    fclose(UserFile);
    gPlayerLogTries[playerid]++;
    if(gPlayerLogTries[playerid] == 1)
    {
    SendClientMessage(playerid, COLOR_GREY, "Falsches Passwort!! (1/3)");
    new girismsg[128];
    format(girismsg,128,"Hallo %s,\nGebe bitte dein Passwort ein:",playername2);
    ShowPlayerDialog(playerid,Loginmenu,DIALOG_STYLE_INPUT,"Anmeldung",girismsg,"Anmelden","Abbrechen");
    return 1;
    }
    else if(gPlayerLogTries[playerid] == 2)
    {
    SendClientMessage(playerid, COLOR_GREY, "Falsches Passwort!! (2/3)");
    new girismsg[128];
    format(girismsg,128,"Hallo %s,\nGebe bitte dein Passwort ein:",playername2);
    ShowPlayerDialog(playerid,Loginmenu,DIALOG_STYLE_INPUT,"Anmeldung",girismsg,"Anmelden","Abbrechen");
    return 1;
    }
    else if(gPlayerLogTries[playerid] == 3){ SendClientMessage(playerid, COLOR_GREY, "Falsches Passwort!! (3/3)"); Kick(playerid); }
    }
    }
    return 1;
    }

  • Das Problem ist immernoch nicht gelöst.
    Wir würden uns wirklich freuen wenn uns jemand helfen könnte.
    Derjenige würde einfach meine Teamviewer ID + PW via PN bekommen und sich dann darüber mein Script ansehen.
    Es ist nur 1k Zeilen lang... (Übersichtlich)


    Problemschilderung:
    Das auslesen des Passwortes funktioniert nicht.

  • Es gibt keine Fehlermeldung! ^^
    Das Script ist auch eig. ohne Fehler geschrieben, es ist halt nur der Fehler, dass das Passwort entweder Verschlüsselt mit dem Klartext Passwort verglichen wird, oder dass das Passwort garnicht ausgelesen wird.
    Es könnte aber auch sein das der Fehler bei der Regestration verursacht wird und das Passwort falsch gespeichert wird...


    //EDIT
    Das Problem habe ich gerade selbst gelöst...^^
    Danke an alle die mir helfen wollten! :)