Quick help please +repping
#1

pawn Код:
if(dialogid == DIALOG_SEX)
    {
        if(!response)
        {
            SendClientMessage(playerid, COLOR_PURPLE, "SERVER HELP: You must pick a gender!");
            ShowPlayerDialog(playerid, DIALOG_SEX, DIALOG_STYLE_MSGBOX, "- Sex -","What gender are you?","Male","Female");
           
        }
        if(response)
        {
            PlayerInfo[playerid][pSex] = 1;
            SendClientMessage(playerid, -1, "INFO: You are {3BB9FF}male.");
            SetPlayerSkin(playerid, 60);
            PlayerInfo[playerid][pSkin] = 60;
            ShowPlayerDialog(playerid, DIALOG_AGE, DIALOG_STYLE_INPUT, "- Age -","How old are you??\n{FF0000}(( 16 - 100 ))","Answer","Quit");
        }
        else
        {
            PlayerInfo[playerid][pSex] = 2;
            SendClientMessage(playerid, -1, "INFO: You are {3BB9FF}female.");
            SetPlayerSkin(playerid, 233);
            PlayerInfo[playerid][pSkin] = 233;
            ShowPlayerDialog(playerid, DIALOG_AGE, DIALOG_STYLE_INPUT, "- Age -","How old are you??\n{FF0000}(( 16 - 100 ))","Answer","Quit");
        }
i have had a go, but im not sure how I can make it work like this, I could do a text input but how can i see if they pressed the second button?
Reply
#2

if(response) - first button
if(!response) - second button.
Reply
#3

But then they can simply press esc and it will make them female..?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)