Wrong Passwords
#18

Quote:
Originally Posted by Arthur Kane
Посмотреть сообщение
To be honest, if you wanna make this easier, you could just change your method of how you login, for example:

PHP код:
case DIALOG_LOGIN:
{
      new 
hpass[129];
             
WP_Hash(hpass129inputtext);
 
    
mysql_format(ourConnectioncontinueChecksizeof(continueCheck), "SELECT * FROM characters WHERE AccountName = '%e' AND AccountPass = '%e' LIMIT 1"ReturnName(playerid), hpass);
                
    
mysql_tquery(ourConnectioncontinueCheck"OnPlayerLogin""i"playerid);

PHP код:
public OnPlayerLogin(playerid)
{
      if(!
cache_num_rows())
     {
          
//Bad password.
          
return 1;
     }
     
//Password is a success.
    
return 1;

Just a thought.
This is the way i've been doing it a looong time, i've used the way you do before, and had the exact same issues.
Reply


Messages In This Thread
Wrong Passwords - by aoky - 23.08.2017, 18:11
Re: Wrong Passwords - by 10MIN - 23.08.2017, 18:21
Re: Wrong Passwords - by Xeon™ - 23.08.2017, 18:25
Re: Wrong Passwords - by aoky - 23.08.2017, 18:26
Re: Wrong Passwords - by aoky - 23.08.2017, 19:56
Re: Wrong Passwords - by aoky - 23.08.2017, 21:13
Re: Wrong Passwords - by GoldenLion - 23.08.2017, 21:21
Re: Wrong Passwords - by aoky - 23.08.2017, 22:37
Re: Wrong Passwords - by GoldenLion - 23.08.2017, 22:48
Re: Wrong Passwords - by aoky - 23.08.2017, 22:50
Re: Wrong Passwords - by GoldenLion - 23.08.2017, 22:53
Re: Wrong Passwords - by aoky - 24.08.2017, 18:13
Re: Wrong Passwords - by GoldenLion - 24.08.2017, 19:21
Re: Wrong Passwords - by aoky - 24.08.2017, 20:47
Re: Wrong Passwords - by aoky - 24.08.2017, 21:28
Re: Wrong Passwords - by Kane - 24.08.2017, 21:41
Re: Wrong Passwords - by GoldenLion - 25.08.2017, 12:35
Re: Wrong Passwords - by thegamer355 - 25.08.2017, 12:42
Re: Wrong Passwords - by aoky - 25.08.2017, 15:21

Forum Jump:


Users browsing this thread: 3 Guest(s)