Jump to content
×
×
  • Create New...
  • 0

mysql_query function for quests


Dimmi

Question

14 answers to this question

Recommended Posts

  • 0

Here has the following functions in C ++

 

mysql.query
mysql.direct_query
mysql.update
mysql.real_escape_string
mysql.get_table_postfix

 

go to game / src

 

open queslua.cpp

 

under

RegisterDragonSoulFunctionTable();

add

RegisterMysqlFunctionTable();

open queslua.h

 

under

extern void RegisterDragonSoulFunctionTable();

add

extern void RegisterMysqlFunctionTable();

add in the makefile 

questlua_mysql.cpp

Download the file

 

Hidden Content

    Give reaction to this post to see the hidden content.

 

VirusTotal

 

Hidden Content

    Give reaction to this post to see the hidden content.

  • Metin2 Dev 3
  • Love 9
  • Good 1
  • Sad 1
Link to comment
  • 0

Here has the following functions in C ++

 

mysql.query

mysql.direct_query

mysql.update

mysql.real_escape_string

mysql.get_table_postfix

 

go to game / src

 

open queslua.cpp

 

under

RegisterDragonSoulFunctionTable();

add

RegisterMysqlFunctionTable();

open queslua.h

 

under

extern void RegisterDragonSoulFunctionTable();

add

extern void RegisterMysqlFunctionTable();

add in the makefile 

questlua_mysql.cpp

Download the file

 

Hidden Content

    Give reaction to this post to see the hidden content.

 

VirusTotal

 

Hidden Content

    Give reaction to this post to see the hidden content.

 

Thanks. It works. :D

I used mysql.query for update and mysql.direct_query for select.

  • Metin2 Dev 1
  • Love 1
Link to comment
  • 0

thank you :o

On 16.04.2015 18:00:29, nanoia said:

Here has the following functions in C ++

 

mysql.query
mysql.direct_query
mysql.update
mysql.real_escape_string
mysql.get_table_postfix

 

go to game / src

 

open queslua.cpp

 

under

RegisterDragonSoulFunctionTable();

add

RegisterMysqlFunctionTable();

open queslua.h

 

under

extern void RegisterDragonSoulFunctionTable();

add

extern void RegisterMysqlFunctionTable();

add in the makefile 

questlua_mysql.cpp

Download the file

 

Hidden Content

    Give reaction to this post to see the hidden content.

 

VirusTotal

 

Hidden Content

    Give reaction to this post to see the hidden content.

thank you :o

  • Love 1
Link to comment
  • 0

OBJDIR/questlua_mysql.o: In function `quest::_mysql_query(lua_State*)':
/xDestroy/Srcs/Server/game/src/questlua_mysql.cpp:28: multiple definition of `quest::_mysql_query(lua_State*)'
OBJDIR/questlua_global.o:/xDestroy/Srcs/Server/game/src/questlua_global.cpp:1344: first defined here
OBJDIR/questlua_mysql.o: In function `quest::_mysql_real_escape_string(lua_State*)':
/xDestroy/Srcs/Server/game/src/questlua_mysql.cpp:83: multiple definition of `quest::_mysql_real_escape_string(lua_State*)'
OBJDIR/questlua_global.o:/xDestroy/Srcs/Server/game/src/questlua_global.cpp:1397: first defined here
OBJDIR/questlua_mysql.o: In function `quest::_mysql_update_query(lua_State*)':
/xDestroy/Srcs/Server/game/src/questlua_mysql.cpp:14: multiple definition of `quest::_mysql_update_query(lua_State*)'
OBJDIR/questlua_global.o:/xDestroy/Srcs/Server/game/src/questlua_global.cpp:1332: first defined here
 

Link to comment

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


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.