Help with database
#3

Hello,

You have to limit the loop that you are doing, otherwise it will just fill the 8 slots, try to do something like

pawn Код:
new row, total;
    mysql_fetch_row(row);
    total = strval(row);
    if(total > 0)
    {
        for(new x;x<total;x++)// 8 Slots
        {
You don't need to create a variable but it's better.
Reply


Messages In This Thread
Help with database - by cuemur - 13.03.2014, 18:14
Re: Help with database - by Matess - 13.03.2014, 18:27
Re: Help with database - by Ruben_Alonso - 13.03.2014, 18:29

Forum Jump:


Users browsing this thread: 1 Guest(s)