MySQL issue.
#3

Why not just:
Код:
    ...
    mysql_pquery(MySQL, "SELECT * FROM Tag", "OnTagCount", "");    // count number of tag saved
    return 1;
}

PUBLIC:OnTagCount()
{
    new rows, x;
    cache_get_row_count(rows);
    for(new i; i < rows; i++) // loop to fetch all rows
    {
        x = i + 1; // x is to be used as p_Tag index, since your code tell that it's from 1. If it's from 0, just use i as index and remove x variable.
        cache_get_value_name_int(i, "ID", p_Tag[x][tID]);
        cache_get_value_name_int(i, "SQLIB", p_Tag[x][tSQLIB]);
        cache_get_value(i, "Owner", p_Tag[x][tOwner]);
    }
    printf("- Chargement terminй. %i tag chargй.", TagNumber);
}
Reply


Messages In This Thread
MySQL issue. - by Dayrion - 11.12.2016, 14:49
Re: MySQL issue. - by Vince - 11.12.2016, 14:56
Re: MySQL issue. - by X337 - 11.12.2016, 14:58
Re: MySQL issue. - by Dayrion - 11.12.2016, 19:07

Forum Jump:


Users browsing this thread: 1 Guest(s)