[AJUDA] Cadastramento
#5

pawn Код:
if(dialogid == 40)
{
    if(response)
    {
        if(PlayerInfo[playerid][pTut] >= 1) { SendClientMessage(playerid, COLOR_YELLOW2, "Ok, vocк e Homem."); PlayerInfo[playerid][pSex] = 1; }
        OnPlayerText(playerid,"Homem");
        format(str, sizeof(str), "Qual a cidade vocк deseja morar? \n - Escolha entre: \n\n - Los Santos e San Fierro\n\n");
        ShowPlayerDialog(playerid, 100, DIALOG_STYLE_MSGBOX, "Registro", str, "Los Santos", "San Fierro");
    }
    else
    {
        if(PlayerInfo[playerid][pTut] >= 1) { SendClientMessage(playerid, COLOR_YELLOW2, "Ok, vocк e Mulher."); PlayerInfo[playerid][pSex] = 2; }
        OnPlayerText(playerid,"Mulher");
        format(str, sizeof(str), "Qual a cidade vocк deseja morar? \n - Escolha entre: \n\n - Los Santos e San Fierro\n\n");
        ShowPlayerDialog(playerid, 100, DIALOG_STYLE_MSGBOX, "Registro", str, "Los Santos", "San Fierro");
    }
}
Explicaзгo rбpida:
pawn Код:
if(response)
Seria o 1є Botгo, no caso do segundo ou vocк coloca
pawn Код:
if(!response)
ou entгo cria um 'else' que foi a maneira que fiz, tudo darб na mesma coisa, sу que acho que fazendo um 'else' й menos gasto de linha e mais prбtico.
Reply


Messages In This Thread
[AJUDA] Cadastramento - by fonyke - 26.01.2012, 17:41
Re: [AJUDA] Cadastramento - by WeenSoares - 26.01.2012, 18:01
Re: [AJUDA] Cadastramento - by fonyke - 26.01.2012, 18:04
Re: [AJUDA] Cadastramento - by fonyke - 26.01.2012, 18:20
Re: [AJUDA] Cadastramento - by WeenSoares - 26.01.2012, 18:22
Re: [AJUDA] Cadastramento - by dPlaYer_ - 26.01.2012, 18:28
Re: [AJUDA] Cadastramento - by fonyke - 26.01.2012, 18:29
Re: [AJUDA] Cadastramento - by dPlaYer_ - 26.01.2012, 18:31
Re: [AJUDA] Cadastramento - by WeenSoares - 26.01.2012, 18:34
Re: [AJUDA] Cadastramento - by fonyke - 26.01.2012, 18:44

Forum Jump:


Users browsing this thread: 2 Guest(s)