Quick help, I'm tired ;)
#2

try something like this:
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();
}
hope that helps...
Reply


Messages In This Thread
Quick help, I'm tired ;) - by Antonio [G-RP] - 13.03.2011, 08:11
Re: Quick help, I'm tired ;) - by Sascha - 13.03.2011, 10:05

Forum Jump:


Users browsing this thread: 1 Guest(s)