SA-MP Forums Archive
Quick help please +repping - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Quick help please +repping (/showthread.php?tid=316889)



Quick help please +repping - grantism - 09.02.2012

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?


Re: Quick help please +repping - [XST]O_x - 09.02.2012

if(response) - first button
if(!response) - second button.


Re: Quick help please +repping - grantism - 09.02.2012

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