[Ajuda] dialogo bugo !
#1

Pessoal, desejo colocar muito isso, mais nгo tб dando afs, queria pelome nos saber qual dialogo posso usar neste momento, pois esse acho que nгo estб dando.

Erros:
Код:
C:\samp03\gamemodes\BUL.pwn(20016) : error 035: argument type mismatch (argument 3)
C:\samp03\gamemodes\BUL.pwn(20017) : error 035: argument type mismatch (argument 3)
C:\samp03\gamemodes\BUL.pwn(20019) : error 035: argument type mismatch (argument 3)
Codigos:
Код:
   	         	new pt[700];
                strcat(pt,"{FFFFFF}\n\n");
                strcat(pt,"{FFFFFF}     Nome: %s\n", GetPlayerNameRP(playerid));
                strcat(pt,"{FFFFFF}     Sexo: %s\n", atext);
                strcat(pt,"{FFFFFF}     Idade: %d\n", PlayerInfo[playerid][pAge]);
                strcat(pt,"{FFFFFF}     Cidade: %s\n\n", otext);
                strcat(pt,"{1EE1E1}Agora anбlise os dados e confirme a criaзгo do personagem.\n");
	        	ShowPlayerDialog(playerid, 904, DIALOG_STYLE_MSGBOX, "Criando seu personagem", pt, "Confirmar", "");
Sу nгo tб dando erro no
Код:
 strcat(pt,"{FFFFFF}     Idade: %d\n", PlayerInfo[playerid][pAge]);
agora o resto.. erros..
Reply
#2

Bom eu fiz este cуdigo abaixo pronto do jeito que vocк quer

Ajudei? + Rep

PHP код:
    new line1[60],line2[60],line3[60],line4[60],line5[60],line6[80], string[255], aname[MAX_PLAYER_NAME];
    
GetPlayerName(playeridaname,sizeof(aname));
    
format(line1,sizeof(line1),"\n\n");
    
format(line2,sizeof(line2),"{FFFFFF}     Nome: %s\n"aname);
    
format(line3,sizeof(line3),"{FFFFFF}     Sexo: %s\n"atext);
    
format(line4,sizeof(line4),"{FFFFFF}     Idade: %d\n"PlayerInfo[playerid][pAge]);
    
format(line5,sizeof(line5),"{FFFFFF}     Cidade: %s\n\n"otext);
    
format(line6,sizeof(line6),"{1EE1E1}Agora anбlise os dados e confirme a criaзгo do personagem.\n"PlayerInfo[playerid][pAge]);
    
format(string,sizeof(string),"%s\n%s\n%s\n%s\n%s\n%s",line1,line2,line3,line4,line5,line6);
    
ShowPlayerDialog(playerid,904DIALOG_STYLE_MSGBOX"Criando seu Personagem",string"Confirmar""" ); 
Caso esteja dando erro certifique que as suas duas vбriaveis abaixo estгo criadas da forma correta.

Код:
atext
otext
Reply
#3

Tem que colocar primeiro format para isso tipo assim:

pawn Код:
format(String, szieof(String), "Seu Texto\n", Valores); strcat(pt, String);
format(String, szieof(String), "Seu Texto\n", Valores); strcat(pt, String);
format(String, szieof(String), "Seu Texto", Valores); strcat(pt, String);
Reply
#4

Quote:
Originally Posted by [BOPE]Seu._.Madruga
Посмотреть сообщение
Bom eu fiz este cуdigo abaixo pronto do jeito que vocк quer

Ajudei? + Rep

PHP код:
    new line1[258],line2[258],line3[258],line4[258],line5[258],line6[258], aname[MAX_PLAYER_NAME];
    
GetPlayerName(playeridaname,sizeof(aname));
    
format(line1,sizeof(line1),"\n\n");
    
format(line2,sizeof(line2),"{FFFFFF}     Nome: %s\n"aname);
    
format(line3,sizeof(line3),"{FFFFFF}     Sexo: %s\n"atext);
    
format(line4,sizeof(line4),"{FFFFFF}     Idade: %d\n"PlayerInfo[playerid][pAge]);
    
format(line5,sizeof(line5),"{FFFFFF}     Cidade: %s\n\n"otext);
    
format(line6,sizeof(line6),"{1EE1E1}Agora anбlise os dados e confirme a criaзгo do personagem.\n"PlayerInfo[playerid][pAge]);
    
format(string,sizeof(string),"%s\n%s\n%s\n%s\n%s\n%s",line1,line2,line3,line4,line5,line6);
    
ShowPlayerDialog(playerid,904DIALOG_STYLE_MSGBOX"Criando seu Personagem",string"Confirmar""" ); 
Caso esteja dando erro certifique que as suas duas vбriaveis abaixo estгo criadas da forma correta.

Код:
atext
otext
+rep
Reply
#5

Exagero de strings no cуdigo do Seu Madruga.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)