Help please
#1

How i can make dialog for question like : Write what you are [Male] [Female] so in dialog i need to choose Male or Female !



I'm using SaveG gamemode if that help somehow ....
Reply
#2

Bump
Reply
#3

<a href="http://www.game-state.eu/66.85.141.76:7777/"><img src="http://www.game-state.eu/66.85.141.76:7777/8000FF/FF0000/560x95.png" alt="www.Game-State.eu" style="border-style: none;" /></a>
Reply
#4

[IMG]<a href="http://www.game-state.eu/66.85.141.76:7777/"><img src="http://www.game-state.eu/66.85.141.76:7777/8000FF/FF0000/560x95.png" alt="www.Game-State.eu" style="border-style: none;" /></a>[/IMG]
Reply
#5

pawn Код:
#include <a_samp>

new Gender[MAX_PLAYERS]; //1 - male | 2 - female

public OnPlayerConnect(playerid)
{
    ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,"Gender","Male/nFemale","Select","");
    return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 1)
    {
        if(response)
        {
            if(listitem == 0)
            {
                Gender[playerid] = 1;
                SendClientMessage(playerid,-1,"You are a male.");
            }
            if(listitem == 1)
            {
                Gender[playerid] = 2;
                SendClientMessage(playerid,-1,"You are a female.");
            }

        }
        return 1;
    }

    return 0;
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)