change pass not working
#1

my change pass not working, they still need to login using their old password.

PHP код:
dcmd_changepass(playerid,params[])
{
    if(!
strcmp(params,"666",true))
    {
        
ShowPlayerDialog(playerid3DIALOG_STYLE_PASSWORD"> Password""Please enter your new password.""Change""Cancel");
         return 
1;
    }
    if (
strlen(params) < 3)
    {
        
SendClientMessage(playerid,COLOR_SYSTEM_GM,"Error, the password is too short");
        
ShowPlayerDialog(playerid3DIALOG_STYLE_PASSWORD"> Password""Please enter your new password.""Change""Cancel");
         return 
1;
    }
    if(
strlen(params)>17)
    {
        
SendClientMessage(playerid,COLOR_SYSTEM_GM,"Error, the password is too long");
        
ShowPlayerDialog(playerid3DIALOG_STYLE_PASSWORD"> Password""Please enter your new password.""Change""Cancel");
         return 
1;
    }
    new 
hashed[129], sQuery[528];
    
WP_Hash(hashed129params);
    
mysql_format(sqldbsQuerysizeof sQuery"UPDATE `PlayerInfo` SET `Password` = '%e' WHERE `PlayerName` = '%e'"hashedPlayerName(playerid));
    
SendClientMessage(playerid,COLOR_SYSTEM_GM,"..: SUCCESS: Your password has been changed. :..");
    return 
1;

Reply


Messages In This Thread
change pass not working - by ServerFiles - 21.08.2018, 01:48
Re: change pass not working - by DTV - 21.08.2018, 02:13
Re: change pass not working - by ServerFiles - 21.08.2018, 03:32
Re: change pass not working - by Shockey HD - 21.08.2018, 03:36
Re: change pass not working - by KinderClans - 21.08.2018, 08:40

Forum Jump:


Users browsing this thread: 3 Guest(s)