Jump to content

Problema: Nu ma logheaza


praunedo

Recommended Posts

        }
        case DIALOG_LOGIN2: {
            if(!response) return Kick(playerid);
            if(strlen(inputtext)) {
                new tmppass[64];
                mysql_real_escape_string(inputtext, tmppass);
                OnPlayerLoginEx(playerid,MD5_Hash(tmppass));
            }
            else {
                format(string,sizeof(string),"Parola introdusa de tine este incorecta!\nIntrodu parola corecta altfel vei primi kick!",GetName(playerid));
                ShowPlayerDialog(playerid, DIALOG_LOGIN3,DIALOG_STYLE_PASSWORD,"Logare",string,"Logare","Quit");
                gPlayerLogTries[playerid] += 1;                
                if(gPlayerLogTries[playerid] < 3) format(string, sizeof(string), "Parola incorecta! Mai ai la dispozitie %d incercari.", 3-gPlayerLogTries[playerid]);
                else format(string, sizeof(string), "Parola incorecta! Incercarile au fost epuizate si ai primit kick.", 3-gPlayerLogTries[playerid]);
                SCM(playerid, COLOR_WARNING, string);        
                if(gPlayerLogTries[playerid] == 3) KickEx(playerid);
            }
        }
        case DIALOG_LOGIN3: {
            if(!response) return Kick(playerid);
            if(strlen(inputtext)) {
                new tmppass[64];
                mysql_real_escape_string(inputtext, tmppass);
                OnPlayerLoginEx(playerid,MD5_Hash(tmppass));
            }
            else {
                format(string,sizeof(string),"Parola introdusa de tine este incorecta!\nIntrodu parola corecta altfel vei primi kick!",GetName(playerid));
                ShowPlayerDialog(playerid, DIALOG_LOGIN3,DIALOG_STYLE_PASSWORD,"Logare",string,"Logare","Quit");
                gPlayerLogTries[playerid] += 1;                
                if(gPlayerLogTries[playerid] < 3) format(string, sizeof(string), "Parola incorecta! Mai ai la dispozitie %d incercari.", 3-gPlayerLogTries[playerid]);
                else format(string, sizeof(string), "Parola incorecta! Incercarile au fost epuizate si ai primit kick.", 3-gPlayerLogTries[playerid]);
                SCM(playerid, COLOR_WARNING, string);            
                if(gPlayerLogTries[playerid] == 3) KickEx(playerid);
            }
        }    
        case DIALOG_LOGIN1: {
            if(strlen(inputtext) >= 6 && strlen(inputtext) <= 30) {
                new tmppass[64];
                mysql_real_escape_string(inputtext, tmppass);
                OnPlayerRegister(playerid,MD5_Hash(tmppass));
            }
            else {
                format(string, sizeof(string), "Bine ai venit, %s!\nAcest cont nu este inregistrat.\nPentru a-ti creea unul, introdu o parola in casuta de mai jos.\n{FFA1A1}Parola trebuie sa contina minim 6 caractere!",GetName(playerid));
                ShowPlayerDialog(playerid, DIALOG_LOGIN1, DIALOG_STYLE_PASSWORD, "Register", string, "Register", "Quit");
            }
        }

mysql_log.txt server_log.txt

Link to comment
Share on other sites

@praunedoSingura problema care ar putea avea legatura cu faptul ca nu te poti loga pe care o vad ar fi faptul ca iti lipseste coloana pHealth din tabelul, presupun, users. Daca folosesti phpmyadmin va trebui sa deschizi tabelul users, in tab structure sa adaugi o noua coloana cu numele pHealth si tipul de data float.

Desigur mai este si CMySQLResult::GetRowDataByName() - invalid row index ('0') , problema e ca asta poate proveni de la orice query de tip SELECT care incearca sa iti ia din baza de date dintr-un tabel care pare sa fie gol

Cat despre

Citat

(error #1064) You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '+'3318111', `Respect`=`Respect`+'6', `JobGoal`='0' WHERE `JobGoal`>='40000' A...' at line 1

Va trebui sa cauti in gm dupa ceva asemanator cu

Citat

 '+'%d', `Respect`=`Respect`+'%d', `JobGoal`='%d' WHERE `JobGoal`>='%d' A...'

Pentru ca aparent ai o problema legata si de acest query care pare sa fie de UPDATE

Link to comment
Share on other sites

  • Mister locked this topic
Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.