Dialogs help - 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: Dialogs help (
/showthread.php?tid=628647)
Dialogs help -
sKenzi1996 - 12.02.2017
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!