04.01.2016, 17:41
Hashed passwords are integers, not strings. Therefore, password[] = string. Use this:
I removed the " [] " at " stock OnPlayerLogin(playerid, password) "
Код:
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; }