30.01.2013, 09:27
Quote:
Use the function mysql_num_rows It counts all the rows for ya!
|
pawn Код:
stock bancount(playerid)
{
format(Query, sizeof(Query), "SELECT * FROM `banlog` WHERE (`name` = '%s' OR `ip` = '%s') AND `banned` = 1 LIMIT 1", escpname(playerid), PIP);
mysql_store_result();
new rows = mysql_num_rows();
mysql_free_result();
return rows;
}