Saving bankpassword in MySQL
#1

I tried to make a bank system all by myself. For now I only made the Register dialog, but whenever I try to register it won't save the password in the database
Code:
PHP код:
        case BankRegisterDialog:
        {
            if(
Player[playerid][BankLogged] == 1)
            {
                if(
strlen(inputtext) < 5)
                {
                      
SendClientMessage(playeridCOLOR_RED"[ERROR] You password must be longer than 5 characters!");
                    return 
ShowPlayerDialog(playeridBankRegisterDialogDIALOG_STYLE_PASSWORD"Bank Password""Enter your desired password below:""Register""Cancel");
                }
                new 
query[100], name[24], query2[100];
                
GetPlayerName(playeridname24);
                
WP_Hash(Player[playerid][BankPassword], 129inputtext);
                
format(querysizeof(query), "UPDATE 'accounts' SET 'Bankpassword' = '%s' WHERE 'Name' = '%s'"Player[playerid][BankPassword], name);
                
mysql_query(mysqlquery);
            }
        } 
Reply


Messages In This Thread
Saving bankpassword in MySQL - by Deroxi - 06.06.2016, 16:16
Re: Saving bankpassword in MySQL - by Konstantinos - 06.06.2016, 16:23
Re: Saving bankpassword in MySQL - by Deroxi - 06.06.2016, 16:46
Re: Saving bankpassword in MySQL - by JasperM - 06.06.2016, 16:48
Re: Saving bankpassword in MySQL - by Konstantinos - 06.06.2016, 16:54
Re: Saving bankpassword in MySQL - by Deroxi - 06.06.2016, 16:55
Re: Saving bankpassword in MySQL - by Konstantinos - 06.06.2016, 17:02
Re: Saving bankpassword in MySQL - by Deroxi - 06.06.2016, 17:09
Re: Saving bankpassword in MySQL - by Konstantinos - 06.06.2016, 17:13
Re: Saving bankpassword in MySQL - by Deroxi - 06.06.2016, 17:18

Forum Jump:


Users browsing this thread: 1 Guest(s)