dynamic problem
#2

Post your "GetRuleid();" function.

Edit:

pawn Код:
stock GetRuleid()
{
    for(new i=1; i<MAX_RULES; i++)
    {
        format(query,sizeof(query),"SELECT * FROM Rules WHERE `ID` = %d",i);
        mysql_query(query);
        mysql_store_result();
        if(mysql_num_rows() != 0)return i;
        mysql_free_result();
    }
    return 0;
}
Reply


Messages In This Thread
dynamic problem - by Tanush123 - 05.01.2012, 23:03
Re: dynamic problem - by Tee - 05.01.2012, 23:07
Re: dynamic problem - by TheArcher - 05.01.2012, 23:21
Re: dynamic problem - by Tee - 05.01.2012, 23:54
Re: dynamic problem - by TheArcher - 05.01.2012, 23:55
Re: dynamic problem - by Tee - 05.01.2012, 23:59
Re: dynamic problem - by TheArcher - 06.01.2012, 00:02

Forum Jump:


Users browsing this thread: 1 Guest(s)