[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=629964)
DIALOG -
Sloww - 06.03.2017
Olб, estou precisando de uma pequena ajuda !
Код:
ShowPlayerDialog( playerid, DIALOG_SPAWN, DIALOG_STYLE_LIST, "Nascer em", "Los Santos", "Escolher", "Cancelar");
if(dialogid == DIALOG_SPAWN)
{
switch(listitem)
{
case 0:
{
SetPlayerPos(playerid, 2282.2461, -2363.4763, 13.5469);
SendClientMessage(playerid, -1, "Vocк foi para {FFFF44}Los Santos{FFFFFF}.");
}
}
}
return 1;
}
Atй ai estб perfeito, mais eu queria saber como faзo , para que quando o player apertar ESC ou Cancelar , ele receber uma mensagem de erro e voltasse no DIALOG para escolher.
Desculpa, tentei ser o mais claro possнvel kkk
Re: DIALOG -
iLordGG - 06.03.2017
use
if(dialogid == DIALOG_SPAWN)
{
if(response)
{ // tudo aquilo
}
else { // aqui й qnd ele cancela
}
}
Re: DIALOG -
ViniBorn - 06.03.2017
Use o parвmetro response.
Re: DIALOG -
Sloww - 06.03.2017
Obrigado ViniBorn e iLordGG ++REP