[AJUDA] Como passar o /orgs do modo lista para o dialog
#1

Voces podem me ajuda, meu GM tem o comando /orgs em modo lista e eu gostaria de passar ele para o dialog e ele continue informando os lideres e as orgs

esse e o codigo pwn .

PHP код:
if(strcmp(cmd"/orgs"true) == || strcmp(cmd"/organizacoes"true) == 0)
    {
        if(
IsPlayerConnected(playerid))
        {
            if (
PlayerInfo[playerid][pAdmin] >= 0)
            {
                if(
admtrampando[playerid] < && PlayerInfo[playerid][pAdmin] != && PlayerInfo[playerid][pAdmin] != && PlayerInfo[playerid][pAdmin] != 0)
                {
                    
SendClientMessage(playeridCOLOR_GRAD1"Vocк nгo estб trabalhando! (/administrar)");
                    return 
1;
                }
                
SendClientMessage(playeridCOLOR_WHITE"|______________ {FF7800}Organizaзхes do BVO{FFFFFF}______________|");
                
format(stringsizeof(string), "{828282}Nє1 {FF8C00}Policia Militar: {828282}%s"InfoOrg[1][Lider]);
                
MSGPLAYER(playeridCOLOR_AZULBBstring);
                
format(stringsizeof(string), "{828282}Nє2 {FF8C00}Bope: {828282}%s"InfoOrg[2][Lider]);
                 
MSGPLAYER(playeridCOLOR_AZULBBstring);
                
format(stringsizeof(string), "{828282}Nє3 {FF8C00}Exйrcito: {828282}%s"InfoOrg[3][Lider]);
                
MSGPLAYER(playeridCOLOR_AZULBBstring);
                
format(stringsizeof(string), "{828282}Nє4 {FF8C00}Mйdicos: {828282}%s"InfoOrg[4][Lider]);
                
MSGPLAYER(playeridCOLOR_AZULBBstring);
                
format(stringsizeof(string), "{828282}Nє5 {FF8C00}Los Aztecas: {828282}%s"InfoOrg[5][Lider]);
                
MSGPLAYER(playeridCOLOR_AZULBBstring);
                
format(stringsizeof(string), "{828282}Nє6 {FF8C00}Taliban: {828282}%s"InfoOrg[6][Lider]);
                
MSGPLAYER(playeridCOLOR_AZULBBstring);
                
format(stringsizeof(string), "{828282}Nє7 {FF8C00}Prefeito: {828282}%s"InfoOrg[7][Lider]);
                
MSGPLAYER(playeridCOLOR_AZULBBstring);
                
format(stringsizeof(string), "{828282}Nє8 {FF8C00}Hitmans: {828282}%s"InfoOrg[8][Lider]);
                
MSGPLAYER(playeridCOLOR_AZULBBstring);
                 
format(stringsizeof(string), "{828282}Nє9 {FF8C00}Reporteres: {828282}%s"InfoOrg[9][Lider]);
                
MSGPLAYER(playeridCOLOR_AZULBBstring);
                
format(stringsizeof(string), "{828282}Nє10 {FF8C00}Taxistas: {828282}%s"InfoOrg[10][Lider]);
                
MSGPLAYER(playeridCOLOR_AZULBBstring);
                 
format(stringsizeof(string), "{828282}Nє11 {FF8C00}Policia Federal: {828282}%s"InfoOrg[11][Lider]);
                
MSGPLAYER(playeridCOLOR_AZULBBstring);
                
format(stringsizeof(string), "{828282}Nє12 {FF8C00}Mбfia Cosa Nostra: {828282}%s"InfoOrg[12][Lider]);
                
MSGPLAYER(playeridCOLOR_AZULBBstring);
                
format(stringsizeof(string), "{828282}Nє13 {FF8C00}Mбfia Yakuza: {828282}%s"InfoOrg[13][Lider]);
                
MSGPLAYER(playeridCOLOR_AZULBBstring);
                
format(stringsizeof(string), "{828282}Nє14 {FF8C00}Groove Street: {828282}%s"InfoOrg[14][Lider]);
                   
MSGPLAYER(playeridCOLOR_AZULBBstring);
                 
format(stringsizeof(string), "{828282}Nє15 {FF8C00}Al'qaeda: {828282}%s"InfoOrg[15][Lider]);
                
MSGPLAYER(playeridCOLOR_AZULBBstring);
                 
format(stringsizeof(string), "{828282}Nє16 {FF8C00}Policia Civil: {828282}%s"InfoOrg[16][Lider]);
                
MSGPLAYER(playeridCOLOR_AZULBBstring);
                
format(stringsizeof(string), "{828282}Nє17 {FF8C00}Ballas: {828282}%s"InfoOrg[17][Lider]);
                  
MSGPLAYER(playeridCOLOR_AZULBBstring);
                
format(stringsizeof(string), "{828282}Nє18 {FF8C00}Vagos: {828282}%s"InfoOrg[18][Lider]);
                
MSGPLAYER(playeridCOLOR_AZULBBstring);
                
format(stringsizeof(string), "{828282}Nє19 {FF8C00}Comando Vermelho: {828282}%s"InfoOrg[19][Lider]);
                 
MSGPLAYER(playeridCOLOR_AZULBBstring);
                 
format(stringsizeof(string), "{828282}Nє20 {FF8C00}Los tugas: {828282}%s"InfoOrg[20][Lider]);
                 
MSGPLAYER(playeridCOLOR_AZULBBstring);
                 
format(stringsizeof(string), "{828282}Nє21 {FF8C00}Irmandade: {828282}%s"InfoOrg[21][Lider]);
                 
MSGPLAYER(playeridCOLOR_AZULBBstring);
                  
format(stringsizeof(string), "{828282}Nє22 {FF8C00}Los Fortes: {828282}%s"InfoOrg[22][Lider]);
                
MSGPLAYER(playeridCOLOR_AZULBBstring);
                
format(stringsizeof(string), "{828282}Nє23 {FF8C00}Bombeiros: {828282}%s"InfoOrg[23][Lider]);
                 
MSGPLAYER(playeridCOLOR_AZULBBstring);
                 
/*format(string, sizeof(string), "{828282}Nє25 {FF8C00}The Killers: {828282}%s", InfoOrg[25][Lider]);
                MSGPLAYER(playerid, COLOR_AZULBB, string);
                 format(string, sizeof(string), "{828282}Nє26 {FF8C00}Policia Militar LV: {828282}%s", InfoOrg[26][Lider]);
                 MSGPLAYER(playerid, COLOR_AZULBB, string);
                format(string, sizeof(string), "{828282}Nє27 {FF8C00}Mendigos: {828282}%s", InfoOrg[27][Lider]);
                MSGPLAYER(playerid, COLOR_AZULBB, string);
                format(string, sizeof(string), "{828282}Nє28 {FF8C00}Bope : {828282}%s", InfoOrg[28][Lider]);
                 MSGPLAYER(playerid, COLOR_AZULBB, string);
                format(string, sizeof(string), "{828282}Nє29 {FF8C00}Embreve: {828282}%s", InfoOrg[29][Lider]);
                MSGPLAYER(playerid, COLOR_AZULBB, string);
                format(string, sizeof(string), "{828282}Nє30 {FF8C00}Policia Federal: {828282}%s", InfoOrg[30][Lider]);
                MSGPLAYER(playerid, COLOR_AZULBB, string);*/
            
}
        }
        return 
1;
    } 
me ajudem!!
Reply
#2

Bote isto
PHP код:
strins(strstring,strlen(str)); 
No lugar dos
PHP код:
MSGPLAYER(playeridCOLOR_AZULBBstring); 

@edit quase esqueci

bote
PHP код:
ShowPlayerDialog(playerid50000DIALOG_STYLE_MSGBOX"orgs"str"OK"""); 
Reply
#3

Bota aonde esse seu edit
Reply
#4

Quote:
Originally Posted by BBzin
Посмотреть сообщение
Bota aonde esse seu edit
Debaixo de todas as mensagens , nao pra colocar em cada , mas sim no final de tudos.
Ou seja apenas 1 desse no cmd.
Reply
#5

vc pode fazer pra mim o codigo completo que eu ao to conseguindo
Reply
#6

Creditos ao mau tito tmb
pawn Код:
if(strcmp(cmd, "/orgs", true) == 0 || strcmp(cmd, "/organizacoes", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if (PlayerInfo[playerid][pAdmin] >= 0)
            {
                if(admtrampando[playerid] < 0 && PlayerInfo[playerid][pAdmin] != 0 && PlayerInfo[playerid][pAdmin] != 0 && PlayerInfo[playerid][pAdmin] != 0)
                {
                    SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб trabalhando! (/administrar)");
                    return 1;
                }
               
                format(string, sizeof(string), "{828282}Nє1 {FF8C00}Policia Militar: {828282}%s", InfoOrg[1][Lider]);
                strins(str, string);
                format(string, sizeof(string), "{828282}Nє2 {FF8C00}Bope: {828282}%s", InfoOrg[2][Lider]);
                 strins(str, string);
                format(string, sizeof(string), "{828282}Nє3 {FF8C00}Exйrcito: {828282}%s", InfoOrg[3][Lider]);
                strins(str, string);
                format(string, sizeof(string), "{828282}Nє4 {FF8C00}Mйdicos: {828282}%s", InfoOrg[4][Lider]);
                strins(str, string);
                format(string, sizeof(string), "{828282}Nє5 {FF8C00}Los Aztecas: {828282}%s", InfoOrg[5][Lider]);
                strins(str, string);
                format(string, sizeof(string), "{828282}Nє6 {FF8C00}Taliban: {828282}%s", InfoOrg[6][Lider]);
                strins(str, string);
                format(string, sizeof(string), "{828282}Nє7 {FF8C00}Prefeito: {828282}%s", InfoOrg[7][Lider]);
                strins(str, string);
                format(string, sizeof(string), "{828282}Nє8 {FF8C00}Hitmans: {828282}%s", InfoOrg[8][Lider]);
                strins(str, string);
                 format(string, sizeof(string), "{828282}Nє9 {FF8C00}Reporteres: {828282}%s", InfoOrg[9][Lider]);
                strins(str, string);
                format(string, sizeof(string), "{828282}Nє10 {FF8C00}Taxistas: {828282}%s", InfoOrg[10][Lider]);
                strins(str, string);
                 format(string, sizeof(string), "{828282}Nє11 {FF8C00}Policia Federal: {828282}%s", InfoOrg[11][Lider]);
                strins(str, string);
                format(string, sizeof(string), "{828282}Nє12 {FF8C00}Mбfia Cosa Nostra: {828282}%s", InfoOrg[12][Lider]);
                strins(str, string);
                format(string, sizeof(string), "{828282}Nє13 {FF8C00}Mбfia Yakuza: {828282}%s", InfoOrg[13][Lider]);
                strins(str, string);
                format(string, sizeof(string), "{828282}Nє14 {FF8C00}Groove Street: {828282}%s", InfoOrg[14][Lider]);
                   strins(str, string);
                 format(string, sizeof(string), "{828282}Nє15 {FF8C00}Al'qaeda: {828282}%s", InfoOrg[15][Lider]);
                strins(str, string);
                 format(string, sizeof(string), "{828282}Nє16 {FF8C00}Policia Civil: {828282}%s", InfoOrg[16][Lider]);
                strins(str, string);
                format(string, sizeof(string), "{828282}Nє17 {FF8C00}Ballas: {828282}%s", InfoOrg[17][Lider]);
                  strins(str, string);
                format(string, sizeof(string), "{828282}Nє18 {FF8C00}Vagos: {828282}%s", InfoOrg[18][Lider]);
                strins(str, string);
                format(string, sizeof(string), "{828282}Nє19 {FF8C00}Comando Vermelho: {828282}%s", InfoOrg[19][Lider]);
                 strins(str, string);
                 format(string, sizeof(string), "{828282}Nє20 {FF8C00}Los tugas: {828282}%s", InfoOrg[20][Lider]);
                 strins(str, string);
                 format(string, sizeof(string), "{828282}Nє21 {FF8C00}Irmandade: {828282}%s", InfoOrg[21][Lider]);
                 strins(str, string);
                  format(string, sizeof(string), "{828282}Nє22 {FF8C00}Los Fortes: {828282}%s", InfoOrg[22][Lider]);
                strins(str, string);
                format(string, sizeof(string), "{828282}Nє23 {FF8C00}Bombeiros: {828282}%s", InfoOrg[23][Lider]);
                 strins(str, string);
                 /*format(string, sizeof(string), "{828282}Nє25 {FF8C00}The Killers: {828282}%s", InfoOrg[25][Lider]);
                strins(str, string);
                 format(string, sizeof(string), "{828282}Nє26 {FF8C00}Policia Militar LV: {828282}%s", InfoOrg[26][Lider]);
                 strins(str, string);
                format(string, sizeof(string), "{828282}Nє27 {FF8C00}Mendigos: {828282}%s", InfoOrg[27][Lider]);
                strins(str, string);
                format(string, sizeof(string), "{828282}Nє28 {FF8C00}Bope : {828282}%s", InfoOrg[28][Lider]);
                 strins(str, string);
                format(string, sizeof(string), "{828282}Nє29 {FF8C00}Embreve: {828282}%s", InfoOrg[29][Lider]);
                strins(str, string);
                format(string, sizeof(string), "{828282}Nє30 {FF8C00}Policia Federal: {828282}%s", InfoOrg[30][Lider]);
                strins(str, string);*/

                ShowPlayerDialog(playerid, 50000, DIALOG_STYLE_MSGBOX, "orgs", str, "OK", "");
            }
        }
        return 1;
    }
Reply
#7

Na boa acho que strcat й mais optmizado ??

pawn Код:
new E_VAR_STR[1500];
                SendClientMessage(playerid, COLOR_WHITE, "|______________ {FF7800}Organizaзхes do BVO{FFFFFF}______________|");
                format(string, sizeof(string), "{828282}Nє1 {FF8C00}Policia Militar: {828282}%s\n", InfoOrg[1][Lider]);
                strcat( E_VAR_STR, string );
                format(string, sizeof(string), "{828282}Nє2 {FF8C00}Bope: {828282}%s\n", InfoOrg[2][Lider]);
                strcat( E_VAR_STR, string );
                format(string, sizeof(string), "{828282}Nє3 {FF8C00}Exйrcito: {828282}%s\n", InfoOrg[3][Lider]);
                strcat( E_VAR_STR, string );
                format(string, sizeof(string), "{828282}Nє4 {FF8C00}Mйdicos: {828282}%s\n", InfoOrg[4][Lider]);
                strcat( E_VAR_STR, string );
                format(string, sizeof(string), "{828282}Nє5 {FF8C00}Los Aztecas: {828282}%s\n", InfoOrg[5][Lider]);
                strcat( E_VAR_STR, string );
                format(string, sizeof(string), "{828282}Nє6 {FF8C00}Taliban: {828282}%s\n", InfoOrg[6][Lider]);
                strcat( E_VAR_STR, string );
                format(string, sizeof(string), "{828282}Nє7 {FF8C00}Prefeito: {828282}%s\n", InfoOrg[7][Lider]);
                strcat( E_VAR_STR, string );
                format(string, sizeof(string), "{828282}Nє8 {FF8C00}Hitmans: {828282}%s\n", InfoOrg[8][Lider]);
                strcat( E_VAR_STR, string );
                format(string, sizeof(string), "{828282}Nє9 {FF8C00}Reporteres: {828282}%s\n", InfoOrg[9][Lider]);
                strcat( E_VAR_STR, string );
                format(string, sizeof(string), "{828282}Nє10 {FF8C00}Taxistas: {828282}%s\n", InfoOrg[10][Lider]);
                strcat( E_VAR_STR, string );
                format(string, sizeof(string), "{828282}Nє11 {FF8C00}Policia Federal: {828282}%s\n", InfoOrg[11][Lider]);
                strcat( E_VAR_STR, string );
                format(string, sizeof(string), "{828282}Nє12 {FF8C00}Mбfia Cosa Nostra: {828282}%s\n", InfoOrg[12][Lider]);
                strcat( E_VAR_STR, string );
                format(string, sizeof(string), "{828282}Nє13 {FF8C00}Mбfia Yakuza: {828282}%s\n", InfoOrg[13][Lider]);
                strcat( E_VAR_STR, string );
                format(string, sizeof(string), "{828282}Nє14 {FF8C00}Groove Street: {828282}%s\n", InfoOrg[14][Lider]);
                strcat( E_VAR_STR, string );
                format(string, sizeof(string), "{828282}Nє15 {FF8C00}Al'qaeda: {828282}%s\n", InfoOrg[15][Lider]);
                strcat( E_VAR_STR, string );
                format(string, sizeof(string), "{828282}Nє16 {FF8C00}Policia Civil: {828282}%s\n", InfoOrg[16][Lider]);
                strcat( E_VAR_STR, string );
                format(string, sizeof(string), "{828282}Nє17 {FF8C00}Ballas: {828282}%s\n", InfoOrg[17][Lider]);
                strcat( E_VAR_STR, string );
                format(string, sizeof(string), "{828282}Nє18 {FF8C00}Vagos: {828282}%s\n", InfoOrg[18][Lider]);
                strcat( E_VAR_STR, string );
                format(string, sizeof(string), "{828282}Nє19 {FF8C00}Comando Vermelho: {828282}%s\n", InfoOrg[19][Lider]);
                strcat( E_VAR_STR, string );
                format(string, sizeof(string), "{828282}Nє20 {FF8C00}Los tugas: {828282}%s\n", InfoOrg[20][Lider]);
                strcat( E_VAR_STR, string );
                format(string, sizeof(string), "{828282}Nє21 {FF8C00}Irmandade: {828282}%s\n", InfoOrg[21][Lider]);
                strcat( E_VAR_STR, string );
                format(string, sizeof(string), "{828282}Nє22 {FF8C00}Los Fortes: {828282}%s\n", InfoOrg[22][Lider]);
                strcat( E_VAR_STR, string );
                format(string, sizeof(string), "{828282}Nє23 {FF8C00}Bombeiros: {828282}%s\n", InfoOrg[23][Lider]);
                strcat( E_VAR_STR, string );
                 /*format(string, sizeof(string), "{828282}Nє25 {FF8C00}The Killers: {828282}%s\n", InfoOrg[25][Lider]);
                strcat( E_VAR_STR, string );
                 format(string, sizeof(string), "{828282}Nє26 {FF8C00}Policia Militar LV: {828282}%s\n", InfoOrg[26][Lider]);
                 strcat( E_VAR_STR, string );
                format(string, sizeof(string), "{828282}Nє27 {FF8C00}Mendigos: {828282}%s\n", InfoOrg[27][Lider]);
                strcat( E_VAR_STR, string );
                format(string, sizeof(string), "{828282}Nє28 {FF8C00}Bope : {828282}%s\n", InfoOrg[28][Lider]);
                 strcat( E_VAR_STR, string );
                format(string, sizeof(string), "{828282}Nє29 {FF8C00}Embreve: {828282}%s\n", InfoOrg[29][Lider]);
                strcat( E_VAR_STR, string );
                format(string, sizeof(string), "{828282}Nє30 {FF8C00}Policia Federal: {828282}%s\n", InfoOrg[30][Lider]);
                strcat( E_VAR_STR, string );*/

                ShowPlayerDialog( playerid, 0, DIALOG_STYLE_MSGBOX,"Titulo", E_VAR_STR, "*Sair*", "");
Reply
#8

tуpico respondido? close
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)