Jump to content
  • 0

Ranking não registra, acredito que seja problema na tabela sql


mephianse

Question


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  1
  • Reputation:   0
  • Joined:  10/09/14
  • Last Seen:  

bom dia tenho esse script pvp porem não está contabilizando o ranking com a tabela sql.. se alguem puder me ajudar

prontera,155,188,3    script    Arena    801,{

    mes "[Arena PvP]";
    mes "Olá "+strcharinfo(0)+", Em que posso ajuda-lo?";
    menu "Arena PvP ^FFA500("+getmapusers("guild_vs3")+")^000000",PvP,"Arena GvG ^FFA500("+getmapusers("guild_vs4")+")^000000",GvG,"Ranking",Rank,"Sair",-;
close;

PvP:
    next;
    mes "[Arena PvP]";
    mes "Faça uma boa viagem!";
    next;
    Announce "O jogador ["+strcharinfo(0)+"] Entrou na Arena PvP!",bc_blue;
    warp "guild_vs3",0,0;
close;

GvG:
    next;
    mes "[Arena GvG]";
    if(getcharid(2) == 0) { mes @nome$; mes "Eu não posso ajudá-lo, você não possui uma guild."; close;}
    mes "Faça uma boa viagem!";
    next;
    Announce "O jogador ["+strcharinfo(0)+"] Entrou na Arena GvG!",bc_blue;
    warp "guild_vs4",0,0;
close;

Rank:
    next;
    mes @nome$;
    mes "Gostaria de ver o Ranking?";
    next;
    switch(select("- ^FFA500Ranking de PvP ^000000","Sair"))
    {
 
    case 1:
 
        next;
        query_sql "SELECT name, kills, deaths FROM pvp ORDER BY kills DESC LIMIT 10",@name$,@kills,@deaths;
        dispbottom "Ranking PvP [TOP 10]";
        dispbottom " ";
        dispbottom "Posição / Nome / Matou / Morreu";
        dispbottom " ";
        for(set @i,0;@i<=9;set @i,@i+1) {
            dispbottom "["+(@i+1)+"] < > "+@name$[@i]+" < > "+@kills[@i]+" < > "+@deaths[@i]+"";
        }
        close;
 
    case 3:
        mes @nome$;
        mes "Volte quando quiser";
        close;
        }
}
    
guild_vs3    mapflag    nowarpto
guild_vs3    mapflag    nowarp
guild_vs3    mapflag    nogo
guild_vs3    mapflag    nopenalty
guild_vs3    mapflag    nosave    SavePoint
guild_vs3    mapflag    nobranch
guild_vs3    mapflag    pvp
guild_vs3    mapflag    gvg    off
guild_vs3    mapflag    noteleport
guild_vs4    mapflag    nowarpto
guild_vs4    mapflag    nowarp
guild_vs4    mapflag    nogo
guild_vs4    mapflag    nopenalty
guild_vs4    mapflag    nosave    SavePoint
guild_vs4    mapflag    nobranch
guild_vs4    mapflag    gvg on
guild_vs4    mapflag    noteleport

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Forum Moderator
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  898
  • Reputation:   119
  • Joined:  05/23/12
  • Last Seen:  

Please write in english or post on Portuguese sub-forum.

Por favor, escreva em inglês ou poste no sub-fórum em português.

 

He wrote: "Good morning, I have this PvP script, but it's not counting the ranking with the SQL table... If someone could help me"

 

In the script u send is nothing related to the database. Does the DB exist? And where is the OnPCKillEvent and OnPCDieEvent label to update the DB?

No script que você enviou, não há nada relacionado ao banco de dados. O banco de dados existe? E onde está o rótulo OnPCKillEvent e OnPCDieEvent para atualizar o banco de dados?

 

Rynbef~

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...