Dialog age help
#1

I want to make it where when the player types in their age below, it would get what they put so I can save it into their pAge stats. Help appreciated!

PHP код:
public OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
    if(
dialogid == 7)
    {
        switch(
listitem)
        {
            case 
0:
            {
                
ShowPlayerDialog(playerid,8,DIALOG_STYLE_INPUT,"Registration","Type your age below","Continue","");
                if (!
response) return Kick(playerid);
                
PlayerInfo[playerid][pSex]=1;
            }
               case 
1:
            {
                
ShowPlayerDialog(playerid,8,DIALOG_STYLE_INPUT,"Registration","Type your age below","Continue","");
                if (!
response) return Kick(playerid);
                
PlayerInfo[playerid][pSex]=2;
            }
        }
    }

PHP код:
    if(dialogid == 8)
    {
        
PlayerInfo[playerid][pAge]=
    } 
Reply


Messages In This Thread
Dialog age help - by Noles2197 - 19.01.2013, 19:20
Re: Dialog age help - by mineralo - 19.01.2013, 19:24
Re: Dialog age help - by Noles2197 - 19.01.2013, 19:39
Re: Dialog age help - by Vince - 19.01.2013, 19:45
Re: Dialog age help - by mineralo - 19.01.2013, 19:53

Forum Jump:


Users browsing this thread: 1 Guest(s)