mysql listing
#11

thx.
ahh, u use the mysql plugin by Gizyz(or smth. i really cant remember that name )
I use the one by stricken kid which doesnt support "mysql_fetch_row_format()" but thx alot for ur answer

Now only 1 rep more needed to be able to post in the advertise section

sorry for double post but i just cant get it...


pawn Код:
if (strcmp("/blackbans", cmdtext, true) == 0)
{
    if(Spieler[playerid][AdminLevel] > 3)
    {
        new query[128];
        format(query, sizeof(query), "SELECT name FROM `Users` WHERE BlackBan > 0");
        mysql_query(query);
        mysql_store_result();
        while(mysql_fetch_row(query))
        {
           // It works when i do: print(query);
           ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX,"{EE0000}Blacklisted Players",query, "Ok", "Close");
           // But not when i do a dialog like this or a kinda format(); function
        }
        mysql_free_result();

    } else return SendClientMessage(playerid, 0xFF0000FF, "You don't have permission to use this command!");
    return 1;
}
Im getting crazy of it!!
It works great with print, all players with the specific table value are listed.
But why wont it work with anything but print??

Help pls
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: 4 Guest(s)