21.06.2020, 22:01
Troquei de gamemode pra uma melhor e fui adaptar a tela de login pra android colocar pra qm selecionar android ir pra a tela de login em dialog e qm selecionar pc ir pra tela de login em textdraw mas agora nenhuma das duas aparece o textdraw e o dialog n aparecem
PHP Code:
if(dialogid == DIALOG_ANDROID)
{
if(response)
{
switch(listitem)
{
case 0:
{
Player[playerid][pAndroid] = 0;
ClearChatbox(playerid);
ParteTL[playerid] = PARTE_BASE;
Logando[playerid] = true;
for(new i; i < sizeof(TelaLogin); i ++)
{
TextDrawShowForPlayer(playerid, TelaLogin[i]);
}
SelectTextDraw(playerid, 0x00B2EEFF);
TextDrawShowForPlayer(playerid, textTelaLogin[0]);
TextDrawShowForPlayer(playerid, textTelaLogin[1]);
TextDrawShowForPlayer(playerid, textTelaLogin[2]);
TextDrawShowForPlayer(playerid, textTelaLogin[3]);
TextDrawShowForPlayer(playerid, textTelaLogin[4]);
//TextDrawShowForPlayer(playerid, textTelaLogin[5]);
TextDrawShowForPlayer(playerid, textTelaLogin[6]);
TextDrawShowForPlayer(playerid, textTelaLogin[7]);
GameTextForPlayer(playerid, "~w~PLATAFORMA ~r~PC ~w~SELECIONADA", 5000, 1);
}
case 1:
{
Player[playerid][pAndroid] = 1;
ClearChatbox(playerid);
ShowPlayerDialog(playerid, DIALOG_RANDROID, DIALOG_STYLE_LIST, "Tela Android", "Logar|Registrar", "Confirmar", "Cancelar");
GameTextForPlayer(playerid, "~w~PLATAFORMA ~g~ANDROID~w~ SELECIONADA", 5000, 1);
}
}
}
}