if(dialogid == 4)
{
if(response == 0)
{
SendClientMessage(playerid, Verde, "[Info]: If you have a question look for a admin.");
}
if(response == 1) // Lado Esquerdo Ou Seja " Proximo "
{
// Coloque Aqui as Funзхes ao Clickar " Proximo ", Quando Ele Clickar Proximo Vamos Fazer Abrir Outro MSGBOX.
ShowPlayerDialog(playerid, Cmds+1, DIALOG_STYLE_MSGBOX,"{F6FF00}Commands List {FFFFFF}:","{8FF63B}/Forum {5500FF}:Forum link\n{8FF63B}/Rules {5500FF}:To see the rules\n{8FF63B}/Skin {5500FF}:Change your skin\n{8FF63B}/Saveskin {5500FF}:Save your skin\n{8FF63B}/Teles {5500FF}:Teleporters\n{8FF63B}/Animlist {5500FF}:List of animations\n{8FF63B}/Credits {5500FF}:About the Server\n{8FF63B}/WantedL {5500FF}:Wanted List", "Next", "Close");
}
if(response == 2) // Lado Esquerdo Ou Seja " Proximo "
{
ShowPlayerDialog(playerid, Cmds+2, DIALOG_STYLE_MSGBOX,"{F6FF00}Commands List {FFFFFF}:","{8FF63B}/Minigames {5500FF}:Minigame List", "Close", "");
}
// Sу Para Lembrar no Final Estб Apenas UM Botгo, Estao Apenas Usamos Response, Nгo Precisa por == 0.
// й tб JFS+1 й So Para Nгo Definir Denovo ai Da Para Acrescentar +1,+2,+3,+4...
}
if(dialogid == 4)
{
if(response == 0)
{
SendClientMessage(playerid, Verde, "[Info]: If you have a question look for a admin.");
}
if(response == 1) // Lado Esquerdo Ou Seja " Proximo "
{
// Coloque Aqui as Funзхes ao Clickar " Proximo ", Quando Ele Clickar Proximo Vamos Fazer Abrir Outro MSGBOX.
ShowPlayerDialog(playerid, Cmds+1, DIALOG_STYLE_MSGBOX,"{F6FF00}Commands List {FFFFFF}:","{8FF63B}/Forum {5500FF}:Forum link\n{8FF63B}/Rules {5500FF}:To see the rules\n{8FF63B}/Skin {5500FF}:Change your skin\n{8FF63B}/Saveskin {5500FF}:Save your skin\n{8FF63B}/Teles {5500FF}:Teleporters\n{8FF63B}/Animlist {5500FF}:List of animations\n{8FF63B}/Credits {5500FF}:About the Server\n{8FF63B}/WantedL {5500FF}:Wanted List", "Next", "Close");
}
}
if(dialogid == Cmds+1)
{
if(response) // Lado Esquerdo Ou Seja " Proximo "
{
ShowPlayerDialog(playerid, Cmds+2, DIALOG_STYLE_MSGBOX,"{F6FF00}Commands List {FFFFFF}:","{8FF63B}/Minigames {5500FF}:Minigame List", "Close", "");
}
}
Na callback OnDialogResponse o parвmetro response sу pode ser 0 ou 1, vocк colocou um if com ele valendo 2, essa condiзгo nunca serб atendida.
Olhe para ver mais informaзхes, clique aqui O correto й vocк colocar as sequкncias das dialogs de forma que se response for 1 entгo ele prossegue, senгo ele volta (response й igual a 1 caso o player clique no botгo esquerdo e 0 quando clica no botгo direito, se sу houver 1 botгo ela sempre chamarб 1). entгo crie a dialog com o id de cmds + 1 e dentro da resposta dela chame a terceira dialog. |
@Removido
Edit: pawn Код:
|