SA-MP Forums Archive
[Ajuda] Rg bugado - 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] Rg bugado (/showthread.php?tid=365484)



Rg bugado - Senhor_Azul - 03.08.2012

Eae galera,eu to com um problema,quando uso o /rg e o /mostrarrg.Acontece o seguinte:

http://i46.tinypic.com/favvc0.png
Codigo do rg:
pawn Код:
public ShowStats(playerid,targetid)
{
    if(IsPlayerConnected(playerid)&&IsPlayerConnected(targetid))
    {
        new cash =  GetPlayerMoney(targetid);
        new atext[20];
        if(PlayerInfo[targetid][pSex] == 1) { atext = "Masculino"; }
        else if(PlayerInfo[targetid][pSex] == 2) { atext = "Feminino"; }
        new dtext[20];
        if(PlayerInfo[targetid][pDoenca] == 1) { dtext = "Mongolismo"; }
        else if(PlayerInfo[targetid][pDoenca] == 2) { dtext = "AIDS"; }
        else if(PlayerInfo[targetid][pDoenca] == 3) { dtext = "Herpes Genital"; }
        else if(PlayerInfo[targetid][pDoenca] == 4) { dtext = "Cirrose"; }
        else if(PlayerInfo[targetid][pDoenca] == 5) { dtext = "Cвncer de Pulmгo"; }
        else { dtext = "Nenhuma"; }
        new rtext[64];
        if(PlayerInfo[targetid][pMembro] == 1 || PlayerInfo[targetid][pLider] == 1)//PD Ranks
        {
            if(PlayerInfo[targetid][pCargo] == 1) { rtext = "Cadete"; }
            else if(PlayerInfo[targetid][pCargo] == 2) { rtext = "Cabo"; }
            else if(PlayerInfo[targetid][pCargo] == 3) { rtext = "Sargento"; }
            else if(PlayerInfo[targetid][pCargo] == 4) { rtext = "Tenente"; }
            else if(PlayerInfo[targetid][pCargo] == 5) { rtext = "Capitгo"; }
            else if(PlayerInfo[targetid][pCargo] == 6) { rtext = "Comandante"; }
            else { rtext = "Soldado"; }
        }
        if(PlayerInfo[targetid][pMembro] == 2 || PlayerInfo[targetid][pLider] == 2)//B.O.P.E Ranks
        {
            if(PlayerInfo[targetid][pCargo] == 1) { rtext = "Recruta"; }
            else if(PlayerInfo[targetid][pCargo] == 2) { rtext = "Soldado"; }
            else if(PlayerInfo[targetid][pCargo] == 3) { rtext = "Cabo"; }
            else if(PlayerInfo[targetid][pCargo] == 4) { rtext = "Sargento"; }
            else if(PlayerInfo[targetid][pCargo] == 5) { rtext = "Tenente"; }
            else if(PlayerInfo[targetid][pCargo] == 6) { rtext = "Capitгo"; }
            else { rtext = "Recruta"; }
        }
        if(PlayerInfo[targetid][pMembro] == 3 || PlayerInfo[targetid][pLider] == 3)//Exйrcito Ranks
        {
            if(PlayerInfo[targetid][pCargo] == 1) { rtext = "Soldado"; }
            else if(PlayerInfo[targetid][pCargo] == 2) { rtext = "Sargento"; }
            else if(PlayerInfo[targetid][pCargo] == 3) { rtext = "GATE"; }
            else if(PlayerInfo[targetid][pCargo] == 4) { rtext = "Major"; }
            else if(PlayerInfo[targetid][pCargo] == 5) { rtext = "Tenente Coronel"; }
            else if(PlayerInfo[targetid][pCargo] == 6) { rtext = "General"; }
            else { rtext = "Soldado"; }
        }
        if(PlayerInfo[targetid][pMembro] == 4 || PlayerInfo[targetid][pLider] == 4)//S.A.M.U Ranks
        {
            if(PlayerInfo[targetid][pCargo] == 1) { rtext = "Auxiliar de Enfermeiro"; }
            else if(PlayerInfo[targetid][pCargo] == 2) { rtext = "Enfermeiro"; }
            else if(PlayerInfo[targetid][pCargo] == 3) { rtext = "Mйdico"; }
            else if(PlayerInfo[targetid][pCargo] == 4) { rtext = "Doutor"; }
            else if(PlayerInfo[targetid][pCargo] == 5) { rtext = "Cirurgiao"; }
            else if(PlayerInfo[targetid][pCargo] == 6) { rtext = "Diretor Hospitalar"; }
            else { rtext = "Auxiliar de Enfermeiro"; }
        }
        if(PlayerInfo[targetid][pMembro] == 6 || PlayerInfo[targetid][pLider] == 6)//Hamas Ranks
        {
            if(PlayerInfo[targetid][pCargo] == 1) { rtext = "Homem-Bomba"; }
            else if(PlayerInfo[targetid][pCargo] == 2) { rtext = "Membro"; }
            else if(PlayerInfo[targetid][pCargo] == 3) { rtext = "Terrorista"; }
            else if(PlayerInfo[targetid][pCargo] == 4) { rtext = "Bombadeador"; }
            else if(PlayerInfo[targetid][pCargo] == 5) { rtext = "Sub-Chefe"; }
            else if(PlayerInfo[targetid][pCargo] == 6) { rtext = "Chefгo"; }
            else { rtext = "Homem-Bomba"; }
        }
        if(PlayerInfo[targetid][pMembro] == 7 || PlayerInfo[targetid][pLider] == 7)//Prefeito Ranks
        {
            if(PlayerInfo[targetid][pCargo] == 1) { rtext = "Motorista"; }
            else if(PlayerInfo[targetid][pCargo] == 2) { rtext = "Seguranзa"; }
            else if(PlayerInfo[targetid][pCargo] == 3) { rtext = "Agente Especial"; }
            else if(PlayerInfo[targetid][pCargo] == 4) { rtext = "Acessor"; }
            else if(PlayerInfo[targetid][pCargo] == 5) { rtext = "Vice-Prefeito"; }
            else if(PlayerInfo[targetid][pCargo] == 6) { rtext = "Prefeito"; }
            else { rtext = "Motorista"; }
        }
        if(PlayerInfo[targetid][pMembro] == 8 || PlayerInfo[targetid][pLider] == 8)//Hitman Ranks
        {
            if(PlayerInfo[targetid][pCargo] == 1) { rtext = "Matador"; }
            else if(PlayerInfo[targetid][pCargo] == 2) { rtext = "Assassino Frio"; }
            else if(PlayerInfo[targetid][pCargo] == 3) { rtext = "Agente"; }
            else if(PlayerInfo[targetid][pCargo] == 4) { rtext = "Agente Especial"; }
            else if(PlayerInfo[targetid][pCargo] == 5) { rtext = "Vice-Diretor"; }
            else if(PlayerInfo[targetid][pCargo] == 6) { rtext = "Diretor"; }
            else { rtext = "Matador"; }
        }
        if(PlayerInfo[targetid][pMembro] == 9 || PlayerInfo[targetid][pLider] == 9)//NR Ranks
        {
            if(PlayerInfo[targetid][pCargo] == 1) { rtext = "Humorista"; }
            else if(PlayerInfo[targetid][pCargo] == 2) { rtext = "Repуrter Local"; }
            else if(PlayerInfo[targetid][pCargo] == 3) { rtext = "Repуrter Nacional"; }
            else if(PlayerInfo[targetid][pCargo] == 4) { rtext = "Editor Local"; }
            else if(PlayerInfo[targetid][pCargo] == 5) { rtext = "Fotografo Paparazzi"; }
            else if(PlayerInfo[targetid][pCargo] == 6) { rtext = "Diretor de Produзгo"; }
            else { rtext = "Humorista"; }
        }
        if(PlayerInfo[targetid][pMembro] == 10 || PlayerInfo[targetid][pLider] == 10)//Taxi Company Ranks
        {
            if(PlayerInfo[targetid][pCargo] == 1) { rtext = "Taxista Em Treinamento"; }
            else if(PlayerInfo[targetid][pCargo] == 2) { rtext = "Taxista Novato"; }
            else if(PlayerInfo[targetid][pCargo] == 3) { rtext = "Taxista Experiente"; }
            else if(PlayerInfo[targetid][pCargo] == 4) { rtext = "Taxista Profissional"; }
            else if(PlayerInfo[targetid][pCargo] == 5) { rtext = "Sub-Chefe"; }
            else if(PlayerInfo[targetid][pCargo] == 6) { rtext = "Chefe"; }
            else { rtext = "Taxista Em Treinamento"; }
        }
        if(PlayerInfo[targetid][pMembro] == 14 || PlayerInfo[targetid][pLider] == 14 || PlayerInfo[targetid][pMembro] == 17
        || PlayerInfo[targetid][pLider] == 17 || PlayerInfo[targetid][pMembro] == 18 || PlayerInfo[targetid][pLider] == 18
        || PlayerInfo[targetid][pMembro] == 19 || PlayerInfo[targetid][pLider] == 19 || PlayerInfo[targetid][pMembro] == 20
        || PlayerInfo[targetid][pLider] == 20 || PlayerInfo[targetid][pMembro] == 21 || PlayerInfo[targetid][pLider] == 21)//GANG'S Ranks
        {
            if(PlayerInfo[targetid][pCargo] == 1) { rtext = "Novato"; }
            else if(PlayerInfo[targetid][pCargo] == 2) { rtext = "Membro"; }
            else if(PlayerInfo[targetid][pCargo] == 3) { rtext = "Fogueteiro"; }
            else if(PlayerInfo[targetid][pCargo] == 4) { rtext = "Capanga"; }
            else if(PlayerInfo[targetid][pCargo] == 5) { rtext = "Sub-Chefe"; }
            else if(PlayerInfo[targetid][pCargo] == 6) { rtext = "Chefгo"; }
            else { rtext = "Novato"; }
        }
        if(PlayerInfo[targetid][pMembro] == 15 || PlayerInfo[targetid][pLider] == 15)//AlQaeda Ranks
        {
            if(PlayerInfo[targetid][pCargo] == 1) { rtext = "Homem-Bomba"; }
            else if(PlayerInfo[targetid][pCargo] == 2) { rtext = "Membro"; }
            else if(PlayerInfo[targetid][pCargo] == 3) { rtext = "Terrorista"; }
            else if(PlayerInfo[targetid][pCargo] == 4) { rtext = "Bombardeador"; }
            else if(PlayerInfo[targetid][pCargo] == 5) { rtext = "Sub-Chefe"; }
            else if(PlayerInfo[targetid][pCargo] == 6) { rtext = "Chefгo"; }
            else { rtext = "Homem-Bomba"; }
        }
        if(PlayerInfo[targetid][pMembro] == 16 || PlayerInfo[targetid][pLider] == 16)//Policia Civil Ranks
        {
            if(PlayerInfo[targetid][pCargo] == 1) { rtext = "Novato"; }
            else if(PlayerInfo[targetid][pCargo] == 2) { rtext = "Agente Do G.O.E"; }
            else if(PlayerInfo[targetid][pCargo] == 3) { rtext = "Agente Do G.E.R"; }
            else if(PlayerInfo[targetid][pCargo] == 4) { rtext = "Atirador de Elite"; }
            else if(PlayerInfo[targetid][pCargo] == 5) { rtext = "Perito Criminal"; }
            else if(PlayerInfo[targetid][pCargo] == 6) { rtext = "Lнder"; }
            else { rtext = "Novato"; }
        }
        if(PlayerInfo[targetid][pMembro] == 13 || PlayerInfo[targetid][pLider] == 13
        || PlayerInfo[targetid][pMembro] == 12 || PlayerInfo[targetid][pLider] == 12)//Mбfias Ranks
        {
            if(PlayerInfo[targetid][pCargo] == 1) { rtext = "Novato"; }
            else if(PlayerInfo[targetid][pCargo] == 2) { rtext = "Membro"; }
            else if(PlayerInfo[targetid][pCargo] == 3) { rtext = "Associado"; }
            else if(PlayerInfo[targetid][pCargo] == 4) { rtext = "Braзo-Direito"; }
            else if(PlayerInfo[targetid][pCargo] == 5) { rtext = "Sub-Lider"; }
            else if(PlayerInfo[targetid][pCargo] == 6) { rtext = "Lнder"; }
            else { rtext = "Novato"; }
        }
        if(PlayerInfo[targetid][pMembro] == 11 || PlayerInfo[targetid][pLider] == 11)//PF Ranks
        {
            if(PlayerInfo[targetid][pCargo] == 1) { rtext = "Agente"; }
            else if(PlayerInfo[targetid][pCargo] == 2) { rtext = "Espiгo"; }
            else if(PlayerInfo[targetid][pCargo] == 3) { rtext = "Atirador"; }
            else if(PlayerInfo[targetid][pCargo] == 4) { rtext = "Capitгo"; }
            else if(PlayerInfo[targetid][pCargo] == 5) { rtext = "Sub Lider"; }
            else if(PlayerInfo[targetid][pCargo] == 6) { rtext = "Lнder"; }
            else { rtext = "Agente"; }
        }
        if(PlayerInfo[targetid][pMembro] == 23 || PlayerInfo[targetid][pLider] == 23)//FARC Ranks
        {
            if(PlayerInfo[targetid][pCargo] == 1) { rtext = "Homem-Bomba"; }
            else if(PlayerInfo[targetid][pCargo] == 2) { rtext = "Membro"; }
            else if(PlayerInfo[targetid][pCargo] == 3) { rtext = "Terrorista"; }
            else if(PlayerInfo[targetid][pCargo] == 4) { rtext = "Bombadeador"; }
            else if(PlayerInfo[targetid][pCargo] == 5) { rtext = "Sub-Chefe"; }
            else if(PlayerInfo[targetid][pCargo] == 6) { rtext = "Chefгo"; }
            else { rtext = "Homem-Bomba"; }
        }
        if(PlayerInfo[targetid][pMembro] == 21 || PlayerInfo[targetid][pLider] == 21)//Drift Ranks
        {
            if(PlayerInfo[targetid][pCargo] == 1) { rtext = "Drift Novato"; }
            else if(PlayerInfo[targetid][pCargo] == 2) { rtext = "Membro"; }
            else if(PlayerInfo[targetid][pCargo] == 3) { rtext = "Drift Intermediбrio"; }
            else if(PlayerInfo[targetid][pCargo] == 4) { rtext = "Drift Experiente"; }
            else if(PlayerInfo[targetid][pCargo] == 5) { rtext = "Sub Drift King"; }
            else if(PlayerInfo[targetid][pCargo] == 6) { rtext = "Drift King"; }
            else { rtext = "Drift Novato"; }
        }
        if(PlayerInfo[targetid][pMembro] == 22 || PlayerInfo[targetid][pLider] == 22)//Triads Ranks
        {
            if(PlayerInfo[targetid][pCargo] == 1) { rtext = "Matador"; }
            else if(PlayerInfo[targetid][pCargo] == 2) { rtext = "Assassino Frio"; }
            else if(PlayerInfo[targetid][pCargo] == 3) { rtext = "Agente"; }
            else if(PlayerInfo[targetid][pCargo] == 4) { rtext = "Agente Especial"; }
            else if(PlayerInfo[targetid][pCargo] == 5) { rtext = "Vice-Diretor"; }
            else if(PlayerInfo[targetid][pCargo] == 6) { rtext = "Diretor"; }
            else { rtext = "Matador"; }
        }
        else
        {
            rtext = "Nenhum";
        }
        new jtext[20];
        if(PlayerInfo[targetid][pEmprego] == 1) { jtext = "Detetive"; }
        else if(PlayerInfo[targetid][pEmprego] == 2) { jtext = "Advogado"; }
        else if(PlayerInfo[targetid][pEmprego] == 3) { jtext = "Prof. do Sexo"; }
        else if(PlayerInfo[targetid][pEmprego] == 4) { jtext = "Vendedor De Drogas"; }
        else if(PlayerInfo[targetid][pEmprego] == 5) { jtext = "Mecanico"; }
        else if(PlayerInfo[targetid][pEmprego] == 6) { jtext = "Seguranзa"; }
        else if(PlayerInfo[targetid][pEmprego] == 7) { jtext = "Vendedor De Armas"; }
        else if(PlayerInfo[targetid][pEmprego] == 8) { jtext = "Boxeador"; }
        else if(PlayerInfo[targetid][pEmprego] == 9) { jtext = "Motorista de Onibus"; }
        else if(PlayerInfo[targetid][pEmprego] == 10) { jtext = "Mendigo"; }
        else if(PlayerInfo[targetid][pEmprego] == 11) { jtext = "Caminhoneiro"; }
        else { jtext = "Nenhum"; }
        new drank[20];
        if(PlayerInfo[targetid][pVIP] == 0) { drank = "Gratis"; }
        else if(PlayerInfo[targetid][pVIP] == 1) { drank = "VIP"; }
        else if(PlayerInfo[targetid][pVIP] == 2) { drank = "VIP Premium"; }
        new thsocio[20];
        if(PlayerInfo[targetid][pSocio] == 0) { thsocio = "Nгo"; }
        else if(PlayerInfo[targetid][pSocio] == 1) { thsocio = "Sim"; }
        new nivelhelper[20];
        if(PlayerInfo[playerid][pHelper] >= 1 && PlayerInfo[playerid][pHelper] <= 60) { nivelhelper = "Novato"; }
        else if(PlayerInfo[playerid][pHelper] >= 61 && PlayerInfo[playerid][pHelper] <= 150) { nivelhelper = "Auxiliar"; }
        else if(PlayerInfo[playerid][pHelper] >= 151 && PlayerInfo[playerid][pHelper] <= 300) { nivelhelper = "Master"; }
        else if(PlayerInfo[playerid][pHelper] == 0) { nivelhelper = "Nenhum"; }
        new thcargo[20];
        if(PlayerInfo[targetid][pCargo] == 6) { thcargo = "Lнder"; }
        else if(PlayerInfo[targetid][pCargo] == 5) { thcargo = "Sub-Lнder"; }
        else if(PlayerInfo[targetid][pCargo] == 4) { thcargo = "4"; }
        else if(PlayerInfo[targetid][pCargo] == 5) { thcargo = "3"; }
        else if(PlayerInfo[targetid][pCargo] == 6) { thcargo = "2"; }
        else if(PlayerInfo[targetid][pCargo] == 1) { thcargo = "1"; }
        else { thcargo = "Nenhum"; }
        new married[20];
        strmid(married, PlayerInfo[targetid][pMarriedTo], 0, strlen(PlayerInfo[targetid][pMarriedTo]), 255);
//      new age = PlayerInfo[targetid][pAge];
        new ptime = PlayerInfo[targetid][pConnectTime];
        //new lotto = PlayerInfo[targetid][pLottoNr];
        new deaths = PlayerInfo[targetid][pDeaths];
        new fishes = PlayerInfo[targetid][pFishes];
        new bigfish = PlayerInfo[targetid][pBiggestFish];
        new crimes = PlayerInfo[targetid][pCrimes];
        new Drogas = PlayerInfo[targetid][pDrogas]; // maconha
        new Drogas2 = PlayerInfo[targetid][pDrogas2]; // cocaina
        new Drogas3 = PlayerInfo[targetid][pDrogas3]; // crack
        new SafeDrogas = PlayerInfo[targetid][pSafeDrogas]; // maconha
        new SafeDrogas2 = PlayerInfo[targetid][pSafeDrogas2]; // cocaina
        new SafeDrogas3 = PlayerInfo[targetid][pSafeDrogas3]; // crack
        new materiaisBML = PlayerInfo[targetid][pMats];
        new smats = PlayerInfo[targetid][psMats];
        //new wanted = WantedLevel[targetid];
        new level = PlayerInfo[targetid][pLevel];
        new exp = PlayerInfo[targetid][pExp];
        new kills = PlayerInfo[targetid][pKills];
        new pnumber = PlayerInfo[targetid][pPnumber];
        new Conta = PlayerInfo[targetid][pConta];
        new nxtlevel = PlayerInfo[targetid][pLevel]+1;
        new expquantidade = nxtlevel*levelexp;
        new costlevel = nxtlevel*levelcost;//10k for testing purposes
        new Housekey = PlayerInfo[targetid][pPHousekey];
        new bizkey = PlayerInfo[targetid][pPbiskey];
        new intir = PlayerInfo[targetid][pInt];
        new local = PlayerInfo[targetid][pLocal];
        new ChaveCarro = PlayerInfo[targetid][pCarKey];
        new ChaveCarro2 = PlayerInfo[targetid][pCarKey2];
        new Float:shealth = PlayerInfo[targetid][pSHealth];
        new Float:health;
        new creditos = PlayerInfo[targetid][pCreditos];
        new name[MAX_PLAYER_NAME];
        GetPlayerName(targetid, name, sizeof(name));
        GetPlayerHealth(targetid,health);
        new Float:px,Float:py,Float:pz;
        GetPlayerPos(targetid, px, py, pz);
        new RulesBox[2000];
        if(targetid == playerid)
        {}
        else
        {}
        format(RulesBox, sizeof(RulesBox),"%s | %s | ",RulesBox,name);
        SendClientMessage(playerid, -1, RulesBox);
        format(RulesBox, sizeof(RulesBox), "%s | Nivel:[%d] Sexo:[%s] Vida:[%.1f] Dinheiro:[R$%d] Banco:[R$%d] Celular:[%d] Crйditos:[%d] | ",RulesBox, level,atext,shealth+50, cash, Conta, pnumber,creditos);
        SendClientMessage(playerid, -1, RulesBox);
        format(RulesBox, sizeof(RulesBox), "%s | Conta:[%s] Casado Com:[%s] Horas Jogadas:[%d] Profissгo Secundaria:[%s] Socio:[%s] | ",RulesBox, drank,married,ptime,jtext,thsocio);
        SendClientMessage(playerid, -1, RulesBox);
        format(RulesBox, sizeof(RulesBox), "%s | Peixes:[%d] Maior Peixe:[%d] Crimes Cometidos:[%d] Matou:[%d] Morreu:[%d] | ",RulesBox, fishes,bigfish,crimes,kills,deaths );
        SendClientMessage(playerid, -1, RulesBox);
        format(RulesBox, sizeof(RulesBox), "%s | Prуximo Nivel:[R$%d] Respeito:[%d/%d] Doenзas:[%s] | ",RulesBox,costlevel,exp,expquantidade,dtext);
        SendClientMessage(playerid, -1, RulesBox);
        format(RulesBox, sizeof(RulesBox), "%s | Materiais:[%d] Safe Materiais:[%d] Organizaзгo:[%s] Cargo:[%s] Nнvel Helper:[%d] | ",RulesBox,materiaisBML,smats,NomeORG(targetid),thcargo, PlayerInfo[playerid][pHelper]);
        SendClientMessage(playerid, -1, RulesBox);
        format(RulesBox, sizeof(RulesBox), "%s | Maconha:[%d] Cocaina:[%d] Crack:[%d] Safe Maconha:[%d] Safe Cocaina:[%d] Safe Crack:[%d] | ",RulesBox,Drogas,Drogas2,Drogas3,SafeDrogas,SafeDrogas2,SafeDrogas3);
        SendClientMessage(playerid, -1, RulesBox);
        format(RulesBox, sizeof(RulesBox), "%s | Chave De Casa [%d] Chave Da Empresa [%d] Chave Do Carro(Aluguel) [%d] Interior:[%d] Local:[%d] | ",RulesBox, Housekey,bizkey,HireCar[targetid],intir,local);
        SendClientMessage(playerid, -1, RulesBox);
        format(RulesBox, sizeof(RulesBox), "%s | Veiculo 1[%d] Veiculo 2[%d] | ",RulesBox, ChaveCarro, ChaveCarro2);
        SendClientMessage(playerid, -1, RulesBox);
    }
}
Alguem sabe o que pode ser ?
Valeu


Re: Rg bugado - blacktrindade - 03.08.2012

nгo consegui ver a ss!!


AW: Rg bugado - billy the kid - 03.08.2012

ss bugada coloca outra.


Re: Rg bugado - LeMoi - 03.08.2012

Nem eu :S


Re: Rg bugado - Senhor_Azul - 03.08.2012

Reupei a ss xD


Respuesta: Rg bugado - Digao - 03.08.2012

O que seria o Bug? seria a mensagem " ============================= " ? explique melhor, nгo entendi


Re: Rg bugado - Senhor_Azul - 03.08.2012

Nao nao,esse ===================
eu coloquei pra separar,Em cima dele й o /rg
embaixo й o /mostrarrg.
Ele nao mostra todas as informaзхes,mostra sу as 2 primeiras linhas.


Respuesta: Rg bugado - Digao - 03.08.2012

tenta assim...

pawn Код:
public ShowStats(playerid,targetid)
{
    if(IsPlayerConnected(playerid)&&IsPlayerConnected(targetid))
    {
        new cash =  GetPlayerMoney(targetid);
        new atext[20];
        if(PlayerInfo[targetid][pSex] == 1) { atext = "Masculino"; }
        else if(PlayerInfo[targetid][pSex] == 2) { atext = "Feminino"; }
        new dtext[20];
        if(PlayerInfo[targetid][pDoenca] == 1) { dtext = "Mongolismo"; }
        else if(PlayerInfo[targetid][pDoenca] == 2) { dtext = "AIDS"; }
        else if(PlayerInfo[targetid][pDoenca] == 3) { dtext = "Herpes Genital"; }
        else if(PlayerInfo[targetid][pDoenca] == 4) { dtext = "Cirrose"; }
        else if(PlayerInfo[targetid][pDoenca] == 5) { dtext = "Cвncer de Pulmгo"; }
        else { dtext = "Nenhuma"; }
        new rtext[64];
        if(PlayerInfo[targetid][pMembro] == 1 || PlayerInfo[targetid][pLider] == 1)//PD Ranks
        {
            if(PlayerInfo[targetid][pCargo] == 1) { rtext = "Cadete"; }
            else if(PlayerInfo[targetid][pCargo] == 2) { rtext = "Cabo"; }
            else if(PlayerInfo[targetid][pCargo] == 3) { rtext = "Sargento"; }
            else if(PlayerInfo[targetid][pCargo] == 4) { rtext = "Tenente"; }
            else if(PlayerInfo[targetid][pCargo] == 5) { rtext = "Capitгo"; }
            else if(PlayerInfo[targetid][pCargo] == 6) { rtext = "Comandante"; }
            else { rtext = "Soldado"; }
        }
        if(PlayerInfo[targetid][pMembro] == 2 || PlayerInfo[targetid][pLider] == 2)//B.O.P.E Ranks
        {
            if(PlayerInfo[targetid][pCargo] == 1) { rtext = "Recruta"; }
            else if(PlayerInfo[targetid][pCargo] == 2) { rtext = "Soldado"; }
            else if(PlayerInfo[targetid][pCargo] == 3) { rtext = "Cabo"; }
            else if(PlayerInfo[targetid][pCargo] == 4) { rtext = "Sargento"; }
            else if(PlayerInfo[targetid][pCargo] == 5) { rtext = "Tenente"; }
            else if(PlayerInfo[targetid][pCargo] == 6) { rtext = "Capitгo"; }
            else { rtext = "Recruta"; }
        }
        if(PlayerInfo[targetid][pMembro] == 3 || PlayerInfo[targetid][pLider] == 3)//Exйrcito Ranks
        {
            if(PlayerInfo[targetid][pCargo] == 1) { rtext = "Soldado"; }
            else if(PlayerInfo[targetid][pCargo] == 2) { rtext = "Sargento"; }
            else if(PlayerInfo[targetid][pCargo] == 3) { rtext = "GATE"; }
            else if(PlayerInfo[targetid][pCargo] == 4) { rtext = "Major"; }
            else if(PlayerInfo[targetid][pCargo] == 5) { rtext = "Tenente Coronel"; }
            else if(PlayerInfo[targetid][pCargo] == 6) { rtext = "General"; }
            else { rtext = "Soldado"; }
        }
        if(PlayerInfo[targetid][pMembro] == 4 || PlayerInfo[targetid][pLider] == 4)//S.A.M.U Ranks
        {
            if(PlayerInfo[targetid][pCargo] == 1) { rtext = "Auxiliar de Enfermeiro"; }
            else if(PlayerInfo[targetid][pCargo] == 2) { rtext = "Enfermeiro"; }
            else if(PlayerInfo[targetid][pCargo] == 3) { rtext = "Mйdico"; }
            else if(PlayerInfo[targetid][pCargo] == 4) { rtext = "Doutor"; }
            else if(PlayerInfo[targetid][pCargo] == 5) { rtext = "Cirurgiao"; }
            else if(PlayerInfo[targetid][pCargo] == 6) { rtext = "Diretor Hospitalar"; }
            else { rtext = "Auxiliar de Enfermeiro"; }
        }
        if(PlayerInfo[targetid][pMembro] == 6 || PlayerInfo[targetid][pLider] == 6)//Hamas Ranks
        {
            if(PlayerInfo[targetid][pCargo] == 1) { rtext = "Homem-Bomba"; }
            else if(PlayerInfo[targetid][pCargo] == 2) { rtext = "Membro"; }
            else if(PlayerInfo[targetid][pCargo] == 3) { rtext = "Terrorista"; }
            else if(PlayerInfo[targetid][pCargo] == 4) { rtext = "Bombadeador"; }
            else if(PlayerInfo[targetid][pCargo] == 5) { rtext = "Sub-Chefe"; }
            else if(PlayerInfo[targetid][pCargo] == 6) { rtext = "Chefгo"; }
            else { rtext = "Homem-Bomba"; }
        }
        if(PlayerInfo[targetid][pMembro] == 7 || PlayerInfo[targetid][pLider] == 7)//Prefeito Ranks
        {
            if(PlayerInfo[targetid][pCargo] == 1) { rtext = "Motorista"; }
            else if(PlayerInfo[targetid][pCargo] == 2) { rtext = "Seguranзa"; }
            else if(PlayerInfo[targetid][pCargo] == 3) { rtext = "Agente Especial"; }
            else if(PlayerInfo[targetid][pCargo] == 4) { rtext = "Acessor"; }
            else if(PlayerInfo[targetid][pCargo] == 5) { rtext = "Vice-Prefeito"; }
            else if(PlayerInfo[targetid][pCargo] == 6) { rtext = "Prefeito"; }
            else { rtext = "Motorista"; }
        }
        if(PlayerInfo[targetid][pMembro] == 8 || PlayerInfo[targetid][pLider] == 8)//Hitman Ranks
        {
            if(PlayerInfo[targetid][pCargo] == 1) { rtext = "Matador"; }
            else if(PlayerInfo[targetid][pCargo] == 2) { rtext = "Assassino Frio"; }
            else if(PlayerInfo[targetid][pCargo] == 3) { rtext = "Agente"; }
            else if(PlayerInfo[targetid][pCargo] == 4) { rtext = "Agente Especial"; }
            else if(PlayerInfo[targetid][pCargo] == 5) { rtext = "Vice-Diretor"; }
            else if(PlayerInfo[targetid][pCargo] == 6) { rtext = "Diretor"; }
            else { rtext = "Matador"; }
        }
        if(PlayerInfo[targetid][pMembro] == 9 || PlayerInfo[targetid][pLider] == 9)//NR Ranks
        {
            if(PlayerInfo[targetid][pCargo] == 1) { rtext = "Humorista"; }
            else if(PlayerInfo[targetid][pCargo] == 2) { rtext = "Repуrter Local"; }
            else if(PlayerInfo[targetid][pCargo] == 3) { rtext = "Repуrter Nacional"; }
            else if(PlayerInfo[targetid][pCargo] == 4) { rtext = "Editor Local"; }
            else if(PlayerInfo[targetid][pCargo] == 5) { rtext = "Fotografo Paparazzi"; }
            else if(PlayerInfo[targetid][pCargo] == 6) { rtext = "Diretor de Produзгo"; }
            else { rtext = "Humorista"; }
        }
        if(PlayerInfo[targetid][pMembro] == 10 || PlayerInfo[targetid][pLider] == 10)//Taxi Company Ranks
        {
            if(PlayerInfo[targetid][pCargo] == 1) { rtext = "Taxista Em Treinamento"; }
            else if(PlayerInfo[targetid][pCargo] == 2) { rtext = "Taxista Novato"; }
            else if(PlayerInfo[targetid][pCargo] == 3) { rtext = "Taxista Experiente"; }
            else if(PlayerInfo[targetid][pCargo] == 4) { rtext = "Taxista Profissional"; }
            else if(PlayerInfo[targetid][pCargo] == 5) { rtext = "Sub-Chefe"; }
            else if(PlayerInfo[targetid][pCargo] == 6) { rtext = "Chefe"; }
            else { rtext = "Taxista Em Treinamento"; }
        }
        if(PlayerInfo[targetid][pMembro] == 14 || PlayerInfo[targetid][pLider] == 14 || PlayerInfo[targetid][pMembro] == 17
        || PlayerInfo[targetid][pLider] == 17 || PlayerInfo[targetid][pMembro] == 18 || PlayerInfo[targetid][pLider] == 18
        || PlayerInfo[targetid][pMembro] == 19 || PlayerInfo[targetid][pLider] == 19 || PlayerInfo[targetid][pMembro] == 20
        || PlayerInfo[targetid][pLider] == 20 || PlayerInfo[targetid][pMembro] == 21 || PlayerInfo[targetid][pLider] == 21)//GANG'S Ranks
        {
            if(PlayerInfo[targetid][pCargo] == 1) { rtext = "Novato"; }
            else if(PlayerInfo[targetid][pCargo] == 2) { rtext = "Membro"; }
            else if(PlayerInfo[targetid][pCargo] == 3) { rtext = "Fogueteiro"; }
            else if(PlayerInfo[targetid][pCargo] == 4) { rtext = "Capanga"; }
            else if(PlayerInfo[targetid][pCargo] == 5) { rtext = "Sub-Chefe"; }
            else if(PlayerInfo[targetid][pCargo] == 6) { rtext = "Chefгo"; }
            else { rtext = "Novato"; }
        }
        if(PlayerInfo[targetid][pMembro] == 15 || PlayerInfo[targetid][pLider] == 15)//AlQaeda Ranks
        {
            if(PlayerInfo[targetid][pCargo] == 1) { rtext = "Homem-Bomba"; }
            else if(PlayerInfo[targetid][pCargo] == 2) { rtext = "Membro"; }
            else if(PlayerInfo[targetid][pCargo] == 3) { rtext = "Terrorista"; }
            else if(PlayerInfo[targetid][pCargo] == 4) { rtext = "Bombardeador"; }
            else if(PlayerInfo[targetid][pCargo] == 5) { rtext = "Sub-Chefe"; }
            else if(PlayerInfo[targetid][pCargo] == 6) { rtext = "Chefгo"; }
            else { rtext = "Homem-Bomba"; }
        }
        if(PlayerInfo[targetid][pMembro] == 16 || PlayerInfo[targetid][pLider] == 16)//Policia Civil Ranks
        {
            if(PlayerInfo[targetid][pCargo] == 1) { rtext = "Novato"; }
            else if(PlayerInfo[targetid][pCargo] == 2) { rtext = "Agente Do G.O.E"; }
            else if(PlayerInfo[targetid][pCargo] == 3) { rtext = "Agente Do G.E.R"; }
            else if(PlayerInfo[targetid][pCargo] == 4) { rtext = "Atirador de Elite"; }
            else if(PlayerInfo[targetid][pCargo] == 5) { rtext = "Perito Criminal"; }
            else if(PlayerInfo[targetid][pCargo] == 6) { rtext = "Lнder"; }
            else { rtext = "Novato"; }
        }
        if(PlayerInfo[targetid][pMembro] == 13 || PlayerInfo[targetid][pLider] == 13
        || PlayerInfo[targetid][pMembro] == 12 || PlayerInfo[targetid][pLider] == 12)//Mбfias Ranks
        {
            if(PlayerInfo[targetid][pCargo] == 1) { rtext = "Novato"; }
            else if(PlayerInfo[targetid][pCargo] == 2) { rtext = "Membro"; }
            else if(PlayerInfo[targetid][pCargo] == 3) { rtext = "Associado"; }
            else if(PlayerInfo[targetid][pCargo] == 4) { rtext = "Braзo-Direito"; }
            else if(PlayerInfo[targetid][pCargo] == 5) { rtext = "Sub-Lider"; }
            else if(PlayerInfo[targetid][pCargo] == 6) { rtext = "Lнder"; }
            else { rtext = "Novato"; }
        }
        if(PlayerInfo[targetid][pMembro] == 11 || PlayerInfo[targetid][pLider] == 11)//PF Ranks
        {
            if(PlayerInfo[targetid][pCargo] == 1) { rtext = "Agente"; }
            else if(PlayerInfo[targetid][pCargo] == 2) { rtext = "Espiгo"; }
            else if(PlayerInfo[targetid][pCargo] == 3) { rtext = "Atirador"; }
            else if(PlayerInfo[targetid][pCargo] == 4) { rtext = "Capitгo"; }
            else if(PlayerInfo[targetid][pCargo] == 5) { rtext = "Sub Lider"; }
            else if(PlayerInfo[targetid][pCargo] == 6) { rtext = "Lнder"; }
            else { rtext = "Agente"; }
        }
        if(PlayerInfo[targetid][pMembro] == 23 || PlayerInfo[targetid][pLider] == 23)//FARC Ranks
        {
            if(PlayerInfo[targetid][pCargo] == 1) { rtext = "Homem-Bomba"; }
            else if(PlayerInfo[targetid][pCargo] == 2) { rtext = "Membro"; }
            else if(PlayerInfo[targetid][pCargo] == 3) { rtext = "Terrorista"; }
            else if(PlayerInfo[targetid][pCargo] == 4) { rtext = "Bombadeador"; }
            else if(PlayerInfo[targetid][pCargo] == 5) { rtext = "Sub-Chefe"; }
            else if(PlayerInfo[targetid][pCargo] == 6) { rtext = "Chefгo"; }
            else { rtext = "Homem-Bomba"; }
        }
        if(PlayerInfo[targetid][pMembro] == 21 || PlayerInfo[targetid][pLider] == 21)//Drift Ranks
        {
            if(PlayerInfo[targetid][pCargo] == 1) { rtext = "Drift Novato"; }
            else if(PlayerInfo[targetid][pCargo] == 2) { rtext = "Membro"; }
            else if(PlayerInfo[targetid][pCargo] == 3) { rtext = "Drift Intermediбrio"; }
            else if(PlayerInfo[targetid][pCargo] == 4) { rtext = "Drift Experiente"; }
            else if(PlayerInfo[targetid][pCargo] == 5) { rtext = "Sub Drift King"; }
            else if(PlayerInfo[targetid][pCargo] == 6) { rtext = "Drift King"; }
            else { rtext = "Drift Novato"; }
        }
        if(PlayerInfo[targetid][pMembro] == 22 || PlayerInfo[targetid][pLider] == 22)//Triads Ranks
        {
            if(PlayerInfo[targetid][pCargo] == 1) { rtext = "Matador"; }
            else if(PlayerInfo[targetid][pCargo] == 2) { rtext = "Assassino Frio"; }
            else if(PlayerInfo[targetid][pCargo] == 3) { rtext = "Agente"; }
            else if(PlayerInfo[targetid][pCargo] == 4) { rtext = "Agente Especial"; }
            else if(PlayerInfo[targetid][pCargo] == 5) { rtext = "Vice-Diretor"; }
            else if(PlayerInfo[targetid][pCargo] == 6) { rtext = "Diretor"; }
            else { rtext = "Matador"; }
        }
        else
        {
            rtext = "Nenhum";
        }
        new jtext[20];
        if(PlayerInfo[targetid][pEmprego] == 1) { jtext = "Detetive"; }
        else if(PlayerInfo[targetid][pEmprego] == 2) { jtext = "Advogado"; }
        else if(PlayerInfo[targetid][pEmprego] == 3) { jtext = "Prof. do Sexo"; }
        else if(PlayerInfo[targetid][pEmprego] == 4) { jtext = "Vendedor De Drogas"; }
        else if(PlayerInfo[targetid][pEmprego] == 5) { jtext = "Mecanico"; }
        else if(PlayerInfo[targetid][pEmprego] == 6) { jtext = "Seguranзa"; }
        else if(PlayerInfo[targetid][pEmprego] == 7) { jtext = "Vendedor De Armas"; }
        else if(PlayerInfo[targetid][pEmprego] == 8) { jtext = "Boxeador"; }
        else if(PlayerInfo[targetid][pEmprego] == 9) { jtext = "Motorista de Onibus"; }
        else if(PlayerInfo[targetid][pEmprego] == 10) { jtext = "Mendigo"; }
        else if(PlayerInfo[targetid][pEmprego] == 11) { jtext = "Caminhoneiro"; }
        else { jtext = "Nenhum"; }
        new drank[20];
        if(PlayerInfo[targetid][pVIP] == 0) { drank = "Gratis"; }
        else if(PlayerInfo[targetid][pVIP] == 1) { drank = "VIP"; }
        else if(PlayerInfo[targetid][pVIP] == 2) { drank = "VIP Premium"; }
        new thsocio[20];
        if(PlayerInfo[targetid][pSocio] == 0) { thsocio = "Nгo"; }
        else if(PlayerInfo[targetid][pSocio] == 1) { thsocio = "Sim"; }
        new nivelhelper[20];
        if(PlayerInfo[playerid][pHelper] >= 1 && PlayerInfo[playerid][pHelper] <= 60) { nivelhelper = "Novato"; }
        else if(PlayerInfo[playerid][pHelper] >= 61 && PlayerInfo[playerid][pHelper] <= 150) { nivelhelper = "Auxiliar"; }
        else if(PlayerInfo[playerid][pHelper] >= 151 && PlayerInfo[playerid][pHelper] <= 300) { nivelhelper = "Master"; }
        else if(PlayerInfo[playerid][pHelper] == 0) { nivelhelper = "Nenhum"; }
        new thcargo[20];
        if(PlayerInfo[targetid][pCargo] == 6) { thcargo = "Lнder"; }
        else if(PlayerInfo[targetid][pCargo] == 5) { thcargo = "Sub-Lнder"; }
        else if(PlayerInfo[targetid][pCargo] == 4) { thcargo = "4"; }
        else if(PlayerInfo[targetid][pCargo] == 5) { thcargo = "3"; }
        else if(PlayerInfo[targetid][pCargo] == 6) { thcargo = "2"; }
        else if(PlayerInfo[targetid][pCargo] == 1) { thcargo = "1"; }
        else { thcargo = "Nenhum"; }
        new married[20];
        strmid(married, PlayerInfo[targetid][pMarriedTo], 0, strlen(PlayerInfo[targetid][pMarriedTo]), 255);
//      new age = PlayerInfo[targetid][pAge];
        new ptime = PlayerInfo[targetid][pConnectTime];
        //new lotto = PlayerInfo[targetid][pLottoNr];
        new deaths = PlayerInfo[targetid][pDeaths];
        new fishes = PlayerInfo[targetid][pFishes];
        new bigfish = PlayerInfo[targetid][pBiggestFish];
        new crimes = PlayerInfo[targetid][pCrimes];
        new Drogas = PlayerInfo[targetid][pDrogas]; // maconha
        new Drogas2 = PlayerInfo[targetid][pDrogas2]; // cocaina
        new Drogas3 = PlayerInfo[targetid][pDrogas3]; // crack
        new SafeDrogas = PlayerInfo[targetid][pSafeDrogas]; // maconha
        new SafeDrogas2 = PlayerInfo[targetid][pSafeDrogas2]; // cocaina
        new SafeDrogas3 = PlayerInfo[targetid][pSafeDrogas3]; // crack
        new materiaisBML = PlayerInfo[targetid][pMats];
        new smats = PlayerInfo[targetid][psMats];
        //new wanted = WantedLevel[targetid];
        new level = PlayerInfo[targetid][pLevel];
        new exp = PlayerInfo[targetid][pExp];
        new kills = PlayerInfo[targetid][pKills];
        new pnumber = PlayerInfo[targetid][pPnumber];
        new Conta = PlayerInfo[targetid][pConta];
        new nxtlevel = PlayerInfo[targetid][pLevel]+1;
        new expquantidade = nxtlevel*levelexp;
        new costlevel = nxtlevel*levelcost;//10k for testing purposes
        new Housekey = PlayerInfo[targetid][pPHousekey];
        new bizkey = PlayerInfo[targetid][pPbiskey];
        new intir = PlayerInfo[targetid][pInt];
        new local = PlayerInfo[targetid][pLocal];
        new ChaveCarro = PlayerInfo[targetid][pCarKey];
        new ChaveCarro2 = PlayerInfo[targetid][pCarKey2];
        new Float:shealth = PlayerInfo[targetid][pSHealth];
        new Float:health;
        new creditos = PlayerInfo[targetid][pCreditos];
        new name[MAX_PLAYER_NAME];
        GetPlayerName(targetid, name, sizeof(name));
        GetPlayerHealth(targetid,health);
        new Float:px,Float:py,Float:pz;
        GetPlayerPos(targetid, px, py, pz);
        new RulesBox[2000];
        if(targetid == playerid)
        {}
        else
        {}
        format(RulesBox, sizeof(RulesBox),"| %s | ",name);
        SendClientMessage(playerid, -1, RulesBox);
        format(RulesBox, sizeof(RulesBox), "%s | Nivel:[%d] Sexo:[%s] Vida:[%.1f] Dinheiro:[R$%d] Banco:[R$%d] Celular:[%d] Crйditos:[%d] | ",name, level,atext,shealth+50, cash, Conta, pnumber,creditos);
        SendClientMessage(playerid, -1, RulesBox);
        format(RulesBox, sizeof(RulesBox), "%s | Conta:[%s] Casado Com:[%s] Horas Jogadas:[%d] Profissгo Secundaria:[%s] Socio:[%s] | ",name, drank,married,ptime,jtext,thsocio);
        SendClientMessage(playerid, -1, RulesBox);
        format(RulesBox, sizeof(RulesBox), "%s | Peixes:[%d] Maior Peixe:[%d] Crimes Cometidos:[%d] Matou:[%d] Morreu:[%d] | ",name, fishes,bigfish,crimes,kills,deaths );
        SendClientMessage(playerid, -1, RulesBox);
        format(RulesBox, sizeof(RulesBox), "%s | Prуximo Nivel:[R$%d] Respeito:[%d/%d] Doenзas:[%s] | ",name,costlevel,exp,expquantidade,dtext);
        SendClientMessage(playerid, -1, RulesBox);
        format(RulesBox, sizeof(RulesBox), "%s | Materiais:[%d] Safe Materiais:[%d] Organizaзгo:[%s] Cargo:[%s] Nнvel Helper:[%d] | ",name,materiaisBML,smats,NomeORG(targetid),thcargo, PlayerInfo[playerid][pHelper]);
        SendClientMessage(playerid, -1, RulesBox);
        format(RulesBox, sizeof(RulesBox), "%s | Maconha:[%d] Cocaina:[%d] Crack:[%d] Safe Maconha:[%d] Safe Cocaina:[%d] Safe Crack:[%d] | ",name,Drogas,Drogas2,Drogas3,SafeDrogas,SafeDrogas2,SafeDrogas3);
        SendClientMessage(playerid, -1, RulesBox);
        format(RulesBox, sizeof(RulesBox), "%s | Chave De Casa [%d] Chave Da Empresa [%d] Chave Do Carro(Aluguel) [%d] Interior:[%d] Local:[%d] | ",name, Housekey,bizkey,HireCar[targetid],intir,local);
        SendClientMessage(playerid, -1, RulesBox);
        format(RulesBox, sizeof(RulesBox), "%s | Veiculo 1[%d] Veiculo 2[%d] | ",name, ChaveCarro, ChaveCarro2);
        SendClientMessage(playerid, -1, RulesBox);
    }
}
obs: pra que 2000?

pawn Код:
new RulesBox[2000];
xau


Respuesta: Rg bugado - Digao - 03.08.2012

@edit

bug do navegador


Re: Rg bugado - Senhor_Azul - 03.08.2012

Funciono,valeu ae +rep
axo q digitei um zero a mais kkk