Dialogs help
#1

I want to do a full registration with dialogs.
I made an enum :
Код:
enum pInregistrare
{
	pNume,
	pLocatie,
	pEmail,
	pVarsta
}
I definited the dialog.
Код:
#define DIALOG_INREGISTRARE 3
I made the command:
Код:
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;
}
The problem is on OnDialogResponse:

Код:
switch( dialogid )
    {
		case DIALOG_INREGISTRARE:
		{
			if(!response) return SCM(playerid,-1,"You got cancelled the registration!");
			{
				
					
					///////
			
			}
		
		
		}
	}
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!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)