SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 21/09/2013, 07:21 PM   #1
pollo97
Big Clucker
 
pollo97's Avatar
 
Join Date: Sep 2011
Location: Italy
Posts: 83
Reputation: 4
Default Dialog help

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.

Code:
				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","");
				}
pollo97 is offline   Reply With Quote
Old 23/09/2013, 04:42 PM   #2
pollo97
Big Clucker
 
pollo97's Avatar
 
Join Date: Sep 2011
Location: Italy
Posts: 83
Reputation: 4
Default Re: Dialog help

Up Up
pollo97 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Warning: PlayerDialogResponse PlayerId: 0 dialog ID doesn't match last sent dialog ID Blackazur Scripting Help 1 30/04/2013 06:25 PM
PlayerDialogResponse PlayerId: 15 dialog ID doesn't match last sent dialog ID nGen.SoNNy Scripting Help 4 01/12/2012 06:31 AM
[Dialog] Listing MySQL data inside a List Dialog vIBIENNYx Scripting Help 11 10/09/2012 11:19 PM
[19:58:45] Warning: PlayerDialogResponse PlayerId: 28 dialog ID doesn't match last sent dialog ID, what it means? niels44 Scripting Help 6 13/06/2012 05:53 PM
Big problem (PlayerDialogResponse PlayerId: 57 dialog ID doesn't match last sent dialog ID) RingoRus Server Support 3 12/06/2012 05:54 PM


All times are GMT. The time now is 05:29 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.