Selecting more fields with the same fieldname
#6

something like this should work.
pawn Код:
new rQuery[60],rName[MAX_PLAYER_NAME];
format(rQuery, sizeof(rQuery), "SELECT `username` FROM `users` WHERE `special = 1");
mysql_query(rQuery);
mysql_store_result( );
while(mysql_fetch_row(rQuery))
{
    sscanf(rQuery, "s[24]", rName);
    //then youc an use rName to display the players names.
}
when you use 'while' it will do the code you put as it finds the matches on the db.
Reply


Messages In This Thread
Selecting more fields with the same fieldname - by Biesmen - 28.05.2011, 21:37
Re: Selecting more fields with the same fieldname - by SchurmanCQC - 28.05.2011, 21:40
Re: Selecting more fields with the same fieldname - by Fj0rtizFredde - 28.05.2011, 21:43
Re: Selecting more fields with the same fieldname - by Biesmen - 28.05.2011, 21:45
Re: Selecting more fields with the same fieldname - by Vince - 28.05.2011, 22:20
Re: Selecting more fields with the same fieldname - by Haydz - 28.05.2011, 22:25
Re: Selecting more fields with the same fieldname - by Biesmen - 29.05.2011, 13:03

Forum Jump:


Users browsing this thread: 2 Guest(s)