mysql listing
#1

hi,

i want to list all players with a certain field value but it only picks the first player that has a specific value and then it stops selecting

pawn Код:
if (strcmp("/blackbans", cmdtext, true) == 0)
{
    if(Spieler[playerid][AdminLevel] > 2)
    {

    new query[320];
    format(query, sizeof(query), "SELECT name FROM `Users` WHERE Score > 0");//i want players with this value
    mysql_query(query);
    mysql_store_result();
    mysql_fetch_row(query);
    print(query);//but only 1 player with the value i want is returned

    mysql_free_result();

    }else return SendClientMessage(playerid, 0xFF0000FF, "You don't have permission to use this command!");
    return 1;
}
So how would i make it like it does not stop after the first player but go on untill all players with that value are listed?

thx in advance
Reply


Messages In This Thread
mysql listing - by BlackWolf120 - 08.09.2011, 01:41
Re: mysql listing - by JaTochNietDan - 08.09.2011, 01:43
Re: mysql listing - by BlackWolf120 - 08.09.2011, 01:49
Re: mysql listing - by JaTochNietDan - 08.09.2011, 01:58
Re: mysql listing - by BlackWolf120 - 08.09.2011, 02:04
Re: mysql listing - by JaTochNietDan - 08.09.2011, 02:14
Re: mysql listing - by BlackWolf120 - 08.09.2011, 02:22
Re: mysql listing - by THE_KNOWN - 08.09.2011, 02:39
Re: mysql listing - by BlackWolf120 - 08.09.2011, 02:44
Re: mysql listing - by THE_KNOWN - 08.09.2011, 02:47
[No subject] - by BlackWolf120 - 09.09.2011, 00:56
Re: mysql listing - by Alby Fire - 09.09.2011, 01:07
Re: mysql listing - by BlackWolf120 - 09.09.2011, 01:54
Re: mysql listing - by JaTochNietDan - 09.09.2011, 02:05

Forum Jump:


Users browsing this thread: 5 Guest(s)