[Ajuda] Erro 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] Erro Dialog (
/showthread.php?tid=390687)
Erro Dialog -
Marllon11 - 07.11.2012
Daando Erro Olha Issu
Код:
C:\Users\Marllon\Desktop\EMP.pwn(45) : warning 213: tag mismatch
C:\Users\Marllon\Desktop\EMP.pwn(73) : warning 217: loose indentation
C:\Users\Marllon\Desktop\EMP.pwn(254) : error 029: invalid expression, assumed zero
C:\Users\Marllon\Desktop\EMP.pwn(255) : warning 217: loose indentation
C:\Users\Marllon\Desktop\EMP.pwn(259) : error 029: invalid expression, assumed zero
C:\Users\Marllon\Desktop\EMP.pwn(260) : warning 217: loose indentation
C:\Users\Marllon\Desktop\EMP.pwn(262) : error 054: unmatched closing brace ("}")
C:\Users\Marllon\Desktop\EMP.pwn(263) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Agoora Olha AS LiinhaS Do Erro
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid ==dialog2)
{
if(response)
}
SendClientMessage(playerid,-1,"[x]Voce Clicou Em Concordo,Parabйns[x]");
GameTextForPlayer(playerid,"[x]Concordou",3,3000);
}
else
}
Kick(playerid);
}
}
return 1;
}
Код:
public OnPlayerConnect(playerid)
{
if(regrasc[playerid] == false)
{
ShowPlayerDialog(playerid, regras, DIALOG_STYLE_MSGBOX,"Brasil The Real","Nunca Use Xiiter Nгo Cometa DB/DM Nгo Ser Ant RPG","Concordo","Discordo");
}
else
{
}
return 1;
}
Код:
#define regras 0
#define dialog 2
new bool:regrasc[MAX_PLAYERS];
new dialog2;
AJUUDEM POR FAAVOR !
Re: Erro Dialog -
duuuwh - 07.11.2012
Substitui o cуdigo da public OnPlayerConnect, por este e ve se resulta:
PHP код:
if(regrasc[playerid] == false)
{
ShowPlayerDialog(playerid, regras, DIALOG_STYLE_MSGBOX,"Nunca Use Xiiter Nгo Cometa DB/DM Nгo Ser Ant RPG","Concordo","Discordo");
}
else
{
}
return 1;
}
Re: Erro Dialog -
Marllon11 - 07.11.2012
neem foii ;$
Re: Erro Dialog -
Don_Speed - 07.11.2012
Re: Erro Dialog -
Marllon11 - 07.11.2012
o erro contiinuaa ';$
Re: Erro Dialog -
@Riichard - 07.11.2012
Ta usando algo nesse else?
Se nгo, por que usa-lo ali?
Re: Erro Dialog -
Don_Speed - 07.11.2012
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == regras)
{
if(!response)return Kick(playerid);
SendClientMessage(playerid, -1, "[x]Voce Clicou Em Concordo,Parabйns[x]");
GameTextForPlayer(playerid, "[x]Concordou", 3, 3000);
}
return 1;
}
Re: Erro Dialog -
Marllon11 - 07.11.2012
Quote:
Originally Posted by @Riichard
Ta usando algo nesse else?
Se nгo, por que usa-lo ali?
|
comu assim usando algo nese else ?
Re: Erro Dialog -
duuuwh - 07.11.2012
exclui o else se nгo tб usando nada mano..