dialog gender input
#8

You can also do the dialog as a select list instead of input.

pawn Код:
ShowPlayerDialog(playerid, GENDER_DIALOG_ID, DIALOG_STYLE_LIST, "Select your gender", "Male\nFemale", "Select", "Close");

//OnDialogReponse
switch(dialogid)
{
    case GENDER_DIALOG_ID:
    {
        if(response)
        {
            switch(listitem)
            {
                case 0: PlayerInfo[playerid][Gender] = 1; //player is a male
                case 1: PlayerInfo[playerid][Gender] = 2; //player is a female
            }
        }
    }
}
Reply


Messages In This Thread
dialog gender input - by v4yne1 - 15.03.2019, 17:20
Re: dialog gender input - by TheToretto - 15.03.2019, 17:31
Re: dialog gender input - by v4yne1 - 15.03.2019, 17:39
Re: dialog gender input - by TheToretto - 15.03.2019, 17:47
Re: dialog gender input - by v4yne1 - 15.03.2019, 18:47
Re: dialog gender input - by TheToretto - 15.03.2019, 19:26
Re: dialog gender input - by v4yne1 - 15.03.2019, 19:54
Re: dialog gender input - by d3Pedro - 15.03.2019, 20:06
Re: dialog gender input - by v4yne1 - 15.03.2019, 20:23
Re: dialog gender input - by d3Pedro - 15.03.2019, 20:35
Re: dialog gender input - by v4yne1 - 15.03.2019, 21:07

Forum Jump:


Users browsing this thread: 4 Guest(s)