Loging in!
#1

Hello!

I have a problem, namely the problem is such that:

I will make the user to store all MySQL passwords and the like. However, when I do relog, then I can not log in anymore. If i enter the wrong password, says wrong password, but if i enter the correct password, the server crashed, and runs off, but at the beginning I can register and doing anithing what i want in the game, but if i do relog, then i can not log in any more.

Please help!

PHP код:
switch(dialogid)
    {
        case 
1:
        {
            if(!
response)
            {
                
SendClientMessage(playerid, -1"Sa katkestasid sisselogise, jдrgminekord kui liitud, sisesta enda parool.");
                
Kick(playerid);
            }
            else if(
strlen(inputtext) == 0)
            {
                   
ShowPlayerDialog(playerid1DIALOG_STYLE_INPUT"" NIMI " Logi Sisse"""#ROHELINE"Sisestatud parool ei ole korrektne, sisesta korrektne parool", "Logi Sisse", "Katkesta");
                
SendClientMessage(playerid, -1""#HELESININE"See kasutaja eksisteerib, sisesta parool, et sisse logida.");
            
}
            else
            {
                
SendClientMessage(playerid, -1""#HELESININE"See kasutaja eksisteerib, sisesta parool, et sisse logida.");
                
GetFromAccount(Nimi(playerid), "Parool"M2ngijaInfo[playerid][pParool]);
                
//WP_Hash(Buffer, sizeof(Buffer), inputtext);
                
format(Buffersizeof(Buffer), "%s"inputtext);
                if(!
strcmp(BufferM2ngijaInfo[playerid][pParool], true))
                {
                    
SendClientMessage(playerid, -1""#HELESININE"See kasutaja eksisteerib, sisesta parool, et sisse logida.");
                    
SetPVarInt(playerid,"SisseLoginud"1);
                    
LaadiKasutajaAndmed(playerid);
                    
SpawniM2ngija(playerid);
                    
SisestaLogimineAndmebaasi(playerid);
                    if(!
strcmp(M2ngijaInfo[playerid][pSugu], "*"false))
                    {
                    
ShowPlayerDialog(playerid3DIALOG_STYLE_INPUT"Kui vana sa oled ?""Sisesta enda vanus""Sisesta""Katkesta");
                    }
                }
                else
                {
                    
ShowPlayerDialog(playerid1DIALOG_STYLE_INPUT"" NIMI " Logi Sisse"""#PUNANE"Sisestasid vale parooli, sisesta korrektne parool", "Logi Sisse", "Katkesta");
                
}
            }
        } 
Reply
#2

Can someone help me?

I need fix it fast...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)