SA-MP Forums Archive
Dialog Problem - 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: Dialog Problem (/showthread.php?tid=386389)



Dialog Problem - Youice - 20.10.2012

Hello there,

I want to know why my 'age' dialog isn't showing up (and if I change it with any dialog the other dialog doesn't work also, why?)

here is my code:

PHP код:
if(dialogid == 3)//Gender
           
{
               if(
response)
               {
                   
SendClientMessage(playerid, -1""COL_GREEN"So, you are male.");
                   
pData[playerid][pGender] = 1;
                   
ShowPlayerDialog(playeridD_AGEDIALOG_STYLE_INPUT"eL-RP:Age""{FFFFFF}Choose Your Age, Only Available Ages Are From 18 to 90"COL_GREEN"(18-90)""Done""");
               }
               else {
                   
SendClientMessage(playerid, -1""COL_GREEN"So, you are female.");
                   
pData[playerid][pGender] = 2;
                   
ShowPlayerDialog(playeridD_AGEDIALOG_STYLE_INPUT"eL-RP:Age""{FFFFFF}Choose Your Age, Only Available Ages Are From 18 to 90"COL_GREEN"(18-90)""Done""");
               }
           }
           if(
dialogid == D_AGE)//Age
           
{
               if(
response)
               {
                   if(
strlen(inputtext) > || strval(inputtext) <= 17 || strval(inputtext) >= 91)
                {
                    
ShowPlayerDialog(playeridD_AGEDIALOG_STYLE_INPUT"eL-RP:Age""{FFFFFF}Choose Your Age, Only Available Ages Are From 18 to 90"COL_GREEN"(18-90)""Done""");
                       
format(szQuery200"{FFFFFF}Your Age Must be In This Average ( "COL_RED"18{FFFFFF} - "COL_RED"24{FFFFFF}90 )");
                    
SendClientMessage(playerid, -1szQuery);
                }
                else
                {
                    
pData[playerid][pAge] = strval(inputtext);
                       
format(szQuery200""COL_BLUE"So, you are %d years-old."pData[playerid][pAge]);
                          
SendClientMessage(playerid, -1szQuery);
                       
format(szQuery200"{FFFFFF}Welcome "COL_BLUE"%s(%d){FFFFFF} to the server, you're registered\n\nPlease log in by inputting your password."szPlayerNameplayerid);
                    
ShowPlayerDialog(playeridD_LOGINDIALOG_STYLE_PASSWORD"eL-RP:Login"szQuery"Login""");
                }
               }
               else
               {
                
ShowPlayerDialog(playeridD_AGEDIALOG_STYLE_INPUT"eL-RP:Age""{FFFFFF}Choose Your Age, Only Available Ages Are From 18 to 90"COL_GREEN"(18-90)""Done""");
               }
           } 
any help I will appreciate it!


Re: Dialog Problem - Youice - 20.10.2012

any?


Re: Dialog Problem - ikbenremco - 20.10.2012

Misreaded. tought it was the gender.


Re: Dialog Problem - [HK]Ryder[AN] - 20.10.2012

@ikbenremco
It shouldn't
that will only work if he is using the switch() function.
otherwise cases wont work.


Re: Dialog Problem - Youice - 20.10.2012

did any one recognize the problem?


Re: Dialog Problem - Youice - 20.10.2012

any? -.-


Re: Dialog Problem - Faisal_khan - 20.10.2012

Is it giving you this message?

So, you are male.

Or

So, you are female.


Re: Dialog Problem - Youice - 20.10.2012

no...


Re: Dialog Problem - Red_Dragon. - 20.10.2012

Why didn't you make a
PHP код:
OnDialogResponse 
?


Re: Dialog Problem - Youice - 20.10.2012

Quote:
Originally Posted by Red_Dragon.
Посмотреть сообщение
Why didn't you make a
PHP код:
OnDialogResponse 
?
it's already under it.

Edit:(it's not vague to that extent)