Jump to content
  • 0

[ERROR] unfinished string , ranking quest .



i'm facing an error with this quest ,,

( unfinished string )

quest top10players begin
    state start begin
		when 20355.chat." ÊÑÊíÈ ÇááÇÚÈíä " begin
			local query=[[
			SELECT player.player.name as m_name, player.player.level as m_level, player.player.exp as m_exp
			FROM player.player, account.account
				player.player.name not like '[%]%' AND
				date_sub(now(), interval 1 day) < player.player.last_play AND
				player.player.account_id=account.account.id AND
			ORDER BY player.player.level DESC, player.player.exp DESC, player.player.name ASC
			LIMIT 10;

			function escape_sqli(source)
				local replacements = { ['"'] = '\\"', ["'"] = "\\'" }
				return source:gsub( "['\"]", replacements ) 
			local query=escape_sqli(query)
			local res1, res2 = mysql_direct_query(query)
			say_title("ÇÚáì "..res1.." áÇÚÈíä.")
			for num1, str1 in ipairs(res2) do

help will be apprenticed

Link to comment
Share on other sites

  • Answers 0
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.