Include MySQL
#8
(01-07-2014, 02:49 AM)xoft Wrote:
driver = sql::mysql::get_mysql_driver_instance();
God, this is awful. They combine the worst of C with the worst of C++: lots::of::namespaces::in:cpp and really_long_underscored_names_in_c

Well, I thought you were thinking of contributing the code back to the community. If not, then by all means go ahead and try it out. Perhaps later you'll show us that it's easy and we'll have to reconsider.

As for the error you're seeing, I'd guess that it's about the library being incomplete or something wrong with it - it does complain inside the library's own header file, so it shouldn't be an issue with how you're using it.

I still think it would be easier to create a plugin that would use the LuaRocks' MySQL binding and when a player connects it would push the permissions from DB to the player. The cPlayer API just might be enough for this, if not, we could always extend it.

Okey. Yes i now. This should be better.. and then only get_mysql_driver_instance();
Code:
using namespace sql;
using namespace mysql;
I think so but i don't know so many from c++.

Can i edit with the startup of a own plugin the groups.ini with the settings in my mysql db? Must i restart the server to load the new groups.ini or so?
cPlayer AddToGroup can make the setting of the group working.. Then i don't need to modify MCServer Source.
Reply
Thanks given by:


Messages In This Thread
Include MySQL - by daniel0916 - 01-07-2014, 01:53 AM
RE: Include MySQL - by xoft - 01-07-2014, 02:27 AM
RE: Include MySQL - by daniel0916 - 01-07-2014, 02:48 AM
RE: Include MySQL - by bearbin - 01-07-2014, 02:37 AM
RE: Include MySQL - by xoft - 01-07-2014, 02:46 AM
RE: Include MySQL - by FakeTruth - 01-07-2014, 02:47 AM
RE: Include MySQL - by xoft - 01-07-2014, 02:49 AM
RE: Include MySQL - by daniel0916 - 01-07-2014, 03:31 AM
RE: Include MySQL - by xoft - 01-07-2014, 04:22 AM
RE: Include MySQL - by daniel0916 - 01-07-2014, 04:32 AM
RE: Include MySQL - by xoft - 01-07-2014, 05:12 AM
RE: Include MySQL - by daniel0916 - 01-07-2014, 05:48 AM
RE: Include MySQL - by NiLSPACE - 01-07-2014, 04:34 AM
RE: Include MySQL - by xoft - 01-07-2014, 06:25 AM
RE: Include MySQL - by daniel0916 - 01-08-2014, 02:25 AM
RE: Include MySQL - by xoft - 01-08-2014, 02:52 AM
RE: Include MySQL - by daniel0916 - 01-08-2014, 04:20 AM
RE: Include MySQL - by daniel0916 - 01-09-2014, 02:50 AM
RE: Include MySQL - by xoft - 01-09-2014, 05:31 AM
RE: Include MySQL - by daniel0916 - 01-09-2014, 05:39 AM
RE: Include MySQL - by xoft - 01-09-2014, 05:46 AM
RE: Include MySQL - by daniel0916 - 01-09-2014, 05:49 AM
RE: Include MySQL - by xoft - 01-09-2014, 04:51 PM
RE: Include MySQL - by daniel0916 - 01-10-2014, 03:07 AM
RE: Include MySQL - by xoft - 01-10-2014, 06:59 AM
RE: Include MySQL - by daniel0916 - 01-12-2014, 01:49 AM
RE: Include MySQL - by xoft - 01-12-2014, 02:33 AM
RE: Include MySQL - by daniel0916 - 01-12-2014, 05:40 AM
RE: Include MySQL - by xoft - 01-12-2014, 06:01 AM



Users browsing this thread: 1 Guest(s)