[Ajuda] Converter Dialog Em SendClientMessage
#1

Bom Vamos Ao Codigo

pawn Код:
new DialogDiDi[1500];
       //SendClientMessage(playerid, COLOR_WHITE, "|______________ Lideres das Organizaзхes ______________|");
        format(DialogDiDi, sizeof(DialogDiDi),"%s\n {FF8C00}1 - Policia Militar: {828282}%s ",DialogDiDi, InfoOrg[1][Lider]);
        format(DialogDiDi, sizeof(DialogDiDi),"%s\n {FF8C00}2 - BOPE: {828282}%s ",DialogDiDi, InfoOrg[2][Lider]);
        format(DialogDiDi, sizeof(DialogDiDi),"%s\n {FF8C00}3 - Exercito: {828282}%s ",DialogDiDi, InfoOrg[3][Lider]);
        format(DialogDiDi, sizeof(DialogDiDi),"%s\n {FF8C00}4 - SA:MU: {828282}%s ",DialogDiDi, InfoOrg[4][Lider]);
        format(DialogDiDi, sizeof(DialogDiDi),"%s\n {FF8C00}5 - Los Aztecas: {828282}%s ",DialogDiDi, InfoOrg[5][Lider]);
        format(DialogDiDi, sizeof(DialogDiDi),"%s\n {FF8C00}6 - Taliban: {828282}%s ",DialogDiDi, InfoOrg[6][Lider]);
        format(DialogDiDi, sizeof(DialogDiDi),"%s\n {FF8C00}7 - Prefeito: {828282}%s ",DialogDiDi, InfoOrg[7][Lider]);
        format(DialogDiDi, sizeof(DialogDiDi),"%s\n {FF8C00}8 - Hitmans: {828282}%s ",DialogDiDi, InfoOrg[8][Lider]);
        format(DialogDiDi, sizeof(DialogDiDi),"%s\n {FF8C00}9 - Reporteres: {828282}%s ",DialogDiDi, InfoOrg[9][Lider]);
        format(DialogDiDi, sizeof(DialogDiDi),"%s\n {FF8C00}10 - Taxista: {828282}%s ",DialogDiDi, InfoOrg[10][Lider]);
        format(DialogDiDi, sizeof(DialogDiDi),"%s\n {FF8C00}11 - Policia Federal: {828282}%s ",DialogDiDi, InfoOrg[11][Lider]);
        format(DialogDiDi, sizeof(DialogDiDi),"%s\n {FF8C00}12 - Mбfia Cosa Nostra: {828282}%s ",DialogDiDi, InfoOrg[12][Lider]);
        format(DialogDiDi, sizeof(DialogDiDi),"%s\n {FF8C00}13 - Mбfia Yakuza: {828282}%s ",DialogDiDi, InfoOrg[13][Lider]);
        format(DialogDiDi, sizeof(DialogDiDi),"%s\n {FF8C00}14 - Groove Street: {828282}%s ",DialogDiDi, InfoOrg[14][Lider]);
        format(DialogDiDi, sizeof(DialogDiDi),"%s\n {FF8C00}15 - Al'qaeda: {828282}%s ",DialogDiDi, InfoOrg[15][Lider]);
        format(DialogDiDi, sizeof(DialogDiDi),"%s\n {FF8C00}16 - Polнcia Rodoviбria: {828282}%s ",DialogDiDi, InfoOrg[16][Lider]);
        format(DialogDiDi, sizeof(DialogDiDi),"%s\n {FF8C00}17 - Ballas: {828282}%s ",DialogDiDi, InfoOrg[17][Lider]);
        format(DialogDiDi, sizeof(DialogDiDi),"%s\n {FF8C00}18 - Los Vagos: {828282}%s ",DialogDiDi, InfoOrg[18][Lider]);
        format(DialogDiDi, sizeof(DialogDiDi),"%s\n {FF8C00}19 - Comando Vermelho: {828282}%s ",DialogDiDi, InfoOrg[19][Lider]);
        format(DialogDiDi, sizeof(DialogDiDi),"%s\n {FF8C00}20 - PCC: {828282}%s ",DialogDiDi, InfoOrg[20][Lider]);
        format(DialogDiDi, sizeof(DialogDiDi),"%s\n {FF8C00}21 - Sons of Anarchy: {828282}%s ",DialogDiDi, InfoOrg[21][Lider]);
        format(DialogDiDi, sizeof(DialogDiDi),"%s\n {FF8C00}22 - Mayans: {828282}%s ",DialogDiDi, InfoOrg[22][Lider]);
        format(DialogDiDi, sizeof(DialogDiDi),"%s\n {FF8C00}23 - Interpol: {828282}%s ",DialogDiDi, InfoOrg[23][Lider]);
        format(DialogDiDi, sizeof(DialogDiDi),"%s\n {FF8C00}24 - Mecanicos: {828282}%s ",DialogDiDi, InfoOrg[24][Lider]);
        format(DialogDiDi, sizeof(DialogDiDi),"%s\n {FF8C00}25 - Triads: {828282}%s ",DialogDiDi, InfoOrg[25][Lider]);
        format(DialogDiDi, sizeof(DialogDiDi),"%s\n {FF8C00}26 - Midnight Club: {828282}%s ",DialogDiDi, InfoOrg[26][Lider]);
        format(DialogDiDi, sizeof(DialogDiDi),"%s\n {FF8C00}27 - Drifters: {828282}%s ",DialogDiDi, InfoOrg[27][Lider]);
        ShowPlayerDialog(playerid, 8723, DIALOG_STYLE_MSGBOX, "{828282}Lнderes das Organizaзхes", DialogDiDi, "Fechar", "");
Me Ajuda aer
Reply
#2

Tб faltando criar vergonha na cara em.

Toma: https://sampwiki.blast.hk/wiki/SendClientMessage


Abraзos.
Reply
#3

Tomei Vergonha Olha No Que Deu

pawn Код:
new DialogDiDi[1500];
SendClientMessage(playerid, COR_ADMIN,"1 - Policia Militar: {828282}%s ",InfoOrg[1][Lider]);
        SendClientMessage(playerid, COR_ADMIN,"2 - BOPE: {828282}%s ",InfoOrg[2][Lider]);
        SendClientMessage(playerid, COR_ADMIN,"3 - Exercito: {828282}%s ",InfoOrg[3][Lider]);
        SendClientMessage(playerid, COR_ADMIN,"4 - SA:MU: {828282}%s ",InfoOrg[4][Lider]);
        SendClientMessage(playerid, COR_ADMIN,"5 - Los Aztecas: {828282}%s ",InfoOrg[5][Lider]);
        SendClientMessage(playerid, COR_ADMIN,"6 - Taliban: {828282}%s ",InfoOrg[6][Lider]);
        SendClientMessage(playerid, COR_ADMIN,"7 - Prefeito: {828282}%s ",InfoOrg[7][Lider]);
        SendClientMessage(playerid, COR_ADMIN,"8 - Hitmans: {828282}%s ",InfoOrg[8][Lider]);
        SendClientMessage(playerid, COR_ADMIN,"9 - Reporteres: {828282}%s ",InfoOrg[9][Lider]);
        SendClientMessage(playerid, COR_ADMIN,"10 - Taxista: {828282}%s ",InfoOrg[10][Lider]);
        SendClientMessage(playerid, COR_ADMIN,"11 - Policia Federal: {828282}%s ",InfoOrg[11][Lider]);
        SendClientMessage(playerid, COR_ADMIN,"12 - Mбfia Cosa Nostra: {828282}%s ",InfoOrg[12][Lider]);
        SendClientMessage(playerid, COR_ADMIN,"13 - Mбfia Yakuza: {828282}%s ",InfoOrg[13][Lider]);
        SendClientMessage(playerid, COR_ADMIN,"14 - Groove Street: {828282}%s ",InfoOrg[14][Lider]);
        SendClientMessage(playerid, COR_ADMIN,"15 - Al'qaeda: {828282}%s ",InfoOrg[15][Lider]);
        SendClientMessage(playerid, COR_ADMIN,"16 - Polнcia Rodoviбria: {828282}%s ",InfoOrg[16][Lider]);
        SendClientMessage(playerid, COR_ADMIN,"17 - Ballas: {828282}%s ",InfoOrg[17][Lider]);
        SendClientMessage(playerid, COR_ADMIN,"18 - Los Vagos: {828282}%s ",InfoOrg[18][Lider]);
        SendClientMessage(playerid, COR_ADMIN,"19 - Comando Vermelho: {828282}%s ",InfoOrg[19][Lider]);
        SendClientMessage(playerid, COR_ADMIN,"20 - PCC: {828282}%s ",InfoOrg[20][Lider]);
        SendClientMessage(playerid, COR_ADMIN,"21 - Sons of Anarchy: {828282}%s ",InfoOrg[21][Lider]);
        SendClientMessage(playerid, COR_ADMIN,"22 - Mayans: {828282}%s ",InfoOrg[22][Lider]);
        SendClientMessage(playerid, COR_ADMIN,"23 - Interpol: {828282}%s ",InfoOrg[23][Lider]);
        SendClientMessage(playerid, COR_ADMIN,"24 - Mecanicos: {828282}%s ",InfoOrg[24][Lider]);
        SendClientMessage(playerid, COR_ADMIN,"25 - Triads: {828282}%s ",InfoOrg[25][Lider]);
        SendClientMessage(playerid, COR_ADMIN,"26 - Midnight Club: {828282}%s ",InfoOrg[26][Lider]);
        SendClientMessage(playerid, COR_ADMIN,"27 - Drifters: {828282}%s ", InfoOrg[27][Lider]);
Substitui os dialog da frente e os de tras do lado do infoorg Resultado...

Код:
Compilando BHS.pwn...
C:\Users\Andressa\Desktop\Renan\BHS By Renan_F3R4\gamemodes\BHS.pwn(23074) : warning 202: number of arguments does not match definition

C:\Users\Andressa\Desktop\Renan\BHS By Renan_F3R4\gamemodes\BHS.pwn(23075) : warning 202: number of arguments does not match definition

C:\Users\Andressa\Desktop\Renan\BHS By Renan_F3R4\gamemodes\BHS.pwn(23076) : warning 202: number of arguments does not match definition

C:\Users\Andressa\Desktop\Renan\BHS By Renan_F3R4\gamemodes\BHS.pwn(23077) : warning 202: number of arguments does not match definition

C:\Users\Andressa\Desktop\Renan\BHS By Renan_F3R4\gamemodes\BHS.pwn(23078) : warning 202: number of arguments does not match definition

C:\Users\Andressa\Desktop\Renan\BHS By Renan_F3R4\gamemodes\BHS.pwn(23079) : warning 202: number of arguments does not match definition

C:\Users\Andressa\Desktop\Renan\BHS By Renan_F3R4\gamemodes\BHS.pwn(23080) : warning 202: number of arguments does not match definition

C:\Users\Andressa\Desktop\Renan\BHS By Renan_F3R4\gamemodes\BHS.pwn(23081) : warning 202: number of arguments does not match definition

C:\Users\Andressa\Desktop\Renan\BHS By Renan_F3R4\gamemodes\BHS.pwn(23082) : warning 202: number of arguments does not match definition

C:\Users\Andressa\Desktop\Renan\BHS By Renan_F3R4\gamemodes\BHS.pwn(23083) : warning 202: number of arguments does not match definition

C:\Users\Andressa\Desktop\Renan\BHS By Renan_F3R4\gamemodes\BHS.pwn(23084) : warning 202: number of arguments does not match definition

C:\Users\Andressa\Desktop\Renan\BHS By Renan_F3R4\gamemodes\BHS.pwn(23085) : warning 202: number of arguments does not match definition

C:\Users\Andressa\Desktop\Renan\BHS By Renan_F3R4\gamemodes\BHS.pwn(23086) : warning 202: number of arguments does not match definition

C:\Users\Andressa\Desktop\Renan\BHS By Renan_F3R4\gamemodes\BHS.pwn(23087) : warning 202: number of arguments does not match definition

C:\Users\Andressa\Desktop\Renan\BHS By Renan_F3R4\gamemodes\BHS.pwn(23088) : warning 202: number of arguments does not match definition

C:\Users\Andressa\Desktop\Renan\BHS By Renan_F3R4\gamemodes\BHS.pwn(23089) : warning 202: number of arguments does not match definition

C:\Users\Andressa\Desktop\Renan\BHS By Renan_F3R4\gamemodes\BHS.pwn(23090) : warning 202: number of arguments does not match definition

C:\Users\Andressa\Desktop\Renan\BHS By Renan_F3R4\gamemodes\BHS.pwn(23091) : warning 202: number of arguments does not match definition

C:\Users\Andressa\Desktop\Renan\BHS By Renan_F3R4\gamemodes\BHS.pwn(23092) : warning 202: number of arguments does not match definition

C:\Users\Andressa\Desktop\Renan\BHS By Renan_F3R4\gamemodes\BHS.pwn(23093) : warning 202: number of arguments does not match definition

C:\Users\Andressa\Desktop\Renan\BHS By Renan_F3R4\gamemodes\BHS.pwn(23094) : warning 202: number of arguments does not match definition

C:\Users\Andressa\Desktop\Renan\BHS By Renan_F3R4\gamemodes\BHS.pwn(23095) : warning 202: number of arguments does not match definition

C:\Users\Andressa\Desktop\Renan\BHS By Renan_F3R4\gamemodes\BHS.pwn(23096) : warning 202: number of arguments does not match definition

C:\Users\Andressa\Desktop\Renan\BHS By Renan_F3R4\gamemodes\BHS.pwn(23097) : warning 202: number of arguments does not match definition

C:\Users\Andressa\Desktop\Renan\BHS By Renan_F3R4\gamemodes\BHS.pwn(23098) : warning 202: number of arguments does not match definition

C:\Users\Andressa\Desktop\Renan\BHS By Renan_F3R4\gamemodes\BHS.pwn(23099) : warning 202: number of arguments does not match definition

C:\Users\Andressa\Desktop\Renan\BHS By Renan_F3R4\gamemodes\BHS.pwn(23100) : warning 202: number of arguments does not match definition

C:\Users\Andressa\Desktop\Renan\BHS By Renan_F3R4\gamemodes\BHS.pwn(23072) : warning 204: symbol is assigned a value that is never used: "DialogDiDi"

Pawn compiler 3.2.3664                          Copyright © 1997-2006, ITB CompuPhase

Header size:          12552 bytes
Code size:          2684480 bytes
Data size:          3336188 bytes
Stack/heap size:      16384 bytes; estimated max. usage=5367 cells (21468 bytes)
Total requirements: 6049604 bytes

28 Warnings.
#edit quando entra in-game e da /orgs ele nгo aparece nada ^^
OBGD
Reply
#4

O SendClientMessage nгo formata mensagens, tu vai ter que formatar e enviar depois...

Exemplo:
pawn Код:
new DialogDiDi[1500];

format(DialogDiDi, sizeof(DialogDiDi),"{FF8C00}1 - Policia Militar: {828282}%s ", InfoOrg[1][Lider]);
SendClientMessage(playerid, -1, DialogDiDi);

//Aqui tu bota a prуxima mensagem...

format(DialogDiDi, sizeof(DialogDiDi),"{FF8C00}2 - BOPE: {828282}%s ", InfoOrg[2][Lider]);
SendClientMessage(playerid, -1, DialogDiDi);

//Prуxima...
Reply
#5

editando aqui ja dou #edit

#edit Resolveu Amigo Eu Coloquei Assim

pawn Код:
new DialogDiDi[1500];
        SendClientMessage(playerid, COLOR_WHITE, "|______________ Lideres das Organizaзхes ______________|");
        format(DialogDiDi, sizeof(DialogDiDi),"1 - Policia Militar: {828282}%s ", InfoOrg[1][Lider]);
        SendClientMessage(playerid, -1, DialogDiDi);
        ///////////////////////////////////////////////////////////////////////////////////////////
        format(DialogDiDi, sizeof(DialogDiDi),"2 - BOPE: {828282}%s ", InfoOrg[2][Lider]);
        SendClientMessage(playerid, -1, DialogDiDi);
        ///////////////////////////////////////////////////////////////////////////////////////////
        format(DialogDiDi, sizeof(DialogDiDi),"3 - Exercito: {828282}%s", InfoOrg[3][Lider]);
        SendClientMessage(playerid, -1, DialogDiDi);
        ///////////////////////////////////////////////////////////////////////////////////////////
        format(DialogDiDi, sizeof(DialogDiDi),"4 - SA:MU: {828282}%s ", InfoOrg[4][Lider]);
        SendClientMessage(playerid, -1, DialogDiDi);
        ///////////////////////////////////////////////////////////////////////////////////////////
        format(DialogDiDi, sizeof(DialogDiDi),"5 - Los Aztecas: {828282}%s ", InfoOrg[5][Lider]);
        SendClientMessage(playerid, -1, DialogDiDi);
        ///////////////////////////////////////////////////////////////////////////////////////////
        format(DialogDiDi, sizeof(DialogDiDi),"6 - Taliban: {828282}%s ", InfoOrg[6][Lider]);
        SendClientMessage(playerid, -1, DialogDiDi);
        ///////////////////////////////////////////////////////////////////////////////////////////
        format(DialogDiDi, sizeof(DialogDiDi),"7 - Prefeito: {828282}%s ", InfoOrg[7][Lider]);
        SendClientMessage(playerid, -1, DialogDiDi);
        ///////////////////////////////////////////////////////////////////////////////////////////
        format(DialogDiDi, sizeof(DialogDiDi),"8 - Hitmans: {828282}%s ", InfoOrg[8][Lider]);
        SendClientMessage(playerid, -1, DialogDiDi);
        ///////////////////////////////////////////////////////////////////////////////////////////
        format(DialogDiDi, sizeof(DialogDiDi),"9 - Reporteres: {828282}%s ", InfoOrg[9][Lider]);
        SendClientMessage(playerid, -1, DialogDiDi);
        ///////////////////////////////////////////////////////////////////////////////////////////
        format(DialogDiDi, sizeof(DialogDiDi),"10 - Taxista: {828282}%s ", InfoOrg[10][Lider]);
        SendClientMessage(playerid, -1, DialogDiDi);
        ///////////////////////////////////////////////////////////////////////////////////////////
        format(DialogDiDi, sizeof(DialogDiDi),"11 - Policia Federal: {828282}%s ", InfoOrg[11][Lider]);
        SendClientMessage(playerid, -1, DialogDiDi);
        ///////////////////////////////////////////////////////////////////////////////////////////
        format(DialogDiDi, sizeof(DialogDiDi),"12 - Mбfia Cosa Nostra: {828282}%s ",InfoOrg[12][Lider]);
        SendClientMessage(playerid, -1, DialogDiDi);
        ///////////////////////////////////////////////////////////////////////////////////////////
        format(DialogDiDi, sizeof(DialogDiDi),"13 - Mбfia Yakuza: {828282}%s ",InfoOrg[13][Lider]);
        SendClientMessage(playerid, -1, DialogDiDi);
        ///////////////////////////////////////////////////////////////////////////////////////////
        format(DialogDiDi, sizeof(DialogDiDi),"14 - Groove Street: {828282}%s ",InfoOrg[14][Lider]);
        SendClientMessage(playerid, -1, DialogDiDi);
        ///////////////////////////////////////////////////////////////////////////////////////////
        format(DialogDiDi, sizeof(DialogDiDi),"15 - Al'qaeda: {828282}%s ",InfoOrg[15][Lider]);
        SendClientMessage(playerid, -1, DialogDiDi);
        ///////////////////////////////////////////////////////////////////////////////////////////
        format(DialogDiDi, sizeof(DialogDiDi),"16 - Polнcia Rodoviбria: {828282}%s ",InfoOrg[16][Lider]);
        SendClientMessage(playerid, -1, DialogDiDi);
        ///////////////////////////////////////////////////////////////////////////////////////////
        format(DialogDiDi, sizeof(DialogDiDi),"17 - Ballas: {828282}%s ",InfoOrg[17][Lider]);
        SendClientMessage(playerid, -1, DialogDiDi);
        ///////////////////////////////////////////////////////////////////////////////////////////
        format(DialogDiDi, sizeof(DialogDiDi),"18 - Los Vagos: {828282}%s ",InfoOrg[18][Lider]);
        SendClientMessage(playerid, -1, DialogDiDi);
        ///////////////////////////////////////////////////////////////////////////////////////////
        format(DialogDiDi, sizeof(DialogDiDi),"19 - Comando Vermelho: {828282}%s ",InfoOrg[19][Lider]);
        SendClientMessage(playerid, -1, DialogDiDi);
        ///////////////////////////////////////////////////////////////////////////////////////////
        format(DialogDiDi, sizeof(DialogDiDi),"20 - PCC: {828282}%s ",InfoOrg[20][Lider]);
        SendClientMessage(playerid, -1, DialogDiDi);
        ///////////////////////////////////////////////////////////////////////////////////////////
        format(DialogDiDi, sizeof(DialogDiDi),"21 - Sons of Anarchy: {828282}%s ",InfoOrg[21][Lider]);
        SendClientMessage(playerid, -1, DialogDiDi);
        ///////////////////////////////////////////////////////////////////////////////////////////
        format(DialogDiDi, sizeof(DialogDiDi),"22 - Mayans: {828282}%s ",InfoOrg[22][Lider]);
        SendClientMessage(playerid, -1, DialogDiDi);
        ///////////////////////////////////////////////////////////////////////////////////////////
        format(DialogDiDi, sizeof(DialogDiDi),"23 - Interpol: {828282}%s ",InfoOrg[23][Lider]);
        SendClientMessage(playerid, -1, DialogDiDi);
        ///////////////////////////////////////////////////////////////////////////////////////////
        format(DialogDiDi, sizeof(DialogDiDi),"24 - Mecanicos: {828282}%s ",InfoOrg[24][Lider]);
        SendClientMessage(playerid, -1, DialogDiDi);
        ///////////////////////////////////////////////////////////////////////////////////////////
        format(DialogDiDi, sizeof(DialogDiDi),"25 - Triads: {828282}%s ",InfoOrg[25][Lider]);
        SendClientMessage(playerid, -1, DialogDiDi);
        ///////////////////////////////////////////////////////////////////////////////////////////
        format(DialogDiDi, sizeof(DialogDiDi),"26 - Midnight Club: {828282}%s ",InfoOrg[26][Lider]);
        SendClientMessage(playerid, -1, DialogDiDi);
        ///////////////////////////////////////////////////////////////////////////////////////////
        format(DialogDiDi, sizeof(DialogDiDi),"27 - Drifters: {828282}%s ", InfoOrg[27][Lider]);
        SendClientMessage(playerid, -1, DialogDiDi);
        ///////////////////////////////////////////////////////////////////////////////////////////
Rep + Vlw
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)