13.03.2011, 10:05
try something like this:
hope that helps...
pawn Код:
new query[100];
format(query, sizeof(query), "mysql code.. (you know it:P)");
mysql_query(query);
mysql_store_result();
new n = mysql_num_rows();
mysql_free_result();
for(new i=0; i<n; i++)
{
format(query, sizeof(query), "SELECT * FROM `Skins` WHERE `id`='%d'", i);
mysql_query(query);
mysql_store_result();
get the id...
Skin[i] = id;
mysql_free_result();
}