Dialog help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Dialog help (
/showthread.php?tid=465289)
Dialog help -
pollo97 - 21.09.2013
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.
Код:
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","");
}
Re: Dialog help -
pollo97 - 23.09.2013
Up Up