Register for your free account! | Forgot your password?

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

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

Advertisement



Mysql_query(SELECT) into variable

Discussion on Mysql_query(SELECT) into variable within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2012
Posts: 17
Received Thanks: 0
Mysql_query(SELECT) into variable

Hello, I have the problem.I need rewrite some informations with using mysql_query(SELECT) into my variable.I have table "pvp" in player into which is writing number of kills.
There is my quest but It doesn't work. Could you help me please? Thx

Quote:
local kills = mysql_query("SELECT kills FROM player.pvp WHERE name = '"..pc.get_name().."';")
if kills == 100 then
say(" You're good. ")
else
say(" noob ")
end
Burbank is offline  
Old 05/03/2014, 17:33   #2
 
elite*gold: 71
Join Date: Dec 2011
Posts: 598
Received Thanks: 149
Try:

Code:
local kills = mysql_query("SELECT pvp FROM player.player WHERE name = '"..pc.get_name().."';")
MrPlayboy is offline  
Old 05/03/2014, 18:45   #3

 
elite*gold: 0
Join Date: Mar 2013
Posts: 2,449
Received Thanks: 6,446
Code:
local kills = mysql_query("SELECT kills FROM player.pvp WHERE name = '"..pc.get_name().."';")[1][1]
Lord iRemix is offline  
Thanks
2 Users
Old 05/04/2014, 22:00   #4
 
elite*gold: 0
Join Date: Mar 2012
Posts: 17
Received Thanks: 0
It doesn't work.Any other ideas?
Burbank is offline  
Reply


Similar Threads Similar Threads
Mysql_Query
01/27/2013 - Metin2 Private Server - 1 Replies
Hi, ich suche jemanden der mir mysql_query's schreiben kann. Ich würde auch geldlich entlohnen. Skype: samy02091997 MFG DarkNessWorld2
mysql_query hilfe ...
12/30/2012 - Metin2 Private Server - 1 Replies
Ich hab ein kleines Problem und zwar möchte Ich meine Dungeon GUI auf MySQL basierend machen allerdings möchte der Befehl nicht so ganz wie ich das möchte und das pisst mich schon so ein bisschen an... vielleicht könnt ihr mir weiterhelfen, der reload klappt problemlos die Query wird aber scheinbar nicht ausgeführt, bzw in der Datenbank wird kein Update ausgeführt. Die Query an sich funktioniert einwandfrei habe es unter MySQL Query in Navicat oft genug probiert, Questsehend schlägt...
Metin 2 Select Character select error
02/26/2011 - Metin2 Private Server - 1 Replies
Dabei-ist das spiel Charakter-Auswahl Error help Log Files 0225 23:37:16227 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/effect/hit/percent_damage1.mse) Error 0225 23:37:16227 :: CInstanceBase::RegisterEffect(eEftType=264, c_szEftAttachBone=, c_szEftName=d:/ymir work/effect/hit/percent_damage1.mse, isCache=1) - Error 0225 23:37:16227 :: CEffectManager::RegisterEffect - LoadScript(d:/ymir work/effect/hit/percent_damage2.mse) Error 0225 23:37:16227 ::...
Cost of accessing a casted variable vs. assigning the casted variable? (C#)
01/05/2011 - CO2 Programming - 5 Replies
I know that in unmanaged C++, casting is at compile-time, so it's better to avoid the assignment and simply access it for all instances. However, in C#, I have no idea since I'm pretty new to it.
Überprüfen ob Variable Eine Variable ist
10/16/2010 - AutoIt - 26 Replies
Hey leute ich wollte fragen ob/wie man überprüfen kann ob eine Variable eine Variable ist z.b. so $k = 1 $i = $k if $i = VARIABLE Then msgbox(0,'$i ist eine variable!!','') endif PS:Wp releast man nochma TuT (z.b. für metin2??)



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


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.