[PED]Dialog ex - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [PED]Dialog ex (
/showthread.php?tid=184386)
[PED]Dialog ex -
Xapita_Halls - 19.10.2010
eae galera, alguem pode postar um dialog com funзгo de anuncio? (nao to copiando o bpf )
vlw e flw
Re: [PED]Dialog ex -
HigorOliverr - 19.10.2010
como nгo jogo em RP nгo sei como funciona o do Bpf mais fiz um aqui que vocк pode editar e deixar do geito que desejar.
Onde vs de sejar !
pawn Код:
ShowPlayerDialog(playerid, 52826, DIALOG_STYLE_INPUT, "Anuncio", "Texto ?", "Anunciar", "Sair");
Em Ondialogresponse
pawn Код:
if(dialogid == 52826)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
if(!response) return 0;
new Anuncio[128];
format(Anuncio, sizeof(Anuncio), "%s Anunciou: %s",name, inputtext);
SendClientMessageToAll(0xFFFFFFFF, Anuncio);
return 1;
}
Re: [PED]Dialog ex -
Xapita_Halls - 19.10.2010
opa, valeu amigo hehehehe
Re: [PED]Dialog ex -
Xapita_Halls - 19.10.2010
mas pode me passar o cmd do /an no normal nao da ee u num sei cria
Re: [PED]Dialog ex -
HigorOliverr - 19.10.2010
rsrs,
pawn Код:
if (strcmp("/an", cmdtext, true, 10) == 0 || strcmp("/anunciar", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid, 52826, DIALOG_STYLE_INPUT, "Anuncio", "Texto ?", "Anunciar", "Sair");
}
Re: [PED]Dialog ex -
Xapita_Halls - 19.10.2010
thanks

vc e m to bom em pawn
Re: [PED]Dialog ex -
HigorOliverr - 19.10.2010
To aqui pra ajudar Uai.
Re: [PED]Dialog ex -
Xapita_Halls - 19.10.2010
ixi o cmd nao pega e ta dando esse warning
pawn Код:
C:\Users\B\Documents\Meus arquivos recebidos\bpm.pwn(2385) : warning 219: local variable "Anuncio" shadows a variable at a preceding level