dialog gender input
#11

Quote:
Originally Posted by ConnorW
Посмотреть сообщение
Here
pawn Код:
if(dialogid == DIALOG_GENDER)
    {
        if(!response)
        {
            Kick(playerid);
        }
        else
        {
            if(response)
            {
                if (!strcmp(inputtext, "male"))
                {
                    PlayerInfo[playerid][Gender] = 1; // male
                    SendClientMessage(playerid, -1, "You are a male");
                }
                else if (!strcmp(inputtext, "female"))
                {
                    PlayerInfo[playerid][Gender] = 2;
                    SendClientMessage(playerid, -1, "You are a female");
                }
                else {
                    return ShowPlayerDialog(playerid, DIALOG_GENDER, DIALOG_STYLE_INPUT, "Gender","What is the gender of your character? (male/female)","Next","Quit");
                }
            }
        }
    }
thanks <3

Quote:
Originally Posted by SymonClash
Посмотреть сообщение
Excuse me, but what's the point of using an input dialog? I still can write "my gender is not your business" and it'll be saved. I can't see the sense. Just make a dialog list. Avoid any further trolling from players.
its just matter of ideas and learning. from this example i can see how to use it in future and etc.

ty guys
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: 2 Guest(s)