[Ajuda] Dialog
#1

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/
Reply
#2

Код:
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]);
Reply
#3

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?
Reply
#4

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

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

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?
Reply
#7

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;
}
Reply
#8

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]);
Reply
#9

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)