SA-MP Forums Archive
[Ajuda] Dialog - 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: [Ajuda] Dialog (/showthread.php?tid=537753)



Dialog - FabioGTP - 17.09.2014

Bom, eu fiz 2 dialog um de logar й o outro para escolher a seu lugar de respawn, mais o lugar de respawn aparece 1 doq o de logar/registrar, como eu faзo para aparecer dps?


Re: Dialog - shittt - 17.09.2014

tu ta usando Definiзгo pra duas 2 Dialogs ?


Re: Dialog - focaximubh - 17.09.2014

pawn Код:
OnPlayerConnect = ShowPlayerDialog(playerid, ID DO DIALOG
lб no topo vocк deve ter definido tipo assim: #define DialogLogin 355 e #define DialogSpawn 356
crie uma variбvel para armazenar new PlayerLogado[MAX_PLAYERS];

na OnDialogResponse vocк define das seguintes formas:

apуs o player digitar a senha e ser logado com sucesso vocк seta PlayerLogado[playerid] = 1;

e no local do spawn vocк define:

pawn Код:
if(PlayerLogado[playerid] == 1)
{
//informaзхes do dialog
}
isso pode funfa


Re: Dialog - FabioGTP - 18.09.2014

Quote:
Originally Posted by focaximubh
Посмотреть сообщение
pawn Код:
OnPlayerConnect = ShowPlayerDialog(playerid, ID DO DIALOG
lб no topo vocк deve ter definido tipo assim: #define DialogLogin 355 e #define DialogSpawn 356
crie uma variбvel para armazenar new PlayerLogado[MAX_PLAYERS];

na OnDialogResponse vocк define das seguintes formas:

apуs o player digitar a senha e ser logado com sucesso vocк seta PlayerLogado[playerid] = 1;

e no local do spawn vocк define:

pawn Код:
if(PlayerLogado[playerid] == 1)
{
//informaзхes do dialog
}
isso pode funfa
tentei aqui й n deu certo, espero mais ajuda