12.02.2017, 17:42
I want to do a full registration with dialogs.
I made an enum :
I definited the dialog.
I made the command:
The problem is on OnDialogResponse:
Please me tell me how to do, what i have to do ( Ex: Use case, use switch, use strings, etc ). Do not solve the problem. Thank you!
I made an enum :
Код:
enum pInregistrare { pNume, pLocatie, pEmail, pVarsta }
Код:
#define DIALOG_INREGISTRARE 3
Код:
CMD:inregistrare(playerid,params[]) { if(IsPlayerInRangeOfPoint(playerid, 2.0, 1316.2933,-1368.6707,13.5597)) { ShowPlayerDialog(playerid,DIALOG_INREGISTRARE,DIALOG_STYLE_INPUT,"Hei","Cum te cheama?","inainte",""); } else { SCM(playerid,-1, "Nu esti in Biroul de Persoane!"); } return 1; }
Код:
switch( dialogid ) { case DIALOG_INREGISTRARE: { if(!response) return SCM(playerid,-1,"You got cancelled the registration!"); { /////// } } }