Jump to content
LeyendasMt2

Alguien me puede corregir ^^

Recommended Posts

hola , pues resulta que esta quest tan basica deberia sumar 1 por cada vez que mate pero me suma 2 :pokerface:

 

quest killgui begin
    state start begin
  when 9009.chat."Ranking PvP de los Mas Asesinos" begin
   local pvp= mysql_query("SELECT name,kills FROM player.player ORDER BY kills desc LIMIT 10;")
   table.foreachi(pvp,function(nr,player) say(nr.." Jugador: "..player[1].." Kills: "..player[2]) end)
  end
	    when kill begin
		    if npc.is_pc() then
  mysql_query("UPDATE player.player SET kills=kills+1 WHERE name='"..pc.get_name().."';")
		    end
	    end 
    end
end

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...