[Ajuda] Mais uma Pergunta noob
#1

Gente to meio enferrujado no pawn ta fods aqui...

Quero esse dialog, porйm ele estб sendo cortado, e se eu aumentar o numero de celulas ali no dialoglider, o dialog nao aparece...

pawn Код:
forward Verlideres(playerid);
public Verlideres(playerid)
{
        new dialoglider[512], L[24][53],dialoglider2[256],dialoglider3[256],dialoglider4[256],dialoglider5[256];
        strcat(L[1], dini_Get("infolider.ini","org1"));
        strcat(L[2], dini_Get("infolider.ini","org2"));
        strcat(L[3], dini_Get("infolider.ini","org3"));
        strcat(L[4], dini_Get("infolider.ini","org4"));
        strcat(L[5], dini_Get("infolider.ini","org5"));
        strcat(L[6], dini_Get("infolider.ini","org6"));
        strcat(L[7], dini_Get("infolider.ini","org7"));
        strcat(L[8], dini_Get("infolider.ini","org8"));
        strcat(L[9], dini_Get("infolider.ini","org9"));
        strcat(L[10], dini_Get("infolider.ini","org10"));
        strcat(L[11], dini_Get("infolider.ini","org11"));
        strcat(L[12], dini_Get("infolider.ini","org12"));
        strcat(L[13], dini_Get("infolider.ini","org13"));
        strcat(L[14], dini_Get("infolider.ini","org14"));
        strcat(L[15], dini_Get("infolider.ini","org15"));
        strcat(L[16], dini_Get("infolider.ini","org16"));
        strcat(L[17], dini_Get("infolider.ini","org17"));
        strcat(L[18], dini_Get("infolider.ini","org18"));
        strcat(L[19], dini_Get("infolider.ini","org19"));
        strcat(L[20], dini_Get("infolider.ini","org20"));
        strcat(L[21], dini_Get("infolider.ini","org21"));
        strcat(L[22], dini_Get("infolider.ini","org22"));
        strcat(L[23], dini_Get("infolider.ini","org23"));

        format(dialoglider2, 256, "{2B00FF}Polнcia Militar: {858585}%s\n{4200E8}Polнcia Federal: {858585}%s\n{64910A}Forзas Armadas: {858585}%s\n{45688F}Medico: {858585}%s\n{C922C9}Ballas: {858585}%s\n", L[1], L[2], L[3], L[4], L[5]);
        strcat(dialoglider, dialoglider2);
        format(dialoglider3, 256, "{B0F030}Grove Street: {858585}%s\n{E1EDBB}Presidente: {858585}%s\n{0990AB}Hitman: {858585}%s\n{BAB688}Reporter: {858585}%s\n{6D6F73}Lowrider: %s\n{969AA3}Riffas: {858585}%s\n", L[6], L[7], L[8], L[9], L[10], L[11]);
        strcat(dialoglider, dialoglider3);
        format(dialoglider4, 256, "{DBA80D}Los Santos Vagos: {858585}%s\n{61048C}Asphalt King's: {858585}%s\n{9989E8}Polнcia Rodoviaria: {858585}%s\n{13E3F2}Varrio Los Aztecas: {858585}%s\n{2DA5B3}Triads: {858585}%s\n", L[12], L[13], L[14], L[15], L[16]);
        strcat(dialoglider, dialoglider4);
        format(dialoglider5, 256, "{04C1D6}Mafia Yakuza: {858585}%s\n{FAE978}Drifters: {858585}%s\n{ED1C1C}Comando Vermelho: {858585}%s\n{191DE6}Pcc: {858585}%s\n{1E00B5}BOPE: {858585}%s\n{B34712}Al-Qaeda: {858585}%s\n{F7F5F5}Policia Civil: {858585}%s", L[17], L[18], L[19], L[20], L[21], L[22], L[23]);
        strcat(dialoglider, dialoglider5);
        ShowPlayerDialog(playerid, 3569, DIALOG_STYLE_MSGBOX,"InfoLiders - BSF", dialoglider,"Ok","");
        return 1;
}
Reply
#2

pawn Код:
forward Verlideres(playerid);
public Verlideres(playerid)
{
            new dialoglider[512], L[23][MAX_PLAYER_NAME];
            format(L[0],MAX_PLAYER_NAME,dini_Get("infolider.ini","org1"));
            format(L[1],MAX_PLAYER_NAME,dini_Get("infolider.ini","org2"));
            format(L[2],MAX_PLAYER_NAME,dini_Get("infolider.ini","org3"));
            format(L[3],MAX_PLAYER_NAME,dini_Get("infolider.ini","org4"));
            format(L[4],MAX_PLAYER_NAME,dini_Get("infolider.ini","org5"));
            format(L[5],MAX_PLAYER_NAME,dini_Get("infolider.ini","org6"));
            format(L[6],MAX_PLAYER_NAME,dini_Get("infolider.ini","org7"));
            format(L[7],MAX_PLAYER_NAME,dini_Get("infolider.ini","org8"));
            format(L[8],MAX_PLAYER_NAME,dini_Get("infolider.ini","org9"));
            format(L[9],MAX_PLAYER_NAME,dini_Get("infolider.ini","org10"));
            format(L[10],MAX_PLAYER_NAME,dini_Get("infolider.ini","org11"));
            format(L[11],MAX_PLAYER_NAME,dini_Get("infolider.ini","org12"));
            format(L[12],MAX_PLAYER_NAME,dini_Get("infolider.ini","org13"));
            format(L[13],MAX_PLAYER_NAME,dini_Get("infolider.ini","org14"));
            format(L[14],MAX_PLAYER_NAME,dini_Get("infolider.ini","org15"));
            format(L[15],MAX_PLAYER_NAME,dini_Get("infolider.ini","org16"));
            format(L[16],MAX_PLAYER_NAME,dini_Get("infolider.ini","org17"));
            format(L[17],MAX_PLAYER_NAME,dini_Get("infolider.ini","org18"));
            format(L[18],MAX_PLAYER_NAME,dini_Get("infolider.ini","org19"));
            format(L[19],MAX_PLAYER_NAME,dini_Get("infolider.ini","org20"));
            format(L[20],MAX_PLAYER_NAME,dini_Get("infolider.ini","org21"));
            format(L[21],MAX_PLAYER_NAME,dini_Get("infolider.ini","org22"));
            format(L[22],MAX_PLAYER_NAME,dini_Get("infolider.ini","org23"));

            format(dialoglider, 256, "{2B00FF}Polнcia Militar: {858585}%s\n{4200E8}Polнcia Federal: {858585}%s\n{64910A}Forзas Armadas: {858585}%s\n{45688F}Medico: {858585}%s\n{C922C9}Ballas: {858585}%s\n", L[0], L[1], L[2], L[3], L[4]);
        format(dialoglider, sizeof(dialoglider), "%s{B0F030}Grove Street: {858585}%s\n{E1EDBB}Presidente: {858585}%s\n{0990AB}Hitman: {858585}%s\n{BAB688}Reporter: {858585}%s\n{6D6F73}Lowrider: %s\n{969AA3}Riffas: {858585}%s\n",dialoglider, L[5], L[6], L[7], L[8], L[9], L[10]);

        format(dialoglider, sizeof(dialoglider), "%s{DBA80D}Los Santos Vagos: {858585}%s\n{61048C}Asphalt King's: {858585}%s\n{9989E8}Polнcia Rodoviaria: {858585}%s\n{13E3F2}Varrio Los Aztecas: {858585}%s\n{2DA5B3}Triads: {858585}%s\n",dialoglider, L[11], L[12], L[13], L[14], L[15]);
       
            format(dialoglider, sizeof(dialoglider), "%s{04C1D6}Mafia Yakuza: {858585}%s\n{FAE978}Drifters: {858585}%s\n{ED1C1C}Comando Vermelho: {858585}%s\n{191DE6}Pcc: {858585}%s\n{1E00B5}BOPE: {858585}%s\n{B34712}Al-Qaeda: {858585}%s\n{F7F5F5}Policia Civil: {858585}%s",dialoglider, L[16], L[17], L[18], L[19], L[20], L[21], L[22]);
        ShowPlayerDialog(playerid, 3569, DIALOG_STYLE_MSGBOX,"InfoLiders - BSF", dialoglider,"Ok","");
        return 1;
}
a funзгo strcat nem precisaria existir na minha opiniгo.

nota: fiz o cуdigo no fуrum
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)