Dialog Problem
#1

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!
Reply
#2

any?
Reply
#3

Misreaded. tought it was the gender.
Reply
#4

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

did any one recognize the problem?
Reply
#6

any? -.-
Reply
#7

Is it giving you this message?

So, you are male.

Or

So, you are female.
Reply
#8

no...
Reply
#9

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

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)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)