SA-MP Forums Archive
ShowPlayerDialog 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: ShowPlayerDialog Help (/showthread.php?tid=601542)



ShowPlayerDialog Help - danielpalade - 22.02.2016

I want to add text and a string in a dialog on the same time.
For example.
Код:
ShowPlayerDialog(playerid,DIALOG_MEMBERS,DIALOG_STYLE_TABLIST_HEADERS,"Members:","Text"string,"Select","Cancel");
How can I do that.


Re: ShowPlayerDialog Help - Sascha - 22.02.2016

"string" is a datatype or the name of your variable....

You can not add a text infront of your tablist, you'd need to use some textdraw instead, I remember there being some includes that are creating "custom dialogs" that could make something like this possible.

You'd have to add the "Text" into your stringvariable, although then you'd need to change the dialog style to a msgbox...
Or you can write some of the text into the caption, although the size of the caption is limited and won't store long text..

So either use a "custom dialog" created out of textdraws, change your dialog style, or forget it...
Alternatively you could first display a msgbox dialog saying the text and then afterwards the tablist