[Ajuda] Dialog
#4

toma ai amigo, estude isso
pawn Код:
#define dialog_loteria 1999 //id da dialog

//poe em ondialogresponse
if(dialogid == dialog_loteria){
if(response == 0) return 1; // botao da direita
if(response == 1){        // botao da esquerda
new str[25];
format(str, 25, "/loteria %s", inputtext);
OnPlayerCommandText(playerid, str);
}
return 1;
}
//em onplayerkeystatechange

    if(newkeys == KEY_ENTER && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) // Tecla ENTER/F
    {
if(IsPlayerInRangeOfPoint(playerid, 2.0, x, y, z))
ShowPlayerDialog(playerid, dialog_loteria, DIALOG_STYLE_INPUT, "Lotйrica","Digite um nъmero de 0 a 100 para jogar na loteria", "Jogar","Sair");
    }
ta ai o mais bбsico possнvel, agora estude e tente aprimorб-lo
Reply


Messages In This Thread
Dialog - by WendeLKILL - 30.05.2014, 02:14
Re: Dialog - by FabioGTP - 30.05.2014, 02:20
Re: Dialog - by WendeLKILL - 30.05.2014, 02:31
Re: Dialog - by MatheusDalZot - 30.05.2014, 02:37
Re: Dialog - by FabioGTP - 30.05.2014, 02:39
Re: Dialog - by WendeLKILL - 30.05.2014, 02:54

Forum Jump:


Users browsing this thread: 1 Guest(s)