if(dialogid == D_PROFS) { if(response) { switch(listitem) { case 0: { ShowPlayerDialog(playerid, D_PARTI, DIALOG_STYLE_LIST, "{FFFFFF}Profissгo - {FFFF00}Nнvel {FFFFFF}- {3DB134}Salбrio", "Seguranca Particular - {FFF000}Nнvel 20 {FFFFFF}- {3DB134}R$800\nMotorista Particular - {FFF000}Nнvel 20 {FFFFFF}- {3DB134}R$750\nPiloto(a) Particular - {FFF000}Nнvel 45 {FFFFFF}- {3DB134}R$2000\n{4995CC}Voltar", "OK", "Voltar"); } case 1: { ShowPlayerDialog(playerid, D_TRANS, DIALOG_STYLE_LIST, "{FFFFFF}Profissгo - {FFFF00}Nнvel {FFFFFF}- {3DB134}Salбrio", "Motorista de Фnibus - {FFF000}Nнvel 30 {FFFFFF}- {3DB134}R$700\nTaxista - {FFF000}Nнvel 0 {FFFFFF}- {3DB134}R$600\nMoto Taxista - {FFF000}Nнvel 25 {FFFFFF}- {3DB134}R$650\n{4995CC}Voltar", "OK", "Voltar"); } case 2: { ShowPlayerDialog(playerid, D_TRANP, DIALOG_STYLE_LIST, "{FFFFFF}Profissгo - {FFFF00}Nнvel {FFFFFF}- {3DB134}Salбrio", "Caminhoneiro(a) - {FFF000}Nнvel 0 {FFFFFF}- {3DB134}R$800\nMaquinista - {FFF000}Nнvel 10 {FFFFFF}- {3DB134}R$800\nTransportador(a) - {FFF000}Nнvel 0 {FFFFFF}- {3DB134}R$700\nPiloto - {FFF000}Nнvel 5 {FFFFFF}- {3DB134}R$820\n{4995CC}Voltar", "OK", "Voltar"); } case 3: { ShowPlayerDialog(playerid, D_POLIC, DIALOG_STYLE_LIST, "{FFFFFF}Profissгo - {FFFF00}Nнvel {FFFFFF}- {3DB134}Salбrio", "Guarda de Trвnsito - {FFF000}Nнvel 30 {FFFFFF}- {3DB134}R$900\nPolicial Civil - {FFF000}Nнvel 80 {FFFFFF}- {3DB134}R$1500\nPolicial Militar - {FFF000}Nнvel 100 {FFFFFF}- {3DB134}R$1800\nPolicial Rodoviбrio - {FFF000}Nнvel 180 {FFFFFF}- {3DB134}R$2000\nPolicial Federal - {FFF000}Nнvel 250 {FFFFFF}- {3DB134}R$2500\n{4995CC}Voltar", "OK", "Voltar"); } case 4: { ShowPlayerDialog(playerid, D_OUTRA, DIALOG_STYLE_LIST, "{FFFFFF}Profissгo - {FFFF00}Nнvel {FFFFFF}- {3DB134}Salбrio", "Mйdico(a) - {FFF000}Nнvel 25 {FFFFFF}- {3DB134}R$800\nAdvogado(a) - {FFF000}Nнvel 60 {FFFFFF}- {3DB134}R$750\nBombeiro(a) - {FFF000}Nнvel 120 {FFFFFF}- {3DB134}R$950\nInstrutor(a) - {FFF000}Nнvel 40 {FFFFFF}- {3DB134}R$900\n{4995CC}Voltar", "OK", "Voltar"); } case 5: { ShowPlayerDialog(playerid, D_GOVER, DIALOG_STYLE_LIST, "{FFFFFF}Profissгo - {FFFF00}Nнvel {FFFFFF}- {3DB134}Salбrio", "Deputado(a) - {FFF000}Nнvel 350 {FFFFFF}- {3DB134}R$2000\nPrefeito(a) - {FFF000}Nнvel 500 {FFFFFF}- {3DB134}R$3000\nGovernador(a) - {FFF000}Nнvel 1350 {FFFFFF}- {3DB134}R$5000\n{4995CC}Voltar", "OK", "Voltar"); } case 6: { ShowPlayerDialog(playerid, D_CRIME, DIALOG_STYLE_LIST, "{FFFFFF}Profissгo - {FFFF00}Nнvel {FFFFFF}- {3DB134}Salбrio", "Traficante de Drogas - {FFF000}Nнvel 15 {FFFFFF}- {3DB134}R$700\nTraficante de Armas - {FFF000}Nнvel 70 {FFFFFF}- {3DB134}R$750\nHitman - {FFF000}Nнvel 300 {FFFFFF}- {3DB134}R$2500\nFranco-Atirador(a) - {FFF000}Nнvel 120 {FFFFFF}- {3DB134}R$900\nTerrorista - {FFF000}Nнvel 160 {FFFFFF}- {3DB134}R$1000\nMafioso(a) - {FFF000}Nнvel 350 {FFFFFF}- {3DB134}R$1500\nContrabandista - {FFF000}Nнvel 130 {FFFFFF}- {3DB134}R$1500\n{4995CC}Voltar", "OK", "Voltar"); } case 7: { ShowPlayerDialog(playerid, D_OUTR2, DIALOG_STYLE_LIST, "{FFFFFF}Profissгo - {FFFF00}Nнvel {FFFFFF}- {3DB134}Salбrio", "Pescador(a) - {FFF000}Nнvel 0 {FFFFFF}- {3DB134}R$550\nPizza Boy - {FFF000}Nнvel 0 {FFFFFF}- {3DB134}R$550\nFotуgrafo(a) - {FFF000}Nнvel 0 {FFFFFF}- {3DB134}R$600\nMecвnico(a) - {FFF000}Nнvel 20 {FFFFFF}- {3DB134}R$750\nFlanelinha - {FFF000}Nнvel 50 {FFFFFF}- {3DB134}R$650\nProstituta - {FFF000}Nнvel 10 {FFFFFF}- {3DB134}R$850\nPadre - {FFF000}Nнvel 50 {FFFFFF}- {3DB134}R$600\nRepуrter - {FFF000}Nнvel 25 {FFFFFF}- {3DB134}R$700\nMendigo - {FFF000}Nнvel 1 {FFFFFF}- {3DB134}R$350\n{4995CC}Voltar", "OK", "Voltar"); //ERRO } } } }
"Tex\
to"
new texto[128], string[128]; strcat(texto, "isto aqui й top "); strcat(texto, "demais mano"); //O QUE JUNTA AS DUAS STRING Й A VARIAVEL TEXTO format(string, sizeof(string), "%s", texto); ShowPlayerDialog(playerid, 0, DIALOG_STYLE_LIST, "Titulo", string, "OK", "Voltar");
#define DIALOG_EXEMPLO 1
CMD:exemplo(playerid)
{
new StringCat[500];
strcat(StringCat, "BlaBlaBluBla\n");
strcat(StringCat, "HEUWHEUW\n");
strcat(StringCat, "Sempre assim\n");
ShowPlayerDialog(playerid, DIALOG_EXEMPLO, DIALOG_STYLE_MSGBOX, "Exemplo", StringCat, "Fechar", #);
return 1;
}
A linha esta muito grande, recomendo utilizar a versгo modificada do compilador do pawn:
Zeex compiler Ou vocк pode tentar quebrar a linha usando o caractere \ PHP код:
|
ShowPlayerDialog(playerid, D_OUTR2, DIALOG_STYLE_LIST, "{FFFFFF}Profissгo - {FFFF00}Nнvel {FFFFFF}- {3DB134}Salбrio", StringCat, "Voltar", "OK", "Voltar");