21.01.2015, 21:01
Example code about sql part.
pawn Код:
mysql_format(mysql, query, sizeof(query), "SELECT `user` FROM `yourtable` WHERE `user` = '%e'", account); //you gotta change the table and column
new Cache:result = mysql_query(mysql, query);
if(cache_get_row_count() != 0)
{
//If the rows found
}
else
{
//if no rows exists
}
cache_delete(result);