Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server
You last visited: Today at 18:48

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Problem with MySql Quest Conection.

Discussion on Problem with MySql Quest Conection. within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jun 2012
Posts: 11
Received Thanks: 4
Problem with MySql Quest Conection.

Hi guys, today when i'm starting the new dedicated, when i use the ingame ranking, i saw that did not work, and in the putty appeared the error:
Code:
 ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '=SELECT name, level,pvp_puntos_noguerra FROM player.player WHERE name not like '' at line 1
In my Vbox server, the system runs :! i use the mijago mysql_query system:
Code:
mysql_query = function(query)
    local rt = io.open('CONFIG','r'):read('*all')
    local pre= string.gsub(rt,'.+PLAYER_SQL:%s(%S+)%s(%S+)%s(%S+)%s(%S+).+','-h%1 -u%2 -p%3 -D%4')
    math.randomseed(os.time())
    local fi,t,out = 'mysql_data_'..math.random(10^9)+math.random(2^4,2^10),{},{}
    os.execute('mysql '..pre..' -e='..string.format('%q',query)..' > '..fi)   
    for av in io.open(fi,'r'):lines() do table.insert(t,split(av,'\t')) end; os.remove(fi);
    for i = 2, table.getn(t) do table.foreach(t[i],function(a,b)
            out[i-1]        = out[i-1] or {}
            out[i-1][a]     = b
            out[t[1][a]]    = out[t[1][a]] or {}
            out[t[1][a]][i-1]    = b
    end) end
    return out
end
And the MySql version are: 5.5.32.

PD, the quest is this:
Code:
quest rank begin
	state start begin
		when 20351.chat."Rankin" begin
			local sel=mysql_query("select name, level,exp from player.player WHERE name not like '[%' ORDER BY LEVEL desc LIMIT 15;")
			say_lightblue(" #   | Name | Level | Exp.")
			table.foreachi(sel,function(i,l)
			say_blue("# "..i.."  |  "..l[1].."  |  Lv."..l[2].."  |  "..l[3])
			end)
		end
	end
end
No generate syserr errors.

Does anyone know how you can fix this error?
Greetings!.

Anyone?
pepineitor is offline  
Reply

Tags
mysql connection problem


Similar Threads Similar Threads
Problem beim ausführen von MySQL in quest
04/16/2013 - Metin2 Private Server - 8 Replies
hallo, ich habe folgendes problem, jedes mal wenn ich in einer quest ne mysql querry ausführen lasse, downt es den entsprechenden core auf der ich die quest benutze. Infos: Aktuellste Questlib von Mijago installiert MySQL Schnittstelle von Hanashi installiert Game2089 Rev Aktuellste DB Core
MySQL <=> Quest abfrage Problem
04/03/2013 - Metin2 Private Server - 12 Replies
Moin, Ich habe ein kleines Problem mit meiner Quest, und zwar wollte ich mit Hilfe einer mysql_query - Abfrage die Coins eines Accounts auslesen, nur leider klappt es nicht ganz... Hier mal der ausschnitt der Quest: elseif f==3 then say_title("Lagerverwalter:") say("Gebe nun den Spielernamen ein.") local name_of_char_to_check_coins = input()
Problem mit meiner Quest (MySQL)
12/25/2012 - Metin2 Private Server - 4 Replies
Guten Morgen , also mein Problem ist das ich eine Quest auf meinem Testserver (Hamachi) geschrieben habe dort ging sie auch. Nur wenn ich die jetzt auf meinem Root einsetzen will geht sie nicht. Questlib von Mijago ist drinnen. An der Query ist nichts Falsch nur der Server will einfach nichts Updaten in der Spalte. Wenn jmd helfen kann wäre sehr nett. Einfach mal in Skype adden ....
Problem mit einer MySQL Quest
12/24/2012 - Metin2 Private Server - 0 Replies
Hey, also ich habe ein Problem in meiner Quest. Ich habe eine Query inder Quest die ansich auf einem Meiner Server klappt , jedoch Updated sie nicht jetzt auf meinem Root sprich die Query wird einfach nicht angenommen. Kann jmd vllt Helfen ? Bitte in Skype adde. : jupi.epvp
Problem mit einer Quest und MySQL
09/05/2012 - Metin2 Private Server - 2 Replies
Hi liebe Comm... und zwar hab ich folgendes Problem ich hab eine Quest Für die quest wird Mijagos Questlib erweiterung benötigt was ich auch alles hab nun zum Problem sobald ich mich einlogge und auf der Map Stehe kommt in Putty folgener Fehler mysql: ambiguous option '--e=SELECT limitvalue0 FROM player.item_proto WHERE vnum='"..item.get_vnum().."' (enable_cleartext_plugin, execute) ebenso in den syserrs



All times are GMT +1. The time now is 18:50.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.