[Ajuda] Formats em Dialog
#1

Olб pessoal, estou com um probleminha, entгo, criei 5 formats para o dialog deste jeito

pawn Код:
new string[256];
format(string, sizeof(string), "Teste1");
format(string, sizeof(string), "Teste2");
format(string, sizeof(string), "Teste3");
format(string, sizeof(string), "Teste4");
format(string, sizeof(string), "Teste5");
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Titulo", string, "Ok", "Cancelar");
Quando vou no servidor e digito o comando deste dialog ele sу exibe o dialog "Teste5", como faзo pra exibir todos eles?

Valeu!!
Reply
#2

pawn Код:
new string[256], meudalog[600];
format(string, sizeof(string), "Teste1"); strcat(meudialog, string);
format(string, sizeof(string), "Teste2"); strcat(meudialog, string);
format(string, sizeof(string), "Teste3"); strcat(meudialog, string);
format(string, sizeof(string), "Teste4");strcat(meudialog, string);
format(string, sizeof(string), "Teste5");strcat(meudialog, string);
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Titulo", meudialog, "Ok", "Cancelar");
Reply
#3

pawn Код:
new coordsstring[256], titulo[256];
       
format(coordsstring, sizeof(coordsstring),"teste1"); strcat(titulo, coordsstring);
format(coordsstring, sizeof(coordsstring),"teste2"); strcat(titulo, coordsstring);
format(coordsstring, sizeof(coordsstring),"teste3"); strcat(titulo, coordsstring);
format(coordsstring, sizeof(coordsstring),"teste4"); strcat(titulo, coordsstring);
format(coordsstring, sizeof(coordsstring),"teste5"); strcat(titulo, coordsstring);
ShowPlayerDialog(playerid, 102030, DIALOG_STYLE_MSGBOX,"Titulo ", titulo, "Ok","Cancelar");
Ve Se й Isso Ae!
Malz OZ!! Nгo Tinha O seu Quando Fiz O Meu
Reply
#4

pawn Код:
new string[256];
format(string, sizeof(string), "Teste1");
format(string, sizeof(string), "% Teste2",string);// no % coloque S para letras e D para numeros
format(string, sizeof(string), "% Teste3",string);
format(string, sizeof(string), "% Teste4",string);
format(string, sizeof(string), "%T este5",string);
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Titulo", string, "Ok", "Cancelar");
// Armazenou a primeira String e jogou na segunda, pegou a primeira e segunda e jogou na terceira e por ai vai!
Reply
#5

Kk, sу uma ali ajudou, mais obrigado a todos ae..!
Reply
#6

Usa strcat, mais fбcil
Reply
#7

Pelo que vн, o do hitachi foi melhor!!!

Tipo, se eu for fazer por strings, vai lagar muito o gm, entгo Hitachi, muito obrigado ganhou rep man!
Reply
#8

nгo, obrigado voce miqueias (L)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)