13.09.2012, 07:39
pawn Код:
stock mysql_ReturnPasswort(Name[], password[]) //Put inputtext as password
{
new query[130];
mysql_real_escape_string(Name, Name);
format(query, 128, "SELECT Password FROM `Accounts` WHERE `Name` = '%s' AND Password = MD5('%s')", Name, password);
mysql_query(query);
mysql_store_result();
new return_v = mysql_num_rows();
mysql_free_result();
if(return_v != 0) return 1;
return 0;
}