[Pedido] /RG
#1

Quando digita /RG aparece tudo normal , aparece a ORG do player , mais nгo mostra o cargo .

pawn Код:
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 ChaveCarro3 = PlayerInfo[targetid][pCarKey3];
        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);
        if(targetid == playerid)
        {
            SCM(playerid, COLOR_WHITE, "|______________ Seus Documentos ______________|");
        }
        else
        {
            format(gstring, sizeof(gstring),"|______________ Documentos de %s ______________|",name);
            SCM(playerid, COLOR_WHITE,gstring);
        }
        format(gstring, sizeof(gstring), "Nivel:[%d] Sexo:[%s] Vida:[%.1f] Dinheiro:[R$%d] Banco:[R$%d] Celular:[%d] Crйditos:[%d]", level,atext,shealth+50, cash, Conta, pnumber,creditos);
        SCM(playerid, AN_COLOR,gstring);
        format(gstring, sizeof(gstring), "Conta:[%s] Casado Com:[%s] Horas Jogadas:[%d] Profissгo Secundaria:[%s]", drank,married,ptime,jtext);
        SCM(playerid, AN_COLOR,gstring);
        format(gstring, sizeof(gstring), "Peixes:[%d] Maior Peixe:[%d] Crimes Cometidos:[%d] Matou:[%d] Morreu:[%d]", fishes,bigfish,crimes,kills,deaths );
        SCM(playerid, AN_COLOR,gstring);
        format(gstring, sizeof(gstring), "Prуximo Nivel:[R$%d] Respeito:[%d/%d] Doenзas:[%s] ",costlevel,exp,expquantidade,dtext);
        SCM(playerid, AN_COLOR,gstring);
        format(gstring, sizeof(gstring), "Materiais:[%d] Safe Materiais:[%d] Organizaзгo:[%s] Cargo:[%d]",mats,smats,NomeORG(playerid),pCargo,rtext);
        SCM(playerid, AN_COLOR,gstring);
        format(gstring, sizeof(gstring), "Maconha:[%d] Cocaina:[%d] Crack:[%d] Safe Maconha:[%d] Safe Cocaina:[%d] Safe Crack:[%d]",Drogas,Drogas2,Drogas3,SafeDrogas,SafeDrogas2,SafeDrogas3);
        SCM(playerid, AN_COLOR,gstring);
        format(gstring, sizeof(gstring), "Chave De Casa [%d] Chave Da Empresa [%d] Chave Do Carro(Aluguel) [%d] Interior:[%d] Local:[%d]", Housekey,bizkey,HireCar[targetid],intir,local);
        SCM(playerid, AN_COLOR,gstring);
        format(gstring, sizeof(gstring), "Veiculo 1[%d] Veiculo 2[%d] Veiculo 3[%d]", ChaveCarro, ChaveCarro2, ChaveCarro3);
        SCM(playerid, AN_COLOR,gstring);
Reply
#2

pawn Код:
new pCargo = PlayerInfo[targetid][pCargo]; //Substitua PlayerInfo[targetid][pCargo]; pela variбvel que aloca o cargo do player.
        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 ChaveCarro3 = PlayerInfo[targetid][pCarKey3];
        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);
        if(targetid == playerid)
        {
            SCM(playerid, COLOR_WHITE, "|______________ Seus Documentos ______________|");
        }
        else
        {
            format(gstring, sizeof(gstring),"|______________ Documentos de %s ______________|",name);
            SCM(playerid, COLOR_WHITE,gstring);
        }
        format(gstring, sizeof(gstring), "Nivel:[%d] Sexo:[%s] Vida:[%.1f] Dinheiro:[R$%d] Banco:[R$%d] Celular:[%d] Crйditos:[%d]", level,atext,shealth+50, cash, Conta, pnumber,creditos);
        SCM(playerid, AN_COLOR,gstring);
        format(gstring, sizeof(gstring), "Conta:[%s] Casado Com:[%s] Horas Jogadas:[%d] Profissгo Secundaria:[%s]", drank,married,ptime,jtext);
        SCM(playerid, AN_COLOR,gstring);
        format(gstring, sizeof(gstring), "Peixes:[%d] Maior Peixe:[%d] Crimes Cometidos:[%d] Matou:[%d] Morreu:[%d]", fishes,bigfish,crimes,kills,deaths );
        SCM(playerid, AN_COLOR,gstring);
        format(gstring, sizeof(gstring), "Prуximo Nivel:[R$%d] Respeito:[%d/%d] Doenзas:[%s] ",costlevel,exp,expquantidade,dtext);
        SCM(playerid, AN_COLOR,gstring);
        format(gstring, sizeof(gstring), "Materiais:[%d] Safe Materiais:[%d] Organizaзгo:[%s] Cargo:[%d]",mats,smats,NomeORG(playerid),pCargo,rtext);
        SCM(playerid, AN_COLOR,gstring);
        format(gstring, sizeof(gstring), "Maconha:[%d] Cocaina:[%d] Crack:[%d] Safe Maconha:[%d] Safe Cocaina:[%d] Safe Crack:[%d]",Drogas,Drogas2,Drogas3,SafeDrogas,SafeDrogas2,SafeDrogas3);
        SCM(playerid, AN_COLOR,gstring);
        format(gstring, sizeof(gstring), "Chave De Casa [%d] Chave Da Empresa [%d] Chave Do Carro(Aluguel) [%d] Interior:[%d] Local:[%d]", Housekey,bizkey,HireCar[targetid],intir,local);
        SCM(playerid, AN_COLOR,gstring);
        format(gstring, sizeof(gstring), "Veiculo 1[%d] Veiculo 2[%d] Veiculo 3[%d]", ChaveCarro, ChaveCarro2, ChaveCarro3);
        SCM(playerid, AN_COLOR,gstring);
Reply
#3

Tenta assim!

pawn Код:
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 ChaveCarro3 = PlayerInfo[targetid][pCarKey3];
        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);
        if(targetid == playerid)
        {
            SCM(playerid, COLOR_WHITE, "|______________ Seus Documentos ______________|");
        }
        else
        {
            format(gstring, sizeof(gstring),"|______________ Documentos de %s ______________|",name);
            SCM(playerid, COLOR_WHITE,gstring);
        }
        format(gstring, sizeof(gstring), "Nivel:[%d] Sexo:[%s] Vida:[%.1f] Dinheiro:[R$%d] Banco:[R$%d] Celular:[%d] Crйditos:[%d]", level,atext,shealth+50, cash, Conta, pnumber,creditos);
        SCM(playerid, AN_COLOR,gstring);
        format(gstring, sizeof(gstring), "Conta:[%s] Casado Com:[%s] Horas Jogadas:[%d] Profissгo Secundaria:[%s]", drank,married,ptime,jtext);
        SCM(playerid, AN_COLOR,gstring);
        format(gstring, sizeof(gstring), "Peixes:[%d] Maior Peixe:[%d] Crimes Cometidos:[%d] Matou:[%d] Morreu:[%d]", fishes,bigfish,crimes,kills,deaths );
        SCM(playerid, AN_COLOR,gstring);
        format(gstring, sizeof(gstring), "Prуximo Nivel:[R$%d] Respeito:[%d/%d] Doenзas:[%s] ",costlevel,exp,expquantidade,dtext);
        SCM(playerid, AN_COLOR,gstring);
        format(gstring, sizeof(gstring), "Materiais:[%d] Safe Materiais:[%d] Organizaзгo:[%s] Cargo:[%d]",mats,smats,NomeORG(playerid),rtext);
        SCM(playerid, AN_COLOR,gstring);
        format(gstring, sizeof(gstring), "Maconha:[%d] Cocaina:[%d] Crack:[%d] Safe Maconha:[%d] Safe Cocaina:[%d] Safe Crack:[%d]",Drogas,Drogas2,Drogas3,SafeDrogas,SafeDrogas2,SafeDrogas3);
        SCM(playerid, AN_COLOR,gstring);
        format(gstring, sizeof(gstring), "Chave De Casa [%d] Chave Da Empresa [%d] Chave Do Carro(Aluguel) [%d] Interior:[%d] Local:[%d]", Housekey,bizkey,HireCar[targetid],intir,local);
        SCM(playerid, AN_COLOR,gstring);
        format(gstring, sizeof(gstring), "Veiculo 1[%d] Veiculo 2[%d] Veiculo 3[%d]", ChaveCarro, ChaveCarro2, ChaveCarro3);
        SCM(playerid, AN_COLOR,gstring);
Porйm tem de definir o rtext;
Exemplo:

pawn Код:
new rtext[64];
        if(PlayerInfo[targetid][pMembro] == 1 || PlayerInfo[targetid][pLider] == 1)
        {
            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"; }
        }
Reply
#4

Funcionou Josma_cmd , + rep aos dois .
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)