dynamic problem
#1

Fixed (so stop fighting )
Reply
#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
#3

If your variable is set to " 0 " and you put " 9 " on MAX_RULES variable it will count 8 not 9.
Reply
#4

Quote:
Originally Posted by TheArcher
Посмотреть сообщение
If your variable is set to " 0 " and you put " 9 " on MAX_RULES variable it will count 8 not 9.
That's what I told him.
Reply
#5

Quote:
Originally Posted by Tee
Посмотреть сообщение
That's what I told him.
You did a example you didn't specify nothing. Anyways i reccomand you to do debugs when you're testing something.
Reply
#6

Quote:
Originally Posted by TheArcher
Посмотреть сообщение
You did a example you didn't specify nothing. Anyways i reccomand you to do debugs when you're testing something.
I told him on xfire -_-
Reply
#7

Quote:
Originally Posted by Tee
Посмотреть сообщение
I told him on xfire -_-
Let's don't go offtopic and just think. How do i know you told him those things on xfire? He also asked something here and i'm trying to helping him out.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)