[Ajuda] Transformar RG de Chat para Dialog
#1

Olб Novamente! O Meu servidor tem a rg em chat, e eu tentei transforma-la em dialog, mais apenas a linha "Explosivos, Cigarros, e Isqueiros..." ficam em dialog, as outras simplesmente somem, eu tentei arrumar de vбrias maneiras, testei, e nгo consegui alguйm poderia me auxiliar nesse cуdigo?
Aqui estб:



PHP код:
        new RulesBox[2000];
        
format(gstringsizeof(gstring),"** RG de %s **",PlayerName(targetid));
        
format(RulesBoxsizeof(RulesBox),"%s\n%s\n",RulesBox);
        
SendClientMessage(playeridCOLOR_RG,gstring);
        
format(RulesBoxsizeof(RulesBox), "%s\nNнvel:[%d] Idade:[%d] Sexo:[%s] Dinheiro:[R$%d] Banco:[R$%d] Ouros:[%d] Coins:[%d] Celular:[%d] "level,PlayerInfo[targetid][pAge],atextcashConta,PlayerInfo[targetid][pOuros],Casherpnumber);
        
SendClientMessage(playeridCOLOR_RG,gstring);
        
format(RulesBoxsizeof(RulesBox), "%s\nConta:[%s] Casado Com:[%s] Horas Jogadas:[%d] Emprego:[%s]"drank,married,PlayerInfo[targetid][pConnectTime],jtext);
        
SendClientMessage(playeridCOLOR_RG,gstring);
        
format(RulesBoxsizeof(RulesBox), "%s\nCrimes Cometidos:[%d] Matou:[%d] Morreu:[%d] Loteria:[%d] Cidade:[Los Santos] Vida:[%.1f]"crimes,kills,deaths,lottoshealth);
        
SendClientMessage(playeridCOLOR_RG,gstring);
        
format(RulesBoxsizeof(RulesBox), "%s\nPrу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);
        
SendClientMessage(playeridCOLOR_RG,gstring);
        
format(RulesBoxsizeof(RulesBox), "%s\nMateriais:[%d] Safe Materiais:[%d] Organizaзгo:[%s] Cargo:[%s] Email:[%s]",mats,smats,NomeORG(targetid),GetPlayerCargo(targetid), PlayerInfo[targetid][pEmail]);
        
SendClientMessage(playeridCOLOR_RG,gstring);
        if (
PlayerInfo[playerid][pAdmin] >= || PlayerInfo[playerid][pAdminTemp] >= 1)
        
format(RulesBoxsizeof(RulesBox), "%s\nSementes:[%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(playeridCOLOR_RG,gstring);
        if (
PlayerInfo[playerid][pAdmin] >= || PlayerInfo[playerid][pAdminTemp] >= 1)
        
format(RulesBoxsizeof(RulesBox), "%s\nExplosivos:[%d] Cigarros:[%d] Galгo de Gasolina:[%s] Isqueiro:[%s] Patins:[%s] Rбdio:[%s]",PlayerInfo[targetid][pExplosivos], PlayerInfo[targetid][pCigarros], galaoIsqueiroppatinsradiop);
        
SendClientMessage(playeridCOLOR_RG,gstring);
        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);
            
SendClientMessage(playeridCOLOR_RG,gstring);
            
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);
            
SendClientMessage(playeridCOLOR_RG,gstring);
        }
        
ShowPlayerDialog(playeridDIALOG_INFODIALOG_STYLE_MSGBOX"Documentos"RulesBox"Fechar""");
    }
    return 
true;

Reply
#2

Use Strcat.
https://sampwiki.blast.hk/wiki/Strcat
Reply
#3

espero que ajude,

https://sampforum.blast.hk/showthread.php?tid=660223
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)