Is it hard to ad a new dialog box in my current register/login script - 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: Is it hard to ad a new dialog box in my current register/login script (
/showthread.php?tid=313271)
Is it hard to ad a new dialog box in my current register/login script -
House - 25.01.2012
Good morning all,
I have a question, and i'm hoping you can help me.
With the release of the current 0.3 samp version i noticed on a few servers a nice dialog box to register and login to a server.
I got a rpg server wich still uses a /register /login commands.
I would be nice if i can change the current /register /login commands. into a nice dialog box.
I already checked the wiki regarding dialog boxes, but can someone give a some tips how to adjust my /register commands into a box?
Thanks for your help!
Re: Is it hard to ad a new dialog box in my current register/login script -
MasterJoker - 25.01.2012
Its not really hard. You just need to know what your doing.
is great to use its the same as DIALOG_STYLE_INPUT. but it replace a "*" when typing a letter or number
EDIT:
use this format to create dialog
pawn Код:
ShowPlayerDialog(playerid, dialogid, DIALOG_STYLE_xxx, "Tittle", "Inside the dialog", "Button1", "Button2");
you can define the dialogid by doing
pawn Код:
ShowPlayerDialog(playerid, DIALOGTEST, //othercodes here);
Use OnDialogResponse and copy your register and login function and put ondialogresponse should be like this
pawn Код:
if(dialogid == /* the id of your dialog */)
{
//Your Register Function here
}
if(dialogid == /* the id of your dialog */)
{
//Your Login Function Here
}
remember add this ondialogresponse
Re: Is it hard to ad a new dialog box in my current register/login script -
House - 25.01.2012
Thanks you so much Joker
I will try this as soon im home!
Re: Is it hard to ad a new dialog box in my current register/login script -
MasterJoker - 25.01.2012
No Problem.