Changepass not working
#2

Try this [ check if work ] :
PHP код:
CMD:changepassword(playerid,params[])
{
    if(
pInfo[playerid][Logged] == 1)
    {
        new 
pass[25],query[435] ;
        if(
sscanf(params"s[25]"pass)) return SCM(playeridyellow"SERVER : /Changepassword <New Password>");
        if(
strlen(pass) < || strlen(pass) > 20) return SCM(playerid,red,"Error: Password length must be between 3 - 20 chracters!");
        
WP_Hash(pInfo[playerid][Password], 129pass);
        
mysql_format(mysqlquerysizeof(query), "UPDATE `Players` SET `Password` = '%s' WHERE `Username` = '%e'"pInfo[playerid][Password], GetName(playerid));
        
mysql_tquery(mysqlquery"""");
        
format(Jstringsizeof(Jstring),"Your password has been successfully changed to '%s'",pass);
        return 
SCM(playerid,yellow,Jstring);
    } 
return 
1;

Reply


Messages In This Thread
Changepass not working - by MBilal - 04.12.2015, 23:06
Re: Changepass not working - by jlalt - 05.12.2015, 02:53

Forum Jump:


Users browsing this thread: 2 Guest(s)