SA-MP Forums Archive
[Ajuda] Ajuda no RG . - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Ajuda no RG . (/showthread.php?tid=604259)



Ajuda no RG . - smkfodao - 02.04.2016

Entгo eu usei /n quebra de linha porйm ainda continua tudo na mesma linha , alguem pode me ajudar ?

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



Re: Ajuda no RG . - ipsLuan - 02.04.2016

Vocк tem que usar em todas as linhas de mensagens.


Re: Ajuda no RG . - smkfodao - 02.04.2016

entгo eu usei /n em todas as linhas pode ver ai .


Re: Ajuda no RG . - ipsLuan - 02.04.2016

Ao meu ver, estб certo.

1. Tente compilar, e verificar se o arquivo й o que estб sendo carregado pelo SA:MP
2. Mande print's.



Re: Ajuda no RG . - F1N4L - 02.04.2016

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




Re: Ajuda no RG . - smkfodao - 02.04.2016

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

ficou muito quebrado e nгo coube no rg , nгo sei pq nao estou conseguindo tб foda .


Re: Ajuda no RG . - ipsLuan - 02.04.2016

Mande prints!


Re: Ajuda no RG . - smkfodao - 02.04.2016

Quote:
Originally Posted by ipsLuan
Посмотреть сообщение
Mande prints!
Opa perdгo eu tinha comentado aqui nгo sei porque nгo foi entгo a print й essa : http://imgur.com/g7sn3O3


Re: Ajuda no RG . - F1N4L - 02.04.2016

Vc tem muitos dados numa mesma Dialog. Recomendo criar 2 dialogs. Uma para AVANЗAR e outra para VOLTAR. Acredito q seja mts dados e acabam ficando maior q na tela! Faзa isso...


Re: Ajuda no RG . - smkfodao - 02.04.2016

Quote:
Originally Posted by F1N4L
Посмотреть сообщение
Vc tem muitos dados numa mesma Dialog. Recomendo criar 2 dialogs. Uma para AVANЗAR e outra para VOLTAR. Acredito q seja mts dados e acabam ficando maior q na tela! Faзa isso...
O pior que nem й por ser isso , atй porque ja vi um rg assim tenho atй print aqui : http://imgur.com/M93gcMl