20.06.2018, 04:31
Nгo vai, olha o code original aqui
eu tenho colocar dessa forma na minha gamemode mas dб o erro do tнtulo.
PHP Code:
stock showLoginMenu(playerid, menuid, message[] = "")
{
switch(menuid)
{
case MENU_LOGIN_INDEX:
{
format(String, sizeof(String), "%s\n\n", message);
format(Dialog, sizeof(Dialog), ""#COLORT_WHITE"Bem-vindo novamente "#COLORT_YELLOW"%s!\n\n%s"#COLORT_WHITE"Digite sua senha para logar:", Player[playerid][pName], (isnull(message) ? "" : String));
showPlayerDialogEx(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, ""#COLOR_TITLE_DIALOG"Login", Dialog, "Entrar", "Sair");
}
case MENU_LOGIN_REGISTER:
{
format(Dialog, sizeof(Dialog), ""#COLORT_WHITE"Bem-vindo "#COLORT_YELLOW"%s!\n\n"#COLORT_WHITE"Vejo que vocк nгo tem uma conta, vamos criar uma?", Player[playerid][pName]);
showPlayerDialogEx(playerid, DIALOG_REGISTER, DIALOG_STYLE_MSGBOX, ""#COLOR_TITLE_DIALOG"Registro", Dialog, "Sim", "Nгo");
}
case MENU_LOGIN_REGISTER_STAGE_1:
{
format(String, sizeof(String), "%s\n\n", message);
format(Dialog, sizeof(Dialog), "%s"COLORT_WHITE"Para comeзar, digite uma senha de 6 а 30 dнgitos:", (isnull(message) ? "" : String));
showPlayerDialogEx(playerid, DIALOG_REGISTER+1, DIALOG_STYLE_PASSWORD, ""#COLOR_TITLE_DIALOG"Registro [1/3]", Dialog, "Prosseguir", "Sair");
}
case MENU_LOGIN_REGISTER_STAGE_2:
{
format(String, sizeof(String), "%s\n\n", message);
format(Dialog, sizeof(Dialog), "%s"COLORT_WHITE"Agora para confirmar, digite novamente a senha escolhida:", (isnull(message) ? "" : String));
showPlayerDialogEx(playerid, DIALOG_REGISTER+2, DIALOG_STYLE_PASSWORD, ""#COLOR_TITLE_DIALOG"Registro [2/3]", Dialog, "Prosseguir", "Voltar");
}
case MENU_LOGIN_REGISTER_STAGE_3:
{
format(String, sizeof(String), "%s\n\n", message);
format(Dialog, sizeof(Dialog), "%s"COLORT_WHITE"Para terminar, digite um e-mail vбlido:", (isnull(message) ? "" : String));
showPlayerDialogEx(playerid, DIALOG_REGISTER+3, DIALOG_STYLE_INPUT, ""#COLOR_TITLE_DIALOG"Registro [3/3]", Dialog, "Concluir", "Voltar");
}
}
return true;
}