SA-MP Forums Archive
[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=378011)



Dialog - Rhayziin - 16.09.2012

Bom galera, eu fiz um /rg simples de teste, mas sу aparece a ъltima linha:

pawn Код:
CMD:rg(playerid)
{
    new StringRG[500];
    GetPlayerName(playerid, zNome, MAX_PLAYER_NAME);
    format(StringRG, sizeof(StringRG), "{7FFFD4}RG de: {AFEEEE}%s\n",zNome);
    format(StringRG, sizeof(StringRG), "{7FFFD4}Level: {AFEEEE}%d\n",Info[playerid][zLevel]);
    format(StringRG, sizeof(StringRG), "{7FFFD4}Respeito: {AFEEEE}%d\n",Info[playerid][zRespeito]);
    format(StringRG, sizeof(StringRG), "{7FFFD4}Level de Administrador: {AFEEEE}%d",Info[playerid][zAdmin]);
    ShowPlayerDialog(playerid, DIALOG_RG, DIALOG_STYLE_MSGBOX, "Documentos", StringRG, "Fechar", "");
    return 1;
}
Alguem ajuda ae o/


Re: Dialog - CaioMiglioli - 16.09.2012

Код:
format(StringRG, sizeof(StringRG), "{7FFFD4}RG de: {AFEEEE}%s\n",zNome);
strcat(StringRG, "{7FFFD4}Level: {AFEEEE}%d\n",Info[playerid][zLevel]);
strcat(StringRG, "{7FFFD4}Respeito: {AFEEEE}%d\n",Info[playerid][zRespeito]);
strcat(StringRG, "{7FFFD4}Level de Administrador: {AFEEEE}%d",Info[playerid][zAdmin]);



Re: Dialog - Rhayziin - 16.09.2012

Quote:
Originally Posted by CaioMiglioli
Посмотреть сообщение
Код:
format(StringRG, sizeof(StringRG), "{7FFFD4}RG de: {AFEEEE}%s\n",zNome);
strcat(StringRG, "{7FFFD4}Level: {AFEEEE}%d\n",Info[playerid][zLevel]);
strcat(StringRG, "{7FFFD4}Respeito: {AFEEEE}%d\n",Info[playerid][zRespeito]);
strcat(StringRG, "{7FFFD4}Level de Administrador: {AFEEEE}%d",Info[playerid][zAdmin]);
Tem certeza meu jovem?


Re: Dialog - CaioMiglioli - 16.09.2012

Quote:
Originally Posted by Rhayziin
Посмотреть сообщение
Tem certeza meu jovem?
Testou?


Re: Dialog - Rhayziin - 16.09.2012

Quote:
Originally Posted by CaioMiglioli
Посмотреть сообщение
Testou?
Claro, e desse jeito que vocк colocou, sу vai aparecer a primeira linha...


Re: Dialog - CaioMiglioli - 16.09.2012

Quote:
Originally Posted by Rhayziin
Посмотреть сообщение
Claro, e desse jeito que vocк colocou, sу vai aparecer a primeira linha...
Boiei legal, vocк colocou no comando, testou e viu se ta certo ou tirou as conclusхes apenas olhando o cуdigo?


Re: Dialog - Tony_Rodrigues - 16.09.2012

Quote:
Originally Posted by CaioMiglioli
Посмотреть сообщение
Код:
format(StringRG, sizeof(StringRG), "{7FFFD4}RG de: {AFEEEE}%s\n",zNome);
strcat(StringRG, "{7FFFD4}Level: {AFEEEE}%d\n",Info[playerid][zLevel]);
strcat(StringRG, "{7FFFD4}Respeito: {AFEEEE}%d\n",Info[playerid][zRespeito]);
strcat(StringRG, "{7FFFD4}Level de Administrador: {AFEEEE}%d",Info[playerid][zAdmin]);
Euri desse script ai kkk totalmente inutil

@topic

Nгo seria
pawn Код:
CMD:rg(playerid)
{
    new StringRG[500],DialogRG[500];
    GetPlayerName(playerid, zNome, MAX_PLAYER_NAME);
    format(StringRG, sizeof(StringRG), "{7FFFD4}RG de: {AFEEEE}%s\n",zNome);strcat(DialogRG,StringRG);
    format(StringRG, sizeof(StringRG), "{7FFFD4}Level: {AFEEEE}%d\n",Info[playerid][zLevel]);strcat(DialogRG,StringRG);
    format(StringRG, sizeof(StringRG), "{7FFFD4}Respeito: {AFEEEE}%d\n",Info[playerid][zRespeito]);strcat(DialogRG,StringRG);
    format(StringRG, sizeof(StringRG), "{7FFFD4}Level de Administrador: {AFEEEE}%d",Info[playerid][zAdmin]);strcat(DialogRG,StringRG);
    ShowPlayerDialog(playerid, DIALOG_RG, DIALOG_STYLE_MSGBOX, "Documentos", DialogRG, "Fechar", "");
    return 1;
}



Re: Dialog - YourLord - 16.09.2012

pawn Код:
new StringRG[500];
    format(StringRG, sizeof(StringRG), "{7FFFD4}RG de: {AFEEEE}%s\n","p");
    format(StringRG, sizeof(StringRG), "%s{7FFFD4}Level: {AFEEEE}%d\n",StringRG,Info[playerid][zLevel]);
    format(StringRG, sizeof(StringRG), "%s{7FFFD4}Respeito: {AFEEEE}%d\n",StringRG,Info[playerid][zRespeito]);
    format(StringRG, sizeof(StringRG), "%s{7FFFD4}Level de Administrador: {AFEEEE}%d",StringRG,Info[playerid][zAdmin]);



Re: Dialog - CaioMiglioli - 16.09.2012

Engraзado que oq eu uso funciona normalmente desse jeito...


Re: Dialog - Rhayziin - 16.09.2012

Quote:
Originally Posted by Tony_Rodrigues
Посмотреть сообщение
Euri desse script ai kkk totalmente inutil

@topic

Nгo seria
pawn Код:
CMD:rg(playerid)
{
    new StringRG[500],DialogRG[500];
    GetPlayerName(playerid, zNome, MAX_PLAYER_NAME);
    format(StringRG, sizeof(StringRG), "{7FFFD4}RG de: {AFEEEE}%s\n",zNome);strcat(DialogRG,StringRG);
    format(StringRG, sizeof(StringRG), "{7FFFD4}Level: {AFEEEE}%d\n",Info[playerid][zLevel]);strcat(DialogRG,StringRG);
    format(StringRG, sizeof(StringRG), "{7FFFD4}Respeito: {AFEEEE}%d\n",Info[playerid][zRespeito]);strcat(DialogRG,StringRG);
    format(StringRG, sizeof(StringRG), "{7FFFD4}Level de Administrador: {AFEEEE}%d",Info[playerid][zAdmin]);strcat(DialogRG,StringRG);
    ShowPlayerDialog(playerid, DIALOG_RG, DIALOG_STYLE_MSGBOX, "Documentos", DialogRG, "Fechar", "");
    return 1;
}
Vlw , +REP