SA-MP Forums Archive
how can i make Dialog box with text? - 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: how can i make Dialog box with text? (/showthread.php?tid=501277)



how can i make Dialog box with text? - ChristianIvann09 - 17.03.2014

like..

im making rules..

Like this:
Код:
1. American Streets Roleplay
2. bla bla bla

OK



Re: how can i make Dialog box with text? - kinggta - 17.03.2014

ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"R ules","1. American Streets Roleplay\n2. bla bla bla","OK","");


Re: how can i make Dialog box with text? - BroZeus - 17.03.2014

use this https://sampwiki.blast.hk/wiki/ShowPlayerDialog
for example like u want--
pawn Код:
#define DIALOG_RULES
ShowPlayerDialog(playerid,DIALOG_RULES, DIALOG_STYLE_MSGBOX, "American Streets Role play", "blablabla", "Close", "");



Re: how can i make Dialog box with text? - Sojo12 - 17.03.2014

Код:
ShowPlayerDialog(playerid,10,DIALOG_STYLE_MSGBOX,"Rules","1.American Streets Roleplay\n/2.bla bla bla\n","Ok","Cancel");



Re: how can i make Dialog box with text? - CharlieSanchez - 17.03.2014

If you have trouble creating dialogs, there is a few tools around to help, for example try Scripting Machine , helps with dialogs you can also see a preview of the actual dialog...

Here .. http://code.******.com/p/scripting-machine/

Well have a look for it and try to search dialog tool for chrome too might help, good luck.


Re: how can i make Dialog box with text? - [..MonTaNa..] - 17.03.2014

pawn Код:
#define DIALOG_RULES 1

CMD:rules(playerid, params[])
{
    if(Spawned[playerid] == 1) return SendClientMessage(playerid, -1, "You cannot use this command when you're dead.");
    ShowPlayerDialog(playerid, DIALOG_RULES, DIALOG_STYLE_MSGBOX, "American Streets Roleplay Rules", "Do not use someone elses nick\nDo not cheat\nrules3\nrules4", "Ok", " ");
    return 1;
}



Re: how can i make Dialog box with text? - amirab - 17.03.2014

just do this

PHP код:
ShowPlayerDialog(playerid9999DIALOG_STYLE_MSGBOX"American Streets Roleplay Rules""Do not use someone elses nick\nDo not cheat\nrules3\nrules4""Ok""");