[Ajuda] Problemas na funзгo OnDialogResponse
#3

Ola

Vocк esqueceu 1 coisa

Tenta assim;

pawn Код:
//--------------- Define's ------------

#define sexo 21312

//-------- comando -------------------

CMD:sexo(playerid, params[])
{
    ShowPlayerDialog(playerid, sexo, DIALOG_STYLE_MSGBOX, "{FFA500}"#SERVER_NAME" - Registration", "{FFFFFF}Select you sex:", "Male", "Female");
    return 1;
}

//------- public OnDialogResponse ----
if(dialogid == sexo)
{
    if(response == 1)
    {
        PlayerInfo[playerid][pSex] = 1;
        PlayerInfo[playerid][pModel] = 299;
    }
    else
    {
        PlayerInfo[playerid][pSex] = 2;
        PlayerInfo[playerid][pModel] = 55;
    }
    return 1;
}
Espero ajudar


PT
Reply


Messages In This Thread
(Resolvido) Problemas na funзгo OnDialogResponse - by Strike_Legends - 01.05.2013, 05:37
Re: Problemas na funзгo OnDialogResponse - by Bruno Bastos - 01.05.2013, 14:43
Re: Problemas na funзгo OnDialogResponse - by PT - 01.05.2013, 23:43

Forum Jump:


Users browsing this thread: 1 Guest(s)