SA-MP Forums Archive
[Ajuda] /orgs bugado - 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] /orgs bugado (/showthread.php?tid=398915)



/orgs bugado - FPB_Lipos - 11.12.2012

Pessoal alguem ae ajuda:
Criei 2 novas orgs para o meu servidor, fiz tudo certo, soq, qndo fui coloca-la no /orgs
ela fica afastada das orgs padroes:

IMG:


/orgs
Код:
	if(strcmp(cmd, "/orgs", true) == 0 || strcmp(cmd, "/profs", true) == 0)
	{
	    new DialogThiago[1625];
	    if(IsPlayerConnected(playerid))
	    {
                //SendClientMessage(playerid, VERDE2, "|__________________________ Orgs __________________________|");
				format(string, 128, " {7AADFF}1 - Policia Militar: {FFFFFF}%s\n", InfoOrg[1][Lider]);
				strcat(DialogThiago,string);
				format(string, 128, " {ADC7D9}2 - B.O.P.E: {FFFFFF}%s\n", InfoOrg[2][Lider]);
				strcat(DialogThiago,string);
				format(string, 128, " {6CD950}3 - Exercito: {FFFFFF}%s\n", InfoOrg[3][Lider]);
				strcat(DialogThiago,string);
				format(string, 128, " {F7819A}4 - S.A.M.U: {FFFFFF}%s\n", InfoOrg[4][Lider]);
				strcat(DialogThiago,string);
				format(string, 128, " {337EFF}5 - Los Astecas: {FFFFFF}%s\n", InfoOrg[5][Lider]);
				strcat(DialogThiago,string);
				format(string, 128, " {48A3E0}6 - Hamas: {FFFFFF}%s\n", InfoOrg[6][Lider]);
				strcat(DialogThiago,string);
				format(string, 128, " {6AB4E6}7 - Prefeito: {FFFFFF}%s\n", InfoOrg[7][Lider]);
				strcat(DialogThiago,string);
				format(string, 128, " {C2CBD1}8 - Hitmans: {FFFFFF}%s\n", InfoOrg[8][Lider]);
				strcat(DialogThiago,string);
				format(string, 128, " {EDD893}9 - Rede Globo: {FFFFFF}%s\n", InfoOrg[9][Lider]);
    			strcat(DialogThiago,string);
				format(string, 128, " {93EDDE}10 - Taxista: {FFFFFF}%s\n", InfoOrg[10][Lider]);
				strcat(DialogThiago,string);
				format(string, 128, " {BFA873}11 - Policia Federal: {FFFFFF}%s\n", InfoOrg[11][Lider]);
				strcat(DialogThiago,string);
				format(string, 128, " {BF9B47}12 - Mбfia Cosa Nostra: {FFFFFF}%s\n", InfoOrg[12][Lider]);
				strcat(DialogThiago,string);
				format(string, 128, " {8136B3}13 - Mбfia Yakuza: {FFFFFF}%s\n", InfoOrg[13][Lider]);
				strcat(DialogThiago,string);
				format(string, 128, " {00DB1D}14 - Groove Street: {FFFFFF}%s\n", InfoOrg[14][Lider]);
				strcat(DialogThiago,string);
				format(string, 128, " {EDE187}15 - Al'qaeda: {FFFFFF}%s\n", InfoOrg[15][Lider]);
				strcat(DialogThiago,string);
				format(string, 128, " {BDA34D}16 - Policia Civil: {FFFFFF}%s\n", InfoOrg[16][Lider]);
				strcat(DialogThiago,string);
				format(string, 128, " {CB42E3}17 - Ballas: {FFFFFF}%s\n", InfoOrg[17][Lider]);
				strcat(DialogThiago,string);
				format(string, 128, " {E1ED00}18 - Los Vagos: {FFFFFF}%s\n", InfoOrg[18][Lider]);
				strcat(DialogThiago,string);
				format(string, 128, " {FF0000}19 - Comando Vermelho: {FFFFFF}%s\n", InfoOrg[19][Lider]);
    			strcat(DialogThiago,string);
				format(string, 128, " {C90000}20 - Sons of Anarchy: {FFFFFF}%s\n", InfoOrg[20][Lider]);
				strcat(DialogThiago,string);
				format(string, 128, " {2E8B57}21 - Drifters: {FFFFFF}%s\n", InfoOrg[21][Lider]);
				strcat(DialogThiago,string);
				format(string, 128, " {A87A31}22 - Triads: {FFFFFF}%s\n", InfoOrg[22][Lider]);
				strcat(DialogThiago,string);
                format(string, 128, " {FF0066}23 - F.A.R.C: {FFFFFF}%s\n\n", InfoOrg[23][Lider]);
                strcat(DialogThiago,string);
                format(string, 128, " {8B1A1A}24 - Bombeiros: {FFFFFF}%s\n\n", InfoOrg[24][Lider]); // NOVA ORG
                strcat(DialogThiago,string);
                format(string, 128, " {2E8B57}24 - Forзa Aerea Brasileira: {FFFFFF}%s\n\n", InfoOrg[25][Lider]); // NOVA ORG
                strcat(DialogThiago,string);
				ShowPlayerDialog(playerid, 8723, DIALOG_STYLE_MSGBOX, "Lista de Lнderes das Organizaзхes", DialogThiago, "Ok", "Ok");
			}
		return true;
	}



Re: /orgs bugado - Diogo123 - 11.12.2012

Vocк ta pulando duas linhas no dialogo
pawn Код:
23 - F.A.R.C: {FFFFFF}%s\n\n  
//Troca Por
23 - F.A.R.C: {FFFFFF}%s\n


//Bombeiros
24 - Bombeiros: {FFFFFF}%s\n\n
//troca por
24 - Bombeiros: {FFFFFF}%s\n

//Forзa Aeria Brasileira
25 - Forзa Aerea Brasileira: {FFFFFF}%s\n\n
//troca
25 - Forзa Aerea Brasileira: {FFFFFF}%s\n

//._.



Re: /orgs bugado - smiiir - 11.12.2012

pawn Код:
if(strcmp(cmd, "/orgs", true) == 0 || strcmp(cmd, "/profs", true) == 0)
    {
        new DialogThiago[1625];
        if(IsPlayerConnected(playerid))
        {
                //SendClientMessage(playerid, VERDE2, "|__________________________ Orgs __________________________|");
                format(string, 128, " {7AADFF}1 - Policia Militar: {FFFFFF}%s\n", InfoOrg[1][Lider]);
                strcat(DialogThiago,string);
                format(string, 128, " {ADC7D9}2 - B.O.P.E: {FFFFFF}%s\n", InfoOrg[2][Lider]);
                strcat(DialogThiago,string);
                format(string, 128, " {6CD950}3 - Exercito: {FFFFFF}%s\n", InfoOrg[3][Lider]);
                strcat(DialogThiago,string);
                format(string, 128, " {F7819A}4 - S.A.M.U: {FFFFFF}%s\n", InfoOrg[4][Lider]);
                strcat(DialogThiago,string);
                format(string, 128, " {337EFF}5 - Los Astecas: {FFFFFF}%s\n", InfoOrg[5][Lider]);
                strcat(DialogThiago,string);
                format(string, 128, " {48A3E0}6 - Hamas: {FFFFFF}%s\n", InfoOrg[6][Lider]);
                strcat(DialogThiago,string);
                format(string, 128, " {6AB4E6}7 - Prefeito: {FFFFFF}%s\n", InfoOrg[7][Lider]);
                strcat(DialogThiago,string);
                format(string, 128, " {C2CBD1}8 - Hitmans: {FFFFFF}%s\n", InfoOrg[8][Lider]);
                strcat(DialogThiago,string);
                format(string, 128, " {EDD893}9 - Rede Globo: {FFFFFF}%s\n", InfoOrg[9][Lider]);
                strcat(DialogThiago,string);
                format(string, 128, " {93EDDE}10 - Taxista: {FFFFFF}%s\n", InfoOrg[10][Lider]);
                strcat(DialogThiago,string);
                format(string, 128, " {BFA873}11 - Policia Federal: {FFFFFF}%s\n", InfoOrg[11][Lider]);
                strcat(DialogThiago,string);
                format(string, 128, " {BF9B47}12 - Mбfia Cosa Nostra: {FFFFFF}%s\n", InfoOrg[12][Lider]);
                strcat(DialogThiago,string);
                format(string, 128, " {8136B3}13 - Mбfia Yakuza: {FFFFFF}%s\n", InfoOrg[13][Lider]);
                strcat(DialogThiago,string);
                format(string, 128, " {00DB1D}14 - Groove Street: {FFFFFF}%s\n", InfoOrg[14][Lider]);
                strcat(DialogThiago,string);
                format(string, 128, " {EDE187}15 - Al'qaeda: {FFFFFF}%s\n", InfoOrg[15][Lider]);
                strcat(DialogThiago,string);
                format(string, 128, " {BDA34D}16 - Policia Civil: {FFFFFF}%s\n", InfoOrg[16][Lider]);
                strcat(DialogThiago,string);
                format(string, 128, " {CB42E3}17 - Ballas: {FFFFFF}%s\n", InfoOrg[17][Lider]);
                strcat(DialogThiago,string);
                format(string, 128, " {E1ED00}18 - Los Vagos: {FFFFFF}%s\n", InfoOrg[18][Lider]);
                strcat(DialogThiago,string);
                format(string, 128, " {FF0000}19 - Comando Vermelho: {FFFFFF}%s\n", InfoOrg[19][Lider]);
                strcat(DialogThiago,string);
                format(string, 128, " {C90000}20 - Sons of Anarchy: {FFFFFF}%s\n", InfoOrg[20][Lider]);
                strcat(DialogThiago,string);
                format(string, 128, " {2E8B57}21 - Drifters: {FFFFFF}%s\n", InfoOrg[21][Lider]);
                strcat(DialogThiago,string);
                format(string, 128, " {A87A31}22 - Triads: {FFFFFF}%s\n", InfoOrg[22][Lider]);
                strcat(DialogThiago,string);
                format(string, 128, " {FF0066}23 - F.A.R.C: {FFFFFF}%s\n", InfoOrg[23][Lider]);
                strcat(DialogThiago,string);
                format(string, 128, " {8B1A1A}24 - Bombeiros: {FFFFFF}%s\n", InfoOrg[24][Lider]); // NOVA ORG
                strcat(DialogThiago,string);
                format(string, 128, " {2E8B57}24 - Forзa Aerea Brasileira: {FFFFFF}%s\n\n", InfoOrg[25][Lider]); // NOVA ORG
                strcat(DialogThiago,string);
                ShowPlayerDialog(playerid, 8723, DIALOG_STYLE_MSGBOX, "Lista de Lнderes das Organizaзхes", DialogThiago, "Ok", "Ok");
            }
        return true;
    }



Re: /orgs bugado - HardWar - 11.12.2012

Como o Diogo disse, voce colocou dois \n

pawn Код:
if(strcmp(cmd, "/orgs", true) == 0 || strcmp(cmd, "/profs", true) == 0)
    {
        new DialogThiago[1625];
        if(IsPlayerConnected(playerid))
        {
                //SendClientMessage(playerid, VERDE2, "|__________________________ Orgs __________________________|");
                format(string, 128, " {7AADFF}1 - Policia Militar: {FFFFFF}%s\n", InfoOrg[1][Lider]);
                strcat(DialogThiago,string);
                format(string, 128, " {ADC7D9}2 - B.O.P.E: {FFFFFF}%s\n", InfoOrg[2][Lider]);
                strcat(DialogThiago,string);
                format(string, 128, " {6CD950}3 - Exercito: {FFFFFF}%s\n", InfoOrg[3][Lider]);
                strcat(DialogThiago,string);
                format(string, 128, " {F7819A}4 - S.A.M.U: {FFFFFF}%s\n", InfoOrg[4][Lider]);
                strcat(DialogThiago,string);
                format(string, 128, " {337EFF}5 - Los Astecas: {FFFFFF}%s\n", InfoOrg[5][Lider]);
                strcat(DialogThiago,string);
                format(string, 128, " {48A3E0}6 - Hamas: {FFFFFF}%s\n", InfoOrg[6][Lider]);
                strcat(DialogThiago,string);
                format(string, 128, " {6AB4E6}7 - Prefeito: {FFFFFF}%s\n", InfoOrg[7][Lider]);
                strcat(DialogThiago,string);
                format(string, 128, " {C2CBD1}8 - Hitmans: {FFFFFF}%s\n", InfoOrg[8][Lider]);
                strcat(DialogThiago,string);
                format(string, 128, " {EDD893}9 - Rede Globo: {FFFFFF}%s\n", InfoOrg[9][Lider]);
                strcat(DialogThiago,string);
                format(string, 128, " {93EDDE}10 - Taxista: {FFFFFF}%s\n", InfoOrg[10][Lider]);
                strcat(DialogThiago,string);
                format(string, 128, " {BFA873}11 - Policia Federal: {FFFFFF}%s\n", InfoOrg[11][Lider]);
                strcat(DialogThiago,string);
                format(string, 128, " {BF9B47}12 - Mбfia Cosa Nostra: {FFFFFF}%s\n", InfoOrg[12][Lider]);
                strcat(DialogThiago,string);
                format(string, 128, " {8136B3}13 - Mбfia Yakuza: {FFFFFF}%s\n", InfoOrg[13][Lider]);
                strcat(DialogThiago,string);
                format(string, 128, " {00DB1D}14 - Groove Street: {FFFFFF}%s\n", InfoOrg[14][Lider]);
                strcat(DialogThiago,string);
                format(string, 128, " {EDE187}15 - Al'qaeda: {FFFFFF}%s\n", InfoOrg[15][Lider]);
                strcat(DialogThiago,string);
                format(string, 128, " {BDA34D}16 - Policia Civil: {FFFFFF}%s\n", InfoOrg[16][Lider]);
                strcat(DialogThiago,string);
                format(string, 128, " {CB42E3}17 - Ballas: {FFFFFF}%s\n", InfoOrg[17][Lider]);
                strcat(DialogThiago,string);
                format(string, 128, " {E1ED00}18 - Los Vagos: {FFFFFF}%s\n", InfoOrg[18][Lider]);
                strcat(DialogThiago,string);
                format(string, 128, " {FF0000}19 - Comando Vermelho: {FFFFFF}%s\n", InfoOrg[19][Lider]);
                strcat(DialogThiago,string);
                format(string, 128, " {C90000}20 - Sons of Anarchy: {FFFFFF}%s\n", InfoOrg[20][Lider]);
                strcat(DialogThiago,string);
                format(string, 128, " {2E8B57}21 - Drifters: {FFFFFF}%s\n", InfoOrg[21][Lider]);
                strcat(DialogThiago,string);
                format(string, 128, " {A87A31}22 - Triads: {FFFFFF}%s\n", InfoOrg[22][Lider]);
                strcat(DialogThiago,string);
                format(string, 128, " {FF0066}23 - F.A.R.C: {FFFFFF}%s\n", InfoOrg[23][Lider]);
                strcat(DialogThiago,string);
                format(string, 128, " {8B1A1A}24 - Bombeiros: {FFFFFF}%s\n", InfoOrg[24][Lider]); // NOVA ORG
                strcat(DialogThiago,string);
                format(string, 128, " {2E8B57}24 - Forзa Aerea Brasileira: {FFFFFF}%s\n", InfoOrg[25][Lider]); // NOVA ORG
                strcat(DialogThiago,string);
                ShowPlayerDialog(playerid, 8723, DIALOG_STYLE_MSGBOX, "Lista de Lнderes das Organizaзхes", DialogThiago, "Ok", "Ok");
            }
        return true;
    }
Codigo certo acima


Re: /orgs bugado - tonisantolia - 11.12.2012

pawn Код:
format(string, 128, " {FF0066}23 - F.A.R.C: {FFFFFF}%s\n\n", InfoOrg[23][Lider]);
                strcat(DialogThiago,string);
                format(string, 128, " {8B1A1A}24 - Bombeiros: {FFFFFF}%s\n\n", InfoOrg[24][Lider]); // NOVA ORG
                strcat(DialogThiago,string);
                format(string, 128, " {2E8B57}24 - Forзa Aerea Brasileira: {FFFFFF}%s\n\n", InfoOrg[25][Lider]); // NOVA ORG
                strcat(DialogThiago,string);
Codigo feito por um retardado? e.e

\n = Salta uma linha.
\n\n = Salta duas linhas e por ai vai !