21.09.2013, 19:21
Hello, I have a problem with the dialog.
I want to be taken the names of banned accounts, and then to be written all in the dialog
how can I?
I tried to do something but until now it did not work,in the dialog I was just a name written, even though they were two or three banned accounts.
I want to be taken the names of banned accounts, and then to be written all in the dialog
how can I?
I tried to do something but until now it did not work,in the dialog I was just a name written, even though they were two or three banned accounts.
Код:
new query[200]/*,name[24]*/;
format(query,sizeof(query),"SELECT name FROM accountdata WHERE Banned = 1");
mysql_query(query);
mysql_store_result();
while(mysql_retrieve_row())
{
new result[50];
//sscanf(resultline,"p<|>s[24]",name);
new string[200];
format(string,sizeof(string),"%s\n",name);
ShowPlayerDialog(playerid,DIALOG_PLAYERBANNATI,DIALOG_STYLE_MSGBOX,"Player Bannati",string,"Indietro","");
}

