[Ajuda] Rg em chat para rg em dialog
#1

Olб gostaria que vocкs me ajudassem a transformar esse RG em chat para um dialog ja tentei de varias formas porйm nгo consegui , entao vou pedir a ajuda de vocкs ... obrigado

Код:
      format(gstring, sizeof(gstring),"** RG de %s **",PlayerName(targetid));
		SendClientMessage(playerid, COLOR_RG,gstring);
		format(gstring, sizeof(gstring), "Nнvel:[%d] Idade:[%d] Sexo:[%s] Dinheiro:[R$%d] Banco:[R$%d] Ouros:[%d] Cash:[%d] Celular:[%d] ", level,PlayerInfo[targetid][pAge],atext, cash, Conta,PlayerInfo[targetid][pOuros],Casher, pnumber);
		SendClientMessage(playerid, COLOR_RG,gstring);
		format(gstring, sizeof(gstring), "Conta:[%s] Casado Com:[%s] Horas Jogadas:[%d] Emprego:[%s]", drank,married,PlayerInfo[targetid][pConnectTime],jtext);
		SendClientMessage(playerid, COLOR_RG,gstring);
		format(gstring, sizeof(gstring), "Crimes Cometidos:[%d] Matou:[%d] Morreu:[%d] Loteria:[%d] Cidade:[Los Santos] Vida:[%.1f]", crimes,kills,deaths,lotto, shealth);
		SendClientMessage(playerid, COLOR_RG,gstring);
		format(gstring, sizeof(gstring), "Prуximo Nнvel:[R$%d] Respeito:[%d/%d] Doenзas:[%s] Nнvel de Procura:[%d] Tempo Concessionбria [%d/20]",costlevel,exp,expquantidade,dtext, Wanted, choras);
		SendClientMessage(playerid, COLOR_RG,gstring);
		format(gstring, sizeof(gstring), "Materiais:[%d] Safe Materiais:[%d] Organizaзгo:[%s] Cargo:[%s] Email:[%s]",mats,smats,NomeORG(targetid),GetPlayerCargo(targetid), PlayerInfo[targetid][pEmail]);
		SendClientMessage(playerid, COLOR_RG,gstring);
		format(gstring, sizeof(gstring), "Sementes:[%d] Maconha:[%d] Cocaina:[%d] Crack:[%d] Safe Maconha:[%d] Safe Cocaina:[%d] Safe Crack:[%d]",PlayerInfo[targetid][pSementes],Drogas,Drogas2,Drogas3,SafeDrogas,SafeDrogas2,SafeDrogas3);
		SendClientMessage(playerid, COLOR_RG,gstring);
		format(gstring, sizeof(gstring), "Explosivos:[%d] Cigarros:[%d] Galгo de Gasolina:[%s] Isqueiro:[%s] Patins:[%s] Rбdio:[%s]",PlayerInfo[targetid][pExplosivos], PlayerInfo[targetid][pCigarros], galao, Isqueiro, ppatins, radiop);
		SendClientMessage(playerid, COLOR_RG,gstring);
		if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pAdminTemp] >= 1)
		{
			format(gstring, sizeof(gstring), "Chave Casa: [%d] Chave Empresa: [%d] Chave Fazenda: [%d] Chave do Carro: [%d] Interior:[%d] Local:[%d]", housekey,bizkey,fazkey,HireCar[targetid],intir,local);
			SendClientMessage(playerid, COLOR_RG,gstring);
			format(gstring, sizeof(gstring), "Veнculo VIP(1): [%d] Veнculo VIP(2): [%d] Veнculo VIP(3): [%d] Veнculo VIP(4): [%d] Veнculo VIP(5): [%d]", carro,carro2,carro3,carro4,carro5);
			SendClientMessage(playerid, COLOR_RG,gstring);
        }
Reply
#2

https://sampwiki.blast.hk/wiki/ShowPlayerDialog
https://sampforum.blast.hk/showthread.php?tid=573253

Olha bem os 2 links que vai conseguir.

@Edit
Mais um exemplo em portuguкs:
https://sampforum.blast.hk/showthread.php?tid=360676

Leia tudo
Reply
#3

entгo eu tentei fazer por todos esses negocios sempre dб errado estou com uma enorme dificuldade .
Reply
#4

Leia os links que o @Ever_SH postou para que entenda melhor as funзхes.

PHP код:
        new Strcat[800];
    
format(gstringsizeof(gstring),"** RG de %s **",PlayerName(targetid));
    
strcat(Strcatgstring);
    
format(gstringsizeof(gstring), "Nнvel:[%d] Idade:[%d] Sexo:[%s] Dinheiro:[R$%d] Banco:[R$%d] Ouros:[%d] Cash:[%d] Celular:[%d] "level,PlayerInfo[targetid][pAge],atextcashConta,PlayerInfo[targetid][pOuros],Casherpnumber);
    
strcat(Strcatgstring);
    
format(gstringsizeof(gstring), "Conta:[%s] Casado Com:[%s] Horas Jogadas:[%d] Emprego:[%s]"drank,married,PlayerInfo[targetid][pConnectTime],jtext);
    
strcat(Strcatgstring);
    
format(gstringsizeof(gstring), "Crimes Cometidos:[%d] Matou:[%d] Morreu:[%d] Loteria:[%d] Cidade:[Los Santos] Vida:[%.1f]"crimes,kills,deaths,lottoshealth);
    
strcat(Strcatgstring);
    
format(gstringsizeof(gstring), "Prуximo Nнvel:[R$%d] Respeito:[%d/%d] Doenзas:[%s] Nнvel de Procura:[%d] Tempo Concessionбria [%d/20]",costlevel,exp,expquantidade,dtextWantedchoras);
    
strcat(Strcatgstring);
    
format(gstringsizeof(gstring), "Materiais:[%d] Safe Materiais:[%d] Organizaзгo:[%s] Cargo:[%s] Email:[%s]",mats,smats,NomeORG(targetid),GetPlayerCargo(targetid), PlayerInfo[targetid][pEmail]);
    
strcat(Strcatgstring);
    
format(gstringsizeof(gstring), "Sementes:[%d] Maconha:[%d] Cocaina:[%d] Crack:[%d] Safe Maconha:[%d] Safe Cocaina:[%d] Safe Crack:[%d]",PlayerInfo[targetid][pSementes],Drogas,Drogas2,Drogas3,SafeDrogas,SafeDrogas2,SafeDrogas3);
    
strcat(Strcatgstring);
    
format(gstringsizeof(gstring), "Explosivos:[%d] Cigarros:[%d] Galгo de Gasolina:[%s] Isqueiro:[%s] Patins:[%s] Rбdio:[%s]",PlayerInfo[targetid][pExplosivos], PlayerInfo[targetid][pCigarros], galaoIsqueiroppatinsradiop);
    
strcat(Strcatgstring);
    if(
PlayerInfo[playerid][pAdmin] >= || PlayerInfo[playerid][pAdminTemp] >= 1)
    {
        
format(gstringsizeof(gstring), "Chave Casa: [%d] Chave Empresa: [%d] Chave Fazenda: [%d] Chave do Carro: [%d] Interior:[%d] Local:[%d]"housekey,bizkey,fazkey,HireCar[targetid],intir,local);
        
strcat(Strcatgstring);
        
format(gstringsizeof(gstring), "Veнculo VIP(1): [%d] Veнculo VIP(2): [%d] Veнculo VIP(3): [%d] Veнculo VIP(4): [%d] Veнculo VIP(5): [%d]"carro,carro2,carro3,carro4,carro5);
        
strcat(Strcatgstring);
    }
    
ShowPlayerDialog(playerid12345DIALOG_STYLE_MSGBOX"PAINEL RG"Strcat"OK",""); 
Reply
#5

Entгo deu varios erros amigo

Код:
C:\Users\William\Desktop\Brasil Play Adventure\pawno\include\../BPS_Includes/#ds_ac#2.0.inc(497) : error 017: undefined symbol "updatetextlife"
C:\Users\William\Desktop\Brasil Play Adventure\pawno\include\../BPS_Includes/#ds_ac#2.0.inc(503) : error 017: undefined symbol "updatetextlife"
C:\Users\William\Desktop\Brasil Play Adventure\gamemodes\BPS.pwn(1001) : error 017: undefined symbol "NomePlayer"
C:\Users\William\Desktop\Brasil Play Adventure\gamemodes\BPS.pwn(1137) : error 017: undefined symbol "fallResetPlayer"
C:\Users\William\Desktop\Brasil Play Adventure\gamemodes\BPS.pwn(1277) : error 017: undefined symbol "GetClosestPlayer"
C:\Users\William\Desktop\Brasil Play Adventure\gamemodes\BPS.pwn(2775) : error 017: undefined symbol "NomeArma"
C:\Users\William\Desktop\Brasil Play Adventure\gamemodes\BPS.pwn(2784) : error 017: undefined symbol "NomeArma"
C:\Users\William\Desktop\Brasil Play Adventure\gamemodes\BPS.pwn(2808) : error 017: undefined symbol "NomeArma"
C:\Users\William\Desktop\Brasil Play Adventure\gamemodes\BPS.pwn(2883) : error 017: undefined symbol "CreateDroppedGun"
C:\Users\William\Desktop\Brasil Play Adventure\gamemodes\BPS.pwn(2890) : error 017: undefined symbol "NomePlayer"
C:\Users\William\Desktop\Brasil Play Adventure\gamemodes\BPS.pwn(2891) : error 017: undefined symbol "SendClientMessageInRange"
C:\Users\William\Desktop\Brasil Play Adventure\gamemodes\BPS.pwn(3170) : error 017: undefined symbol "NomePlayer"
C:\Users\William\Desktop\Brasil Play Adventure\gamemodes\BPS.pwn(3398) : error 017: undefined symbol "NomePlayer"
C:\Users\William\Desktop\Brasil Play Adventure\gamemodes\BPS.pwn(3403) : error 017: undefined symbol "NomePlayer"
C:\Users\William\Desktop\Brasil Play Adventure\gamemodes\BPS.pwn(3408) : error 017: undefined symbol "NomePlayer"
C:\Users\William\Desktop\Brasil Play Adventure\gamemodes\BPS.pwn(3413) : error 017: undefined symbol "NomePlayer"
C:\Users\William\Desktop\Brasil Play Adventure\gamemodes\BPS.pwn(3418) : error 017: undefined symbol "NomePlayer"
C:\Users\William\Desktop\Brasil Play Adventure\gamemodes\BPS.pwn(3431) : error 017: undefined symbol "NomePlayer"
Reply
#6

Quer q eu faзa o q? O Cуdigo й seu e nгo tem nada errado com ele... o problema й o lugar q vc estб o colocando! Verifique novamente isso.
Reply
#7

Quote:
Originally Posted by xDeadPoolx
Посмотреть сообщение
Quer q eu faзa o q? O Cуdigo й seu e nгo tem nada errado com ele... o problema й o lugar q vc estб o colocando! Verifique novamente isso.
Entгo estou colando em cima de onde esta o RG , eu nгo sei mexer muito com o pawno poderia me explicar mais detalhado por favor?
Reply
#8

Poste a funзгo inteira, sу assim para identificar o erro... e se vc n tem noзгo da linguagem pawn, pq ta tentando programar?
Reply
#9

Quote:
Originally Posted by xDeadPoolx
Посмотреть сообщение
Poste a funзгo inteira, sу assim para identificar o erro... e se vc n tem noзгo da linguagem pawn, pq ta tentando programar?
sу estou tentando arrumar meu RG e colocar em dialog mas sempre da erro, quer a funзao dos erros que ta dando ?
Reply
#10

Quero a funзгo inteira... poste completa para identificar...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)