Need help with changepass cmd (mysql,whirlpool)
#6

What's wrong now? Still won't change.

pawn Код:
CMD:changepass(playerid, params[])
{
    if (gPlayerInfo[playerid][pLogged] == 0)
        return SendClientMessage( playerid, -1, "You need to be logged in to use this. " );
    if(isnull(params))
        return SendClientMessage( playerid, -1, "USAGE: /changepass [New password]. " );
    new query[128];
    new salt[30], hash[129];
    randomString(salt, SALT_LENGTH);
    format(hash, sizeof(hash), "%s%s", salt, escape(params));
    WP_Hash(hash, sizeof(hash), hash);
    mysql_function_query(gHandle, query, false, "UPDATE `users` SET `pass`='%s' WHERE `id`='%i'", "si", "", "");
    SendClientMessage(playerid, -1, "You have successfully changed your password.");
    return 1;
}
Reply


Messages In This Thread
Need help with changepass cmd (mysql,whirlpool) - by Capua - 01.11.2014, 14:24
Re: Need help with changepass cmd (mysql,whirlpool) - by Stinged - 01.11.2014, 14:32
Respuesta: Need help with changepass cmd (mysql,whirlpool) - by Cerealguy - 01.11.2014, 14:40
Re: Respuesta: Need help with changepass cmd (mysql,whirlpool) - by Capua - 01.11.2014, 17:08
Re: Need help with changepass cmd (mysql,whirlpool) - by gtakillerIV - 01.11.2014, 17:48
Re: Need help with changepass cmd (mysql,whirlpool) - by Capua - 01.11.2014, 18:53
Re: Need help with changepass cmd (mysql,whirlpool) - by gtakillerIV - 01.11.2014, 19:00
Re: Need help with changepass cmd (mysql,whirlpool) - by Capua - 01.11.2014, 19:44
Re: Need help with changepass cmd (mysql,whirlpool) - by Stinged - 02.11.2014, 07:02
Re: Need help with changepass cmd (mysql,whirlpool) - by Stinged - 02.11.2014, 15:07
Re: Need help with changepass cmd (mysql,whirlpool) - by Capua - 02.11.2014, 17:58
Re: Need help with changepass cmd (mysql,whirlpool) - by [HiC]TheKiller - 02.11.2014, 19:12
Re: Need help with changepass cmd (mysql,whirlpool) - by Capua - 03.11.2014, 19:47
Re: Need help with changepass cmd (mysql,whirlpool) - by Runn3R - 03.11.2014, 20:13
Re: Need help with changepass cmd (mysql,whirlpool) - by Capua - 03.11.2014, 20:22
Re: Need help with changepass cmd (mysql,whirlpool) - by [HiC]TheKiller - 03.11.2014, 22:49
Re: Need help with changepass cmd (mysql,whirlpool) - by Capua - 09.11.2014, 14:56
Re: Need help with changepass cmd (mysql,whirlpool) - by Capua - 09.11.2014, 17:08

Forum Jump:


Users browsing this thread: 3 Guest(s)