[AJUDA]onplayerclickplayer
#4

Ps: o seu ricop darб erro, porque mandarб a mensagem para o id 0,
porque ele primeiro mostra o dialog e depois define a PVar 'ID' para o id clicado.

melhor mйtedo:
no topo:
pawn Код:
new Caroly[MAX_PLAYERS];
no OnPlayerClickPlayer:
pawn Код:
Caroly[playerid] = clickedplayerid;
ShowPlayerDialog(playerid,9999,DIALOG_STYLE_INPUT,"MP","Digite seu texto abaixo.","Ok","Fechar");

no OnDialogResponse:
pawn Код:
if(dialogid == 9999)
    {
        if(response)
        {
            new string[250];
            format(string,sizeof(string),"%s diz: %s",PlayerName(playerid),string);
            SendClientMessage(Caroly[playerid],VERDE,string);
            return 1;
        }
    }
Espero ter ajudado =)
Reply


Messages In This Thread
[AJUDA]onplayerclickplayer - by Leeo_Perez - 11.09.2011, 16:14
Re: [AJUDA]onplayerclickplayer - by WLSF - 11.09.2011, 16:22
Re: [AJUDA]onplayerclickplayer - by Ricop522 - 11.09.2011, 16:26
Re: [AJUDA]onplayerclickplayer - by [O.z]Caroline - 11.09.2011, 16:28
Re: [AJUDA]onplayerclickplayer - by Ricop522 - 11.09.2011, 16:31
Re: [AJUDA]onplayerclickplayer - by [O.z]Caroline - 11.09.2011, 16:33
Re: [AJUDA]onplayerclickplayer - by Leeo_Perez - 11.09.2011, 17:01
Re: [AJUDA]onplayerclickplayer - by DreeH - 11.09.2011, 17:02
Re: [AJUDA]onplayerclickplayer - by [M]onsieur - 11.09.2011, 17:13
Re: [AJUDA]onplayerclickplayer - by DreeH - 11.09.2011, 17:16

Forum Jump:


Users browsing this thread: 1 Guest(s)