19.10.2010, 16:37
eae galera, alguem pode postar um dialog com funзгo de anuncio? (nao to copiando o bpf )
vlw e flw
vlw e flw
ShowPlayerDialog(playerid, 52826, DIALOG_STYLE_INPUT, "Anuncio", "Texto ?", "Anunciar", "Sair");
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;
}
if (strcmp("/an", cmdtext, true, 10) == 0 || strcmp("/anunciar", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid, 52826, DIALOG_STYLE_INPUT, "Anuncio", "Texto ?", "Anunciar", "Sair");
}
C:\Users\B\Documents\Meus arquivos recebidos\bpm.pwn(2385) : warning 219: local variable "Anuncio" shadows a variable at a preceding level