MySQL Help
#1

Anyone can counvert this to MySQL R6 or R5

Код:
         new total = 0;
         total = (cache_num_rows() > 0) ? cache_get_field_content_int(0, "total") : 0;
         return (total >= MAX_GANG_MEMBER) ? false : true;  (MySQL R7 )
full Code:
PHP код:
stock bool:CheckGang(gangid)
{
    new 
total 0query[128];
    
format(querysizeof(query), "SELECT count(*) AS `total` FROM `member` WHERE `gang` = %d"Gang[gangid][GangID]);
    
mysql_query(query);
    
total = (cache_num_rows() > 0) ? cache_get_field_content_int(0"total") : 0;
    return (
total >= MAX_GANG_MEMBER) ? false true;

Reply


Messages In This Thread
MySQL Help - by Slawiii - 02.10.2015, 08:37
Re: MySQL Help - by Slawiii - 02.10.2015, 14:13

Forum Jump:


Users browsing this thread: 1 Guest(s)