OnPlayerLogin help.
#8

Hashed passwords are integers, not strings. Therefore, password[] = string. Use this:

Код:
stock OnPlayerLogin(playerid, password) 
{ 
    new  
        sqlQuery[300],  
        password2 = num_hash(password) 
    ; 
    format(sqlQuery, sizeof(sqlQuery), "SELECT * FROM samp_users WHERE `Username`='%s' AND `Password`='%d'", GPN(playerid), password2); 
    mysql_query(sqlQuery, THREAD_LOGIN, playerid); 
    return 1; 
}
I removed the " [] " at " stock OnPlayerLogin(playerid, password) "
Reply


Messages In This Thread
OnPlayerLogin help. - by N0FeaR - 04.01.2016, 16:37
Re: OnPlayerLogin help. - by Riddick94 - 04.01.2016, 16:51
Re: OnPlayerLogin help. - by N0FeaR - 04.01.2016, 16:57
Re: OnPlayerLogin help. - by Riddick94 - 04.01.2016, 16:58
Re: OnPlayerLogin help. - by N0FeaR - 04.01.2016, 17:15
Re: OnPlayerLogin help. - by Riddick94 - 04.01.2016, 17:23
Re: OnPlayerLogin help. - by justinnater - 04.01.2016, 17:23
Re: OnPlayerLogin help. - by Lucky13 - 04.01.2016, 17:41
Re: OnPlayerLogin help. - by Riddick94 - 04.01.2016, 17:43
Re: OnPlayerLogin help. - by Lucky13 - 04.01.2016, 17:58

Forum Jump:


Users browsing this thread: 1 Guest(s)