[Ajuda] Erros no 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] Erros no Dialog (
/showthread.php?tid=542332)
Erros no Dialog -
Thompsoon - 18.10.2014
pawn Код:
new Nome[MAX_PLAYER_NAME];
GetPlayerName(playerid, Nome, sizeof(Nome));
new String[100];
format(String, sizeof(String), CONTAS, Nome);
if(!dini_Exists(String))
{
format(String, sizeof(String), "{0000FF}Nick: {FFFFFF}%s \n\n{0000FF}Status da conta: {00FF00}Nгo Registrado\n\n{FFFFFF}Digite uma senha", Nome);
ShowPlayerDialog(playerid, REGISTRO, DIALOG_STYLE_INPUT, "Registro", String, "Registrar", "Cancelar");
}
Quando entro no jogo so aparece o seguinte:
Nick: {NICK DO JOGADOR}
Status da conta: {STATUS DA CONTA}
Digi << й aki o problema, sу aparece "digi" e nao toda a frase
Obrigado desde jб.
Re: Erros no Dialog -
DogeMan - 18.10.2014
Tamanho da variбvel
new String[100]; coloque new String[200];
Re: Erros no Dialog -
ipsLuan - 18.10.2014
pawn Код:
new Nome[MAX_PLAYER_NAME];
GetPlayerName(playerid, Nome, sizeof(Nome));
new String[255];
format(String, sizeof(String), CONTAS, Nome);
if(!dini_Exists(String))
{
format(String, sizeof(String), "{0000FF}Nick: {FFFFFF}%s \n\n{0000FF}Status da conta: {00FF00}Nгo Registrado\n\n{FFFFFF}Digite uma senha", Nome);
ShowPlayerDialog(playerid, REGISTRO, DIALOG_STYLE_INPUT, "Registro", String, "Registrar", "Cancelar");
}
Re: Erros no Dialog -
Jimmmy - 18.10.2014
So vocк almentar sua String de 100 para 128 ou 256 que й o correto .
pawn Код:
new Nome[MAX_PLAYER_NAME];
GetPlayerName(playerid, Nome, sizeof(Nome));
new String[128];
format(String, sizeof(String), CONTAS, Nome);
if(!dini_Exists(String))
{
format(String, sizeof(String), "{0000FF}Nick: {FFFFFF}%s \n\n{0000FF}Status da conta: {00FF00}Nгo Registrado\n\n{FFFFFF}Digite uma senha", Nome);
ShowPlayerDialog(playerid, REGISTRO, DIALOG_STYLE_INPUT, "Registro", String, "Registrar", "Cancelar");
}
Abraзo
Re: Erros no Dialog -
Thompsoon - 18.10.2014
Bom man
Vlw !!