[Ajuda] Dialog
#1

Код:
}

if(strcmp(cmdtext, "Blabla", true) == 0)
{
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,Vermelho,"BlaBlaBlaBlaBlaBla");
    ShowPlayerDialog(playerid,56, DIALOG_STYLE_PASSWORD,"BlaBlaBlaBlaBlaBlaBlaBlaBlaBla","BlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBla","Confirmar","Cancelar");
    return 1;
}


if(strcmp(cmdtext, "BlaBlaBlaBlaBlaBla", true) == 0)
{
    ShowPlayerDialog(playerid,57,DIALOG_STYLE_PASSWORD,"BlaBlaBlaBlaBlaBlaBlaBlaBlaBla","Confirmar","Sair");
    return 1;
}
Bom os seguintes ''comandos'' estгo em Dialog sу que quando eu retiro ou melhor dizendo quando eu tento retirar dб erro ¬¬'

Jб procurei e nгo achei algo relacionado... alguйm poderia me ajudar? Please...
Reply
#2

nгo entedi direito, pode explicar melhor ?
Reply
#3

Sim, o Comando estб em Dialog..
eu quero retirar mais dб dando erros..
Eu quero um tuto de como retirar os Dialogs, se nгo for pedir muito...
Reply
#4

Uй cara, й so retirar o:
pawn Код:
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,Vermelho,"BlaBlaBlaBlaBlaBla");
    ShowPlayerDialog(playerid,56, DIALOG_STYLE_PASSWORD,"BlaBlaBlaBlaBlaBlaBlaBlaBlaBla","BlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBla","Confirmar","Cancelar");
Ou apagar enteiramente este comando:
pawn Код:
if(strcmp(cmdtext, "BlaBlaBlaBlaBlaBla", true) == 0)
{
    ShowPlayerDialog(playerid,57,DIALOG_STYLE_PASSWORD,"BlaBlaBlaBlaBlaBlaBlaBlaBlaBla","Confirmar","Sair");
    return 1;
}
aaaah. e o Comando estб faltando uma barra
olha sу:
pawn Код:
if(strcmp(cmdtext, "BlaBlaBlaBlaBlaBla", true) == 0)
Geito correto:
pawn Код:
if(strcmp(cmdtext, "/BlaBlaBlaBlaBlaBla", true) == 0)
Reply
#5

Cуdigo corrigido sem erros.


pawn Код:
if(strcmp(cmdtext, "/faltavabarra", true) == 0)
{
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,Vermelho,"BlaBlaBlaBlaBlaBla");
    ShowPlayerDialog(playerid,56, DIALOG_STYLE_PASSWORD,"BlaBlaBlaBlaBlaBlaBlaBlaBlaBla","BlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBla","Confirmar","Cancelar");
    return 1;
}


if(strcmp(cmdtext, "/faltavabarradnv", true) == 0)
{
    ShowPlayerDialog(playerid,57,DIALOG_STYLE_PASSWORD,"BlaBlaBlaBlaBlaBlaBlaBlaBlaBla","faltava mais um BlaBlaBlaBlaBlaBlaBlaBlaBlaBla","Confirmar","Sair");
    return 1;
}
Reply
#6

Eu sei que falta a barra eu sу quero retirar o dialog...
por que estava dando erros...
Mais o jeito й criar outros comandos...
Reply
#7

Poste os erros, pra ver se eu posso ajudar-lo
Reply
#8

Poste os erros que aparece quando vocк tenta remover.
Reply
#9

Quote:
Originally Posted by Schocc
Посмотреть сообщение
Cуdigo corrigido sem erros.


pawn Код:
if(strcmp(cmdtext, "/faltavabarra", true) == 0)
{
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,Vermelho,"BlaBlaBlaBlaBlaBla");
    ShowPlayerDialog(playerid,56, DIALOG_STYLE_PASSWORD,"BlaBlaBlaBlaBlaBlaBlaBlaBlaBla","BlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBla","Confirmar","Cancelar");
    return 1;
}


if(strcmp(cmdtext, "/faltavabarradnv", true) == 0)
{
    ShowPlayerDialog(playerid,57,DIALOG_STYLE_PASSWORD,"BlaBlaBlaBlaBlaBlaBlaBlaBlaBla","faltava mais um BlaBlaBlaBlaBlaBlaBlaBlaBlaBla","Confirmar","Sair");
    return 1;
}
Ou entгo:

pawn Код:
if(strcmp(cmdtext, #/faltavabarra, true) == 0)
{
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,Vermelho,"BlaBlaBlaBlaBlaBla");
    ShowPlayerDialog(playerid,56, DIALOG_STYLE_PASSWORD,"BlaBlaBlaBlaBlaBlaBlaBlaBlaBla","BlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBla","Confirmar","Cancelar");
    return 1;
}


if(strcmp(cmdtext, #/faltavabarradnv, true) == 0)
{
    ShowPlayerDialog(playerid,57,DIALOG_STYLE_PASSWORD,"BlaBlaBlaBlaBlaBlaBlaBlaBlaBla","faltava mais um BlaBlaBlaBlaBlaBlaBlaBlaBlaBla","Confirmar","Sair");
    return 1;
}

# subtitui as " "
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)