[Ajuda] /orgs com texbox
#1

Queria passar essa lista aqui pra daquele jeito que aparece e so tem um botao de Ok, mais nao e aquele que aparece e da pra clicar nao, e so aparece escrito mesmo
Код:
SendClientMessage(playerid, VERDE2, "|__________________________ Orgs __________________________|");
				format(string, 128, " 1 - Policia Militar LS: %s", InfoOrg[1][Lider]);
				SendClientMessage(playerid, COR_PM, string);
				format(string, 128, " 2 - Rotam: %s", InfoOrg[2][Lider]);
				SendClientMessage(playerid, COR_ROTAM, string);
				format(string, 128, " 3 - Forзas Armadas: %s", InfoOrg[3][Lider]);
				SendClientMessage(playerid, COR_EXE, string);
				format(string, 128, " 4 - Mйdicos LS: %s", InfoOrg[4][Lider]);
				SendClientMessage(playerid, COR_MEDE, string);
				format(string, 128, " 5 - Aztecas LS: %s", InfoOrg[5][Lider]);
				SendClientMessage(playerid, COR_AZTECAS, string);
				format(string, 128, " 6 - Guerrilheiros Israelitas: %s", InfoOrg[6][Lider]);
				SendClientMessage(playerid, COR_GI, string);
				format(string, 128, " 7 - Prefeito LS: %s", InfoOrg[7][Lider]);
				SendClientMessage(playerid, COR_PRE, string);
				format(string, 128, " 8 - Hitmans: %s", InfoOrg[8][Lider]);
				SendClientMessage(playerid, COR_HITMAN, string);
				format(string, 128, " 9 - Los Santos News: %s", InfoOrg[9][Lider]);
    			SendClientMessage(playerid, COR_REP, string);
				format(string, 128, " 10 - Taxista: %s", InfoOrg[10][Lider]);
				SendClientMessage(playerid, COR_TAXI, string);
				format(string, 128, " 11 - Policia Federal: %s", InfoOrg[11][Lider]);
				SendClientMessage(playerid, COR_PF, string);
				format(string, 128, " 12 - Mбfia Cosa Nostra: %s", InfoOrg[12][Lider]);
				SendClientMessage(playerid, COR_COSA, string);
				format(string, 128, " 13 - Mбfia Yakuza: %s", InfoOrg[13][Lider]);
				SendClientMessage(playerid, COR_YAK, string);
				format(string, 128, " 14 - Groove LS: %s", InfoOrg[14][Lider]);
				SendClientMessage(playerid, COR_GRO, string);
				format(string, 128, " 15 - F.A.R.C: %s", InfoOrg[15][Lider]);
				SendClientMessage(playerid, COR_FARC, string);
				format(string, 128, " 16 - Policia Civil: %s", InfoOrg[16][Lider]);
				SendClientMessage(playerid, COR_PC, string);
				format(string, 128, " 17 - Ballas LS: %s", InfoOrg[17][Lider]);
				SendClientMessage(playerid, COR_BALLAS, string);
				format(string, 128, " 18 - Vagos LS: %s", InfoOrg[18][Lider]);
				SendClientMessage(playerid, COR_VAGOS, string);
				format(string, 128, " 19 - Comando Vermelho LS: %s", InfoOrg[19][Lider]);
    			SendClientMessage(playerid, 0xF6000000, string);
				format(string, 128, " 20 - Sons of Anarchy: %s", InfoOrg[20][Lider]);
				SendClientMessage(playerid, COR_SONS, string);
				format(string, 128, " 21 - Drifters: %s", InfoOrg[21][Lider]);
				SendClientMessage(playerid, COR_DRIFT, string);
				format(string, 128, " 22 - Triads: %s", InfoOrg[22][Lider]);
				SendClientMessage(playerid, COR_TRIADS, string);
				format(string, 128, " 23 - PCC LS: %s", InfoOrg[23][Lider]);
				SendClientMessage(playerid, COR_PCC, string);
				format(string, 128, " 24 - Groove SF: %s", InfoOrg[24][Lider]);
				SendClientMessage(playerid, COR_GRO, string);
				format(string, 128, " 25 - Vagos SF: %s", InfoOrg[25][Lider]);
				SendClientMessage(playerid, COR_VAGOS, string);
				format(string, 128, " 26 - PCC SF: %s", InfoOrg[26][Lider]);
				SendClientMessage(playerid, COR_PCC, string);
				format(string, 128, " 27 - Mйdicos SF: %s", InfoOrg[27][Lider]);
				SendClientMessage(playerid, COR_MEDE, string);
				format(string, 128, " 28 - Comando Vermelho SF: %s", InfoOrg[28][Lider]);
				SendClientMessage(playerid, 0xF6000000, string);
				format(string, 128, " 29 - Ballas SF: %s", InfoOrg[29][Lider]);
				SendClientMessage(playerid, COR_BALLAS, string);
				format(string, 128, " 30 - Prefeito SF: %s", InfoOrg[30][Lider]);
				SendClientMessage(playerid, COR_PRE, string);
				format(string, 128, " 31 - Aztecas SF: %s", InfoOrg[31][Lider]);
				SendClientMessage(playerid, COR_AZTECAS, string);
				format(string, 128, " 32 - San Fierro News: %s", InfoOrg[32][Lider]);
    			SendClientMessage(playerid, COR_REP, string);
				format(string, 128, " 33 - Taxista SF: %s", InfoOrg[33][Lider]);
				SendClientMessage(playerid, COR_TAXI, string);
				format(string, 128, " 34 - Policia Militar SF: %s", InfoOrg[34][Lider]);
				SendClientMessage(playerid, COR_PM, string);
				format(string, 128, " 35 - Rotam SF: %s", InfoOrg[35][Lider]);
				SendClientMessage(playerid, COR_ROTAM, string);
			}
		return true;
	}
Reply
#2

https://sampwiki.blast.hk/wiki/ShowPlayerDialog
https://sampforum.blast.hk/showthread.php?tid=279227
Reply
#3

Alguem generoso faz ai ?
Reply
#4

pawn Код:
if(strcmp(cmd, "/orgs", true) == 0)
{
   
    new DialogIlde[2000];
    if(IsPlayerConnected(playerid))
    {
       
        SendClientMessage(playerid, VERDE2, "|__________________________ Orgs __________________________|");
        format(string, 128, " 1 - Policia Militar LS: %s\n", InfoOrg[1][Lider]);
        strcat(DialogIlde,string);
        format(string, 128, " 2 - Rotam: %s\n", InfoOrg[2][Lider]);
        strcat(DialogIlde,string);
        format(string, 128, " 3 - Forзas Armadas: %s\n", InfoOrg[3][Lider]);
        strcat(DialogIlde,string);
        format(string, 128, " 4 - Mйdicos LS: %s\n", InfoOrg[4][Lider]);
        strcat(DialogIlde,string);
        format(string, 128, " 5 - Aztecas LS: %s\n", InfoOrg[5][Lider]);
        strcat(DialogIlde,string);
        format(string, 128, " 6 - Guerrilheiros Israelitas: %s\n", InfoOrg[6][Lider]);
        strcat(DialogIlde,string);
        format(string, 128, " 7 - Prefeito LS: %s\n", InfoOrg[7][Lider]);
        strcat(DialogIlde,string);
        format(string, 128, " 8 - Hitmans: %s\n", InfoOrg[8][Lider]);
        strcat(DialogIlde,string);
        format(string, 128, " 9 - Los Santos News: %s\n", InfoOrg[9][Lider]);
        strcat(DialogIlde,string);
        format(string, 128, " 10 - Taxista: %s\n", InfoOrg[10][Lider]);
        strcat(DialogIlde,string);
        format(string, 128, " 11 - Policia Federal: %s\n", InfoOrg[11][Lider]);
        strcat(DialogIlde,string);
        format(string, 128, " 12 - Mбfia Cosa Nostra: %s\n", InfoOrg[12][Lider]);
        strcat(DialogIlde,string);
        format(string, 128, " 13 - Mбfia Yakuza: %s\n", InfoOrg[13][Lider]);
        strcat(DialogIlde,string);
        format(string, 128, " 14 - Groove LS: %s\n", InfoOrg[14][Lider]);
        strcat(DialogIlde,string);
        format(string, 128, " 15 - F.A.R.C: %s\n", InfoOrg[15][Lider]);
        strcat(DialogIlde,string);
        format(string, 128, " 16 - Policia Civil: %s\n", InfoOrg[16][Lider]);
        strcat(DialogIlde,string);
        format(string, 128, " 17 - Ballas LS: %s\n", InfoOrg[17][Lider]);
        strcat(DialogIlde,string);
        format(string, 128, " 18 - Vagos LS: %s\n", InfoOrg[18][Lider]);
        strcat(DialogIlde,string);
        format(string, 128, " 19 - Comando Vermelho LS: %s\n", InfoOrg[19][Lider]);
        strcat(DialogIlde,string);
        format(string, 128, " 20 - Sons of Anarchy: %s\n", InfoOrg[20][Lider]);
        strcat(DialogIlde,string);
        format(string, 128, " 21 - Drifters: %s\n", InfoOrg[21][Lider]);
        strcat(DialogIlde,string);
        format(string, 128, " 22 - Triads: %s\n", InfoOrg[22][Lider]);
        strcat(DialogIlde,string);
        format(string, 128, " 23 - PCC LS: %s\n", InfoOrg[23][Lider]);
        strcat(DialogIlde,string);
        format(string, 128, " 24 - Groove SF: %s\n", InfoOrg[24][Lider]);
        strcat(DialogIlde,string);
        format(string, 128, " 25 - Vagos SF: %s\n", InfoOrg[25][Lider]);
        strcat(DialogIlde,string);
        format(string, 128, " 26 - PCC SF: %s\n", InfoOrg[26][Lider]);
        strcat(DialogIlde,string);
        format(string, 128, " 27 - Mйdicos SF: %s\n", InfoOrg[27][Lider]);
        strcat(DialogIlde,string);
        format(string, 128, " 28 - Comando Vermelho SF: %s\n", InfoOrg[28][Lider]);
        strcat(DialogIlde,string);
        format(string, 128, " 29 - Ballas SF: %s\n", InfoOrg[29][Lider]);
        strcat(DialogIlde,string);
        format(string, 128, " 30 - Prefeito SF: %s\n", InfoOrg[30][Lider]);
        SendClientMessage(playerid, COR_PRE, string);
        format(string, 128, " 31 - Aztecas SF: %s\n", InfoOrg[31][Lider]);
        strcat(DialogIlde,string);
        format(string, 128, " 32 - San Fierro News: %s\n", InfoOrg[32][Lider]);
        strcat(DialogIlde,string);
        format(string, 128, " 33 - Taxista SF: %s\n", InfoOrg[33][Lider]);
        strcat(DialogIlde,string);
        format(string, 128, " 34 - Policia Militar SF: %s\n", InfoOrg[34][Lider]);
        strcat(DialogIlde,string);
        format(string, 128, " 35 - Rotam SF: %s\n", InfoOrg[35][Lider]);
        strcat(DialogIlde,string);
        ShowPlayerDialog(playerid, 8723, DIALOG_STYLE_MSGBOX, "{FF033D}Lista de Lнderes das Organizaзхes", DialogIlde, "Ok", "");
    }
    return true;
}
'-----'
Reply
#5

Deu esse warning:
Код:
(25493) : warning 217: loose indentation
Na linha
antes do return
Код:
}
Reply
#6

Devo estar doente nem sei o que me deu para fazer isto...

pawn Код:
#define orgsmenu 880

if(strcmp(cmd, "/orgs", true) == 0)
{
    new idiot[2000], mesmo[156];
    format(mesmo, sizeof(mesmo), "1 - Policia Militar LS: %s\n", InfoOrg[1][Lider]);
    strcat(idiot, mesmo, sizeof(idiot));
    format(mesmo, sizeof(mesmo), "2 - Rotam: %s\n", InfoOrg[2][Lider]);
    strcat(idiot, mesmo, sizeof(idiot));
    format(mesmo, sizeof(mesmo), "3 - Forзas Armadas: %s\n", InfoOrg[3][Lider]);
    strcat(idiot, mesmo, sizeof(idiot));
    format(mesmo, sizeof(mesmo), "4 - Mйdicos LS: %s\n", InfoOrg[4][Lider]);
    strcat(idiot, mesmo, sizeof(idiot));
    format(mesmo, sizeof(mesmo), "5 - Aztecas LS: %s\n", InfoOrg[5][Lider]);
    strcat(idiot, mesmo, sizeof(idiot));
    format(mesmo, sizeof(mesmo), "6 - Guerrilheiros Israelitas: %s\n", InfoOrg[6][Lider]);
    strcat(idiot, mesmo, sizeof(idiot));
    format(mesmo, sizeof(mesmo), "7 - Prefeito LS: %s\n", InfoOrg[7][Lider]);
    strcat(idiot, mesmo, sizeof(idiot));
    format(mesmo, sizeof(mesmo), "8 - Hitmans: %s\n", InfoOrg[8][Lider]);
    strcat(idiot, mesmo, sizeof(idiot));
    format(mesmo, sizeof(mesmo), "9 - Los Santos News: %s\n", InfoOrg[9][Lider]);
    strcat(idiot, mesmo, sizeof(idiot));
    format(mesmo, sizeof(mesmo), "10 - Taxista: %s\n", InfoOrg[10][Lider]);
    strcat(idiot, mesmo, sizeof(idiot));
    format(mesmo, sizeof(mesmo), "11 - Policia Federal: %s\n", InfoOrg[11][Lider]);
    strcat(idiot, mesmo, sizeof(idiot));
    format(mesmo, sizeof(mesmo), "12 - Mбfia Cosa Nostra: %s\n", InfoOrg[12][Lider]);
    strcat(idiot, mesmo, sizeof(idiot));
    format(mesmo, sizeof(mesmo), "13 - Mбfia Yakuza: %s\n", InfoOrg[13][Lider]);
    strcat(idiot, mesmo, sizeof(idiot));
    format(mesmo, sizeof(mesmo), "14 - Groove LS: %s\n", InfoOrg[14][Lider]);
    strcat(idiot, mesmo, sizeof(idiot));
    format(mesmo, sizeof(mesmo), "15 - F.A.R.C: %s\n", InfoOrg[15][Lider]);
    strcat(idiot, mesmo, sizeof(idiot));
    format(mesmo, sizeof(mesmo), "16 - Policia Civil: %s\n", InfoOrg[16][Lider]);
    strcat(idiot, mesmo, sizeof(idiot));
    format(mesmo, sizeof(mesmo), "17 - Ballas LS: %s\n", InfoOrg[17][Lider]);
    strcat(idiot, mesmo, sizeof(idiot));
    format(mesmo, sizeof(mesmo), "18 - Vagos LS: %s\n", InfoOrg[18][Lider]);
    strcat(idiot, mesmo, sizeof(idiot));
    format(mesmo, sizeof(mesmo), "19 - Comando Vermelho LS: %s\n", InfoOrg[19][Lider]);
    strcat(idiot, mesmo, sizeof(idiot));
    format(mesmo, sizeof(mesmo), "20 - Sons of Anarchy: %s\n", InfoOrg[20][Lider]);
    strcat(idiot, mesmo, sizeof(idiot));
    format(mesmo, sizeof(mesmo), "21 - Drifters: %s\n", InfoOrg[21][Lider]);
    strcat(idiot, mesmo, sizeof(idiot));
    format(mesmo, sizeof(mesmo), "22 - Triads: %s\n", InfoOrg[22][Lider]);
    strcat(idiot, mesmo, sizeof(idiot));
    format(mesmo, sizeof(mesmo), "23 - PCC LS: %s\n", InfoOrg[23][Lider]);
    strcat(idiot, mesmo, sizeof(idiot));
    format(mesmo, sizeof(mesmo), "24 - Groove SF: %s\n", InfoOrg[24][Lider]);
    strcat(idiot, mesmo, sizeof(idiot));
    format(mesmo, sizeof(mesmo), "25 - Vagos SF: %s\n", InfoOrg[25][Lider]);
    strcat(idiot, mesmo, sizeof(idiot));
    format(mesmo, sizeof(mesmo), "26 - PCC SF: %s\n", InfoOrg[26][Lider]);
    strcat(idiot, mesmo, sizeof(idiot));
    format(mesmo, sizeof(mesmo), "27 - Mйdicos SF: %s\n", InfoOrg[27][Lider]);
    strcat(idiot, mesmo, sizeof(idiot));
    format(mesmo, sizeof(mesmo), "28 - Comando Vermelho SF: %s\n", InfoOrg[28][Lider]);
    strcat(idiot, mesmo, sizeof(idiot));
    format(mesmo, sizeof(mesmo), "29 - Ballas SF: %s\n", InfoOrg[29][Lider]);
    strcat(idiot, mesmo, sizeof(idiot));
    format(mesmo, sizeof(mesmo), "30 - Prefeito SF: %s\n", InfoOrg[30][Lider]);
    strcat(idiot, mesmo, sizeof(idiot));
    format(mesmo, sizeof(mesmo), "31 - Aztecas SF: %s\n", InfoOrg[31][Lider]);
    strcat(idiot, mesmo, sizeof(idiot));
    format(mesmo, sizeof(mesmo), "32 - San Fierro News: %s\n", InfoOrg[32][Lider]);
    strcat(idiot, mesmo, sizeof(idiot));
    format(mesmo, sizeof(mesmo), "33 - Taxista SF: %s\n", InfoOrg[33][Lider]);
    strcat(idiot, mesmo, sizeof(idiot));
    format(mesmo, sizeof(mesmo), "34 - Policia Militar SF: %s\n", InfoOrg[34][Lider]);
    strcat(idiot, mesmo, sizeof(idiot));
    format(mesmo, sizeof(mesmo), "35 - Rotam SF: %s\n", InfoOrg[35][Lider]);
    strcat(idiot, mesmo, sizeof(idiot));
    ShowPlayerDialog(playerid, orgsmenu, DIALOG_STYLE_MSGBOX, "Orgs", idiot, "Ok", "");
    return true;
}
Reply
#7

deu o warning
Код:
warning 217: loose indentation
na linha do } antes do return
Reply
#8

Quase tudo que eu edito aparece esse loose identation
Reply
#9

FILHO DO DIABO EU TE DEI O TREKO PRONTO E VC NEM PRA OLHAR NO ******?

Loose Identation = Desorganizaзгo de quem faz.
Igual esse que eu postei pra vocк :@

pawn Код:
if(strcmp(cmd, "/orgs", true) == 0)
{

    new DialogIlde[2000];
    if(IsPlayerConnected(playerid))
    {
       

        SendClientMessage(playerid, VERDE2, "|__________________________ Orgs __________________________|");
        format(string, 128, " 1 - Policia Militar LS: %s\n", InfoOrg[1][Lider]);
        strcat(DialogIlde,string);
        format(string, 128, " 2 - Rotam: %s\n", InfoOrg[2][Lider]);
        strcat(DialogIlde,string);
        format(string, 128, " 3 - Forзas Armadas: %s\n", InfoOrg[3][Lider]);
        strcat(DialogIlde,string);
        format(string, 128, " 4 - Mйdicos LS: %s\n", InfoOrg[4][Lider]);
        strcat(DialogIlde,string);
        format(string, 128, " 5 - Aztecas LS: %s\n", InfoOrg[5][Lider]);
        strcat(DialogIlde,string);
        format(string, 128, " 6 - Guerrilheiros Israelitas: %s\n", InfoOrg[6][Lider]);
        strcat(DialogIlde,string);
        format(string, 128, " 7 - Prefeito LS: %s\n", InfoOrg[7][Lider]);
        strcat(DialogIlde,string);
        format(string, 128, " 8 - Hitmans: %s\n", InfoOrg[8][Lider]);
        strcat(DialogIlde,string);
        format(string, 128, " 9 - Los Santos News: %s\n", InfoOrg[9][Lider]);
        strcat(DialogIlde,string);
        format(string, 128, " 10 - Taxista: %s\n", InfoOrg[10][Lider]);
        strcat(DialogIlde,string);
        format(string, 128, " 11 - Policia Federal: %s\n", InfoOrg[11][Lider]);
        strcat(DialogIlde,string);
        format(string, 128, " 12 - Mбfia Cosa Nostra: %s\n", InfoOrg[12][Lider]);
        strcat(DialogIlde,string);
        format(string, 128, " 13 - Mбfia Yakuza: %s\n", InfoOrg[13][Lider]);
        strcat(DialogIlde,string);
        format(string, 128, " 14 - Groove LS: %s\n", InfoOrg[14][Lider]);
        strcat(DialogIlde,string);
        format(string, 128, " 15 - F.A.R.C: %s\n", InfoOrg[15][Lider]);
        strcat(DialogIlde,string);
        format(string, 128, " 16 - Policia Civil: %s\n", InfoOrg[16][Lider]);
        strcat(DialogIlde,string);
        format(string, 128, " 17 - Ballas LS: %s\n", InfoOrg[17][Lider]);
        strcat(DialogIlde,string);
        format(string, 128, " 18 - Vagos LS: %s\n", InfoOrg[18][Lider]);
        strcat(DialogIlde,string);
        format(string, 128, " 19 - Comando Vermelho LS: %s\n", InfoOrg[19][Lider]);
        strcat(DialogIlde,string);
        format(string, 128, " 20 - Sons of Anarchy: %s\n", InfoOrg[20][Lider]);
        strcat(DialogIlde,string);
        format(string, 128, " 21 - Drifters: %s\n", InfoOrg[21][Lider]);
        strcat(DialogIlde,string);
        format(string, 128, " 22 - Triads: %s\n", InfoOrg[22][Lider]);
        strcat(DialogIlde,string);
        format(string, 128, " 23 - PCC LS: %s\n", InfoOrg[23][Lider]);
        strcat(DialogIlde,string);
        format(string, 128, " 24 - Groove SF: %s\n", InfoOrg[24][Lider]);
        strcat(DialogIlde,string);
        format(string, 128, " 25 - Vagos SF: %s\n", InfoOrg[25][Lider]);
        strcat(DialogIlde,string);
        format(string, 128, " 26 - PCC SF: %s\n", InfoOrg[26][Lider]);
        strcat(DialogIlde,string);
        format(string, 128, " 27 - Mйdicos SF: %s\n", InfoOrg[27][Lider]);
        strcat(DialogIlde,string);
        format(string, 128, " 28 - Comando Vermelho SF: %s\n", InfoOrg[28][Lider]);
        strcat(DialogIlde,string);
        format(string, 128, " 29 - Ballas SF: %s\n", InfoOrg[29][Lider]);
        strcat(DialogIlde,string);
        format(string, 128, " 30 - Prefeito SF: %s\n", InfoOrg[30][Lider]);
        SendClientMessage(playerid, COR_PRE, string);
        format(string, 128, " 31 - Aztecas SF: %s\n", InfoOrg[31][Lider]);
        strcat(DialogIlde,string);
        format(string, 128, " 32 - San Fierro News: %s\n", InfoOrg[32][Lider]);
        strcat(DialogIlde,string);
        format(string, 128, " 33 - Taxista SF: %s\n", InfoOrg[33][Lider]);
        strcat(DialogIlde,string);
        format(string, 128, " 34 - Policia Militar SF: %s\n", InfoOrg[34][Lider]);
        strcat(DialogIlde,string);
        format(string, 128, " 35 - Rotam SF: %s\n", InfoOrg[35][Lider]);
        strcat(DialogIlde,string);
        ShowPlayerDialog(playerid, 8723, DIALOG_STYLE_MSGBOX, "{FF033D}Lista de Lнderes das Organizaзхes", DialogIlde, "Ok", "");
    }
    return true;
}
Reply
#10

Quote:
Originally Posted by MoitaGreen
Посмотреть сообщение
deu o warning
Код:
warning 217: loose indentation
na linha do } antes do return
isso й mб identaзгo.

exemplo.

Код:
#darб warning por que o b estб fora do a , tem que ser um embaixo do outro.

if(a)
{
    a
 b

}

#correto


if(a)
{
     a
     b

}



#ou seja .


{
  {
    {
    
        ....
 
    }
  }
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)