[Ajuda] Checkpoints - 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] Checkpoints (
/showthread.php?tid=552264)
Checkpoints -
iWiNeR - 23.12.2014
Bom Estou Tendo Uma Dificuldade Estou Criando O Emprego De Piloto Na Minha GM e Criei Um Dialog Atй Ai Tudo Bem So Que Quando o Player Clica Em Um Item Nгo Acontece Nada ,Detalhe Eu Ja Defini As Funзхes Delas
pawn Код:
if(dialogid ==DIALOG_ROTAS) // Piloto
{
if(response)
{
switch(listitem){
case 0:
{
SetPlayerCheckpoint(playerid, -1359.6494,-244.8524,15.5217,4.0);
SendClientMessage(playerid, Branco, "Vocк Selecionou Aeroporto De San Fierro Como Sua Rota");
RT[playerid] = 1;
}
}
}
Dкs De Ja Agradeзo
Re: Checkpoints -
Skun Fly - 23.12.2014
No GM que estou a realizar isso tambйm aconteceu com alguns dialogs. A conclusгo a que cheguei й que havia outro dialog que estava sendo chamado ao mesmo tempo e acabava por bugar. Verifica se isso nгo acontece e quais sгo os valores dos dialogids que definiu, por exemplo se nao deu um valor muito proximo de outro dialogid.
Re: Checkpoints -
Ts3 - 23.12.2014
Da uma olhada nisso aqui, na parte
DIALOG_STYLE_LIST que vai te ajudar.
https://sampwiki.blast.hk/wiki/OnDialogResponse_PT
Re: Checkpoints -
iWiNeR - 23.12.2014
Cara Eu Ja Olhei Ja Alterei e Continua Sem Fazer Nada
Re: Checkpoints -
Ts3 - 23.12.2014
Mostra o cуdigo de como vocк fez..
Re: Checkpoints -
iWiNeR - 23.12.2014
pawn Код:
if(dialogid == DIALOG_ROTAS) // Piloto
{
if(response)
{
if(listitem == 0)
{
SetPlayerCheckpoint(playerid, -1359.6494,-244.8524,15.5217,4.0);
SendClientMessage(playerid, Branco, "Vocк Selecionou Aeroporto De San Fierro Como Sua Rota");
RT[playerid] = 1;
return 1;
}
}
}
Re: Checkpoints -
Ts3 - 23.12.2014
Tenta assim.
pawn Код:
if(dialogid == DIALOG_ROTAS) // Piloto
{
if(!response) return SendClientMessage(playerid, -1, "Vocк fechou o dialog");
if(listitem == 0)
{
SetPlayerCheckpoint(playerid, -1359.6494,-244.8524,15.5217,4.0);
SendClientMessage(playerid, Branco, "Vocк Selecionou Aeroporto De San Fierro Como Sua Rota");
RT[playerid] = 1;
}
}
Re: Checkpoints -
n0minal - 23.12.2014
Mostra o ShowPlayerDialog.
Re: Checkpoints -
iWiNeR - 23.12.2014
Continua Sem Acontecer Nada
pawn Код:
ShowPlayerDialog(playerid, DIALOG_ROTAS, DIALOG_STYLE_LIST, "Rotas", "Aeroporto De San Fierro\nAeroporto De Las Venturas\nAeroporto Abandonado\nAeroporto Restrito", "OK", "Cancelar");
Re: Checkpoints -
Ts3 - 23.12.2014
Tenta assim:
pawn Код:
if(dialogid == DIALOG_ROTAS) // Piloto
{
//if(!response) return SendClientMessage(playerid, -1, "Vocк fechou o dialog");
if(listitem == 0)
{
SetPlayerCheckpoint(playerid, -1359.6494,-244.8524,15.5217,4.0);
SendClientMessage(playerid, Branco, "Vocк Selecionou Aeroporto De San Fierro Como Sua Rota");
RT[playerid] = 1;
}
}