Incorrect Password
#1

A bug occurred within my script, and I'm very unsure as to why it's happening. It basically doesn't allow anyone to login, even though the password is correct. I'm unsure why it begins happening.

PHP код:
    else if(dialogid == DIALOG_LOGIN)
    {
        if(!
response) return Kick(playerid);
        else
          {
               new 
hpass[129];
             
WP_Hash(hpass129inputtext);
              if(!
strcmp(hpassPlayerInfo[playerid][pPass]))
               {
                 
mysql_format(mysqlquerysizeof(query), "SELECT * FROM `users` WHERE `Username` = '%e' LIMIT 1"Name[playerid]);
                  
mysql_tquery(mysqlquery"OnAccountLoad""i"playerid);
                
TextDrawHideForPlayer(playerid,Login1[playerid]);
                
TextDrawHideForPlayer(playerid,Login2[playerid]);
                
TextDrawHideForPlayer(playerid,Login3[playerid]);
                
TextDrawHideForPlayer(playerid,Login4[playerid]);
                
TextDrawHideForPlayer(playerid,Login5[playerid]);
                
TextDrawHideForPlayer(playerid,Login6[playerid]);
                
TextDrawHideForPlayer(playerid,Login7[playerid]);
                
TogglePlayerSpectating(playeridfalse);
                
PlayTimer[playerid] = SetTimerEx("PlayingTime"600001"i"playerid);
                
StopAudioStreamForPlayer(playerid);
            }
            else
               {
                  
ShowPlayerDialog(playeridDIALOG_LOGINDIALOG_STYLE_MSGBOX,""COL_RED"KICKED",""COL_RED"You have been kicked for entering an incorrect password.","QUIT","");
                
KickPlayer(playerid);
            }
               return 
1;
           }
       } 
Reply


Messages In This Thread
Incorrect Password - by aoky - 20.08.2017, 20:54
Re: Incorrect Password - by TheCman - 20.08.2017, 21:28
Re: Incorrect Password - by oMa37 - 21.08.2017, 01:02
Re: Incorrect Password - by Paulice - 21.08.2017, 01:11
Re: Incorrect Password - by TheCman - 21.08.2017, 01:21
Re: Incorrect Password - by ISmokezU - 21.08.2017, 01:27
Re: Incorrect Password - by Paulice - 21.08.2017, 03:01

Forum Jump:


Users browsing this thread: 1 Guest(s)