help: dialog text
#1

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 ?
Reply
#2

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)