help: dialog 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: help: dialog text (
/showthread.php?tid=369121)
help: dialog text -
NewbieScripter - 15.08.2012
example: i have one dialog.. used in many publics / ecc.. the text is big.. how to define it ?
I tried strcat... the normal define... ecc
suggestion ?
Re: help: dialog text -
2KY - 15.08.2012
Your english is kind of oddly formed, so I'm going to take a stab and say you want something like..
Instead of having to type out the entire message every time, you just want it so you can define the dialog and then show it that way? If this is what you want, then try something like this..
pawn Code:
#define SHOWDIALOG_REGISTER ShowPlayerDialog( playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, "This account does not exist!", "Please enter a password below:", "OK", "" )
Of course, you will have to edit your gamemode / filterscript (whichever) to work with this, and every time you wish to show the dialog, just do..
pawn Code:
CMD:test( playerid, params[] )
{
SHOWDIALOG_REGISTER;
return true;
}
and it will show the dialog you defined above.