[Ajuda] comando limparlider
#1

Tipo assim, o comando /orgs ta mo]trando todas org do sv, mas depois da 25, ela comeзa a ficar uma linha em branco nao sei porque, e a ultima ela buga o ninguem e fica "nin"
o que serб?
ai esta o cod
pawn Код:
if (strcmp("/infolider", cmdtext, true, 10) == 0 || strcmp(cmd, "/orgs", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            new DialogVinny[1500];
            format(string,sizeof(string), "{FF9000} 1 - {FFFFFF}Policia Militar:{FF9000} %s\n", InfoOrg[1][Lider]);
            strcat(DialogVinny,string);
            format(string,sizeof(string), " 2 - {FFFFFF}ROTAM:{FF9000} %s\n", InfoOrg[2][Lider]);
            strcat(DialogVinny,string);
            format(string,sizeof(string), " 3 - {FFFFFF}Guarda Nacional:{FF9000} %s\n", InfoOrg[3][Lider]);
            strcat(DialogVinny,string);
            format(string,sizeof(string), " 4 - {FFFFFF}Mйdicos:{FF9000} %s\n", InfoOrg[4][Lider]);
            strcat(DialogVinny,string);
            format(string,sizeof(string), " 5 - {FFFFFF}Aztecas:{FF9000} %s\n", InfoOrg[5][Lider]);
            strcat(DialogVinny,string);
            format(string,sizeof(string), " 6 - {FFFFFF}Guerrilheiros Israelitas:{FF9000} %s\n", InfoOrg[6][Lider]);
            strcat(DialogVinny,string);
            format(string,sizeof(string), " 7 - {FFFFFF}Prefeitura: {FF9000}%s\n", InfoOrg[7][Lider]);
            strcat(DialogVinny,string);
            format(string,sizeof(string), " 8 - {FFFFFF}Hitmans:{FF9000} %s\n", InfoOrg[8][Lider]);
            strcat(DialogVinny,string);
            format(string,sizeof(string), " 9 - {FFFFFF}Los Santos News:{FF9000} %s\n", InfoOrg[9][Lider]);
            strcat(DialogVinny,string);
            format(string,sizeof(string), " 10 - {FFFFFF}Taxistas:{FF9000} %s\n", InfoOrg[10][Lider]);
            strcat(DialogVinny,string);
            format(string,sizeof(string), " 11 - {FFFFFF}Policia Federal:{FF9000} %s\n", InfoOrg[11][Lider]);
            strcat(DialogVinny,string);
            format(string,sizeof(string), " 12 - {FFFFFF}Cosa Nostra:{FF9000} %s\n", InfoOrg[12][Lider]);
            strcat(DialogVinny,string);
            format(string,sizeof(string), " 13 - {FFFFFF}Yakuza:{FF9000} %s\n", InfoOrg[13][Lider]);
            strcat(DialogVinny,string);
            format(string,sizeof(string), " 14 - {FFFFFF}Groove:{FF9000} %s\n", InfoOrg[14][Lider]);
            strcat(DialogVinny,string);
            format(string,sizeof(string), " 15 - {FFFFFF}F.A.R.C:{FF9000} %s\n", InfoOrg[15][Lider]);
            strcat(DialogVinny,string);
            format(string,sizeof(string), " 16 - {FFFFFF}Polнcia Civil: {FF9000}%s\n", InfoOrg[16][Lider]);
            strcat(DialogVinny,string);
            format(string,sizeof(string), " 17 - {FFFFFF}Ballas: {FF9000}%s\n", InfoOrg[17][Lider]);
            strcat(DialogVinny,string);
            format(string,sizeof(string), " 18 - {FFFFFF}Vagos:{FF9000} %s\n", InfoOrg[18][Lider]);
            strcat(DialogVinny,string);
            format(string,sizeof(string), " 19 - {FFFFFF}Comando Vermelho:{FF9000} %s\n", InfoOrg[19][Lider]);
            strcat(DialogVinny,string);
            format(string,sizeof(string), " 20 - {FFFFFF}Hells Angels: {FF9000}%s\n", InfoOrg[20][Lider]);
            strcat(DialogVinny,string);
            format(string,sizeof(string), " 21 - {FFFFFF}Mecanicos:{FF9000} %s\n", InfoOrg[21][Lider]);
            strcat(DialogVinny,string);
            format(string,sizeof(string), " 22 - {FFFFFF}Triads SF:{FF9000} %s\n", InfoOrg[22][Lider]);
            strcat(DialogVinny,string);
            format(string,sizeof(string), " 23 - {FFFFFF}PCC:{FF9000} %s\n", InfoOrg[23][Lider]);
            strcat(DialogVinny,string);
            format(string,sizeof(string), " 24 - {FFFFFF}Groove SF:{FF9000} %s\n", InfoOrg[24][Lider]);
            strcat(DialogVinny,string);
            format(string,sizeof(string), " 25 - {FFFFFF}Vagos SF:{FF9000} %s\n\n", InfoOrg[25][Lider]);
            strcat(DialogVinny,string);
            format(string,sizeof(string), " 26 - {FFFFFF}PCC SF:{FF9000} %s\n\n", InfoOrg[26][Lider]);
            strcat(DialogVinny,string);
            format(string,sizeof(string), " 27 - {FFFFFF}Mйdicos SF:{FF9000} %s\n\n", InfoOrg[27][Lider]);
            strcat(DialogVinny,string);
            format(string,sizeof(string), " 28 - {FFFFFF}Comando Vermelho SF:{FF9000} %s\n\n", InfoOrg[28][Lider]);
            strcat(DialogVinny,string);
            format(string,sizeof(string), " 29 - {FFFFFF}Ballas SF:{FF9000} %s\n\n", InfoOrg[29][Lider]);
            strcat(DialogVinny,string);
            format(string,sizeof(string), " 30 - {FFFFFF}Servidor Publico:{FF9000} %s\n\n", InfoOrg[30][Lider]);
            strcat(DialogVinny,string);
            format(string,sizeof(string), " 31 - {FFFFFF}Aztecas SF:{FF9000} %s\n\n", InfoOrg[31][Lider]);
            strcat(DialogVinny,string);
            format(string,sizeof(string), " 32 - {FFFFFF}San Fierro News:{FF9000} %s\n\n", InfoOrg[32][Lider]);
            strcat(DialogVinny,string);
            format(string,sizeof(string), " 33 - {FFFFFF}Taxistas SF:{FF9000} %s\n\n", InfoOrg[33][Lider]);
            strcat(DialogVinny,string);
            format(string,sizeof(string), " 34 - {FFFFFF}Policia Militar SF:{FF9000} %s\n\n", InfoOrg[34][Lider]);
            strcat(DialogVinny,string);
            format(string,sizeof(string), " 35 - {FFFFFF}ROTAM SF:{FF9000} %s\n\n", InfoOrg[35][Lider]);
            strcat(DialogVinny,string);
            ShowPlayerDialog(playerid, 8723, DIALOG_STYLE_MSGBOX, "{00ECEC}Lнderes das Organizaзхes", DialogVinny, "Fechar", "");
        }
        return true;
    }
Valeu pessoal
Reply
#2

Tenta:

PHP код:
if (strcmp("/infolider"cmdtexttrue10) == || strcmp(cmd"/orgs"true) == 0)
    {
        if(
IsPlayerConnected(playerid))
        {
            new 
DialogVinny[2000];
            
format(string,sizeof(string), "{FF9000} 1 - {FFFFFF}Policia Militar:{FF9000} %s\n"InfoOrg[1][Lider]);
            
strcat(DialogVinny,string);
            
format(string,sizeof(string), " 2 - {FFFFFF}ROTAM:{FF9000} %s\n"InfoOrg[2][Lider]);
            
strcat(DialogVinny,string);
            
format(string,sizeof(string), " 3 - {FFFFFF}Guarda Nacional:{FF9000} %s\n"InfoOrg[3][Lider]);
            
strcat(DialogVinny,string);
            
format(string,sizeof(string), " 4 - {FFFFFF}Mйdicos:{FF9000} %s\n"InfoOrg[4][Lider]);
            
strcat(DialogVinny,string);
            
format(string,sizeof(string), " 5 - {FFFFFF}Aztecas:{FF9000} %s\n"InfoOrg[5][Lider]);
            
strcat(DialogVinny,string);
            
format(string,sizeof(string), " 6 - {FFFFFF}Guerrilheiros Israelitas:{FF9000} %s\n"InfoOrg[6][Lider]);
            
strcat(DialogVinny,string);
            
format(string,sizeof(string), " 7 - {FFFFFF}Prefeitura: {FF9000}%s\n"InfoOrg[7][Lider]);
            
strcat(DialogVinny,string);
            
format(string,sizeof(string), " 8 - {FFFFFF}Hitmans:{FF9000} %s\n"InfoOrg[8][Lider]);
            
strcat(DialogVinny,string);
            
format(string,sizeof(string), " 9 - {FFFFFF}Los Santos News:{FF9000} %s\n"InfoOrg[9][Lider]);
            
strcat(DialogVinny,string);
            
format(string,sizeof(string), " 10 - {FFFFFF}Taxistas:{FF9000} %s\n"InfoOrg[10][Lider]);
            
strcat(DialogVinny,string);
            
format(string,sizeof(string), " 11 - {FFFFFF}Policia Federal:{FF9000} %s\n"InfoOrg[11][Lider]);
            
strcat(DialogVinny,string);
            
format(string,sizeof(string), " 12 - {FFFFFF}Cosa Nostra:{FF9000} %s\n"InfoOrg[12][Lider]);
            
strcat(DialogVinny,string);
            
format(string,sizeof(string), " 13 - {FFFFFF}Yakuza:{FF9000} %s\n"InfoOrg[13][Lider]);
            
strcat(DialogVinny,string);
            
format(string,sizeof(string), " 14 - {FFFFFF}Groove:{FF9000} %s\n"InfoOrg[14][Lider]);
            
strcat(DialogVinny,string);
            
format(string,sizeof(string), " 15 - {FFFFFF}F.A.R.C:{FF9000} %s\n"InfoOrg[15][Lider]);
            
strcat(DialogVinny,string);
            
format(string,sizeof(string), " 16 - {FFFFFF}Polнcia Civil: {FF9000}%s\n"InfoOrg[16][Lider]);
            
strcat(DialogVinny,string);
            
format(string,sizeof(string), " 17 - {FFFFFF}Ballas: {FF9000}%s\n"InfoOrg[17][Lider]);
            
strcat(DialogVinny,string);
            
format(string,sizeof(string), " 18 - {FFFFFF}Vagos:{FF9000} %s\n"InfoOrg[18][Lider]);
            
strcat(DialogVinny,string);
            
format(string,sizeof(string), " 19 - {FFFFFF}Comando Vermelho:{FF9000} %s\n"InfoOrg[19][Lider]);
            
strcat(DialogVinny,string);
            
format(string,sizeof(string), " 20 - {FFFFFF}Hells Angels: {FF9000}%s\n"InfoOrg[20][Lider]);
            
strcat(DialogVinny,string);
            
format(string,sizeof(string), " 21 - {FFFFFF}Mecanicos:{FF9000} %s\n"InfoOrg[21][Lider]);
            
strcat(DialogVinny,string);
            
format(string,sizeof(string), " 22 - {FFFFFF}Triads SF:{FF9000} %s\n"InfoOrg[22][Lider]);
            
strcat(DialogVinny,string);
            
format(string,sizeof(string), " 23 - {FFFFFF}PCC:{FF9000} %s\n"InfoOrg[23][Lider]);
            
strcat(DialogVinny,string);
            
format(string,sizeof(string), " 24 - {FFFFFF}Groove SF:{FF9000} %s\n"InfoOrg[24][Lider]);
            
strcat(DialogVinny,string);
            
format(string,sizeof(string), " 25 - {FFFFFF}Vagos SF:{FF9000} %s\n\n"InfoOrg[25][Lider]);
            
strcat(DialogVinny,string);
            
format(string,sizeof(string), " 26 - {FFFFFF}PCC SF:{FF9000} %s\n\n"InfoOrg[26][Lider]);
            
strcat(DialogVinny,string);
            
format(string,sizeof(string), " 27 - {FFFFFF}Mйdicos SF:{FF9000} %s\n\n"InfoOrg[27][Lider]);
            
strcat(DialogVinny,string);
            
format(string,sizeof(string), " 28 - {FFFFFF}Comando Vermelho SF:{FF9000} %s\n\n"InfoOrg[28][Lider]);
            
strcat(DialogVinny,string);
            
format(string,sizeof(string), " 29 - {FFFFFF}Ballas SF:{FF9000} %s\n\n"InfoOrg[29][Lider]);
            
strcat(DialogVinny,string);
            
format(string,sizeof(string), " 30 - {FFFFFF}Servidor Publico:{FF9000} %s\n\n"InfoOrg[30][Lider]);
            
strcat(DialogVinny,string);
            
format(string,sizeof(string), " 31 - {FFFFFF}Aztecas SF:{FF9000} %s\n\n"InfoOrg[31][Lider]);
            
strcat(DialogVinny,string);
            
format(string,sizeof(string), " 32 - {FFFFFF}San Fierro News:{FF9000} %s\n\n"InfoOrg[32][Lider]);
            
strcat(DialogVinny,string);
            
format(string,sizeof(string), " 33 - {FFFFFF}Taxistas SF:{FF9000} %s\n\n"InfoOrg[33][Lider]);
            
strcat(DialogVinny,string);
            
format(string,sizeof(string), " 34 - {FFFFFF}Policia Militar SF:{FF9000} %s\n\n"InfoOrg[34][Lider]);
            
strcat(DialogVinny,string);
            
format(string,sizeof(string), " 35 - {FFFFFF}ROTAM SF:{FF9000} %s\n\n"InfoOrg[35][Lider]);
            
strcat(DialogVinny,string);
            
ShowPlayerDialog(playerid8723DIALOG_STYLE_MSGBOX"{00ECEC}Lнderes das Organizaзхes"DialogVinny"Fechar""");
        }
        return 
true;
    } 
Reply
#3

nao deu amigo, apartir da 26 fica uma linha em branco entre todas
tipo
26

27

28
entendeu?
Reply
#4

Procure por new string e aumente as cйlulas
Reply
#5

mas qt eu boto ?
Reply
#6

Quote:
Originally Posted by Maltz
Посмотреть сообщение
mas qt eu boto ?
Em
pawn Код:
new DialogVinny[2000];
Coloca:
pawn Код:
new DialogVinny[3000];
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)