[Easy MySQL] Dialog Banlist
#2

I made this command but it shows one result in dialog.

Код:
CMD:banlist(playerid,params[])
{
new banned[24],string[1024];

new countid = SQL::CountRows("banlist");
    for(new id=0;id<countid;id++)
    {
    if(SQL::RowExists("banlist", "id", id))
    {
    new handle= SQL::Open(SQL::READ, "banlist", "id",id);
    SQL::ReadString(handle, "banlist", banned,24);
    SQL::Close(handle);
    }
    }
format(string,sizeof(string),"%s%s\n",string,banned);
ShowPlayerDialog(playerid,DIALOG_BANINFO,DIALOG_STYLE_MSGBOX,"Banned Players",string,"Close","");
return 1;
}
Reply


Messages In This Thread
[Easy MySQL] Dialog Banlist - by Sensation - 21.02.2016, 11:46
Re: [Easy MySQL] Dialog Banlist - by Sensation - 21.02.2016, 17:47

Forum Jump:


Users browsing this thread: 1 Guest(s)