15.06.2011, 08:20
pawn Код:
format(query, sizeof(query), "SELECT `GangName` FROM `Gangs` WHERE `GangName`='%s'", gangname);
mysql_query(query);
mysql_store_result();
if(mysql_num_rows()!=0)
{
//do something,when the row exists
}else
{
//do something,when the row don't exists
}
mysql_free_result();
mysql_query return 1 on success, 0 on fail.