Quick question: does the plugin support multiple caches? For example if in one tquery/pquery callback I send a unthreded query?
Sample code pawn Код:
|
new Cache:threaded_cache = cache_save();
for(new i = 0; i < cache_get_row_count(); i++)
{
new Cache:result = mysql_query("...");
if(cache_get_row_count())
// stuff
cache_delete(result);
cache_set_active(threaded_cache);
}
cache_delete(threaded_cache);
P.S. I'm on 39-3. Will the dreaded HTML log color will ever change?
|
Can someone compile the latest version of the R-39 plugin for me? I use Ubuntu Trusty.
https://github.com/pBlueG/SA-MP-MySQL/tree/issue-54 |
ubuntu@test-server:/usr/local/SA-MP-MySQL-issue-54$ sudo make sudo: unable to resolve host test-server Compiling plugin.. In file included from libs/boost/iostreams/detail/is_dereferenceable.hpp:12:0, from libs/boost/iostreams/detail/resolve.hpp:26, from libs/boost/iostreams/detail/push.hpp:24, from libs/boost/iostreams/detail/streambuf/indirect_streambuf.hpp:31, from libs/boost/iostreams/stream_buffer.hpp:22, from libs/boost/iostreams/stream.hpp:21, from libs/boost/spirit/home/karma/stream/detail/iterator_sink.hpp:13, from libs/boost/spirit/home/karma/stream/stream.hpp:24, from libs/boost/spirit/home/karma/stream.hpp:14, from libs/boost/spirit/home/karma.hpp:27, from libs/boost/spirit/include/karma.hpp:16, from src/COrm.cpp:9: libs/boost/type_traits/detail/bool_trait_def.hpp:18:79: note: #pragma message: NOTE: Use of this header (bool_trait_def.hpp) is deprecated # pragma message("NOTE: Use of this header (bool_trait_def.hpp) is deprecated") ^ In file included from libs/boost/type_traits/detail/bool_trait_def.hpp:21:0, from libs/boost/iostreams/detail/is_dereferenceable.hpp:12, from libs/boost/iostreams/detail/resolve.hpp:26, from libs/boost/iostreams/detail/push.hpp:24, from libs/boost/iostreams/detail/streambuf/indirect_streambuf.hpp:31, from libs/boost/iostreams/stream_buffer.hpp:22, from libs/boost/iostreams/stream.hpp:21, from libs/boost/spirit/home/karma/stream/detail/iterator_sink.hpp:13, from libs/boost/spirit/home/karma/stream/stream.hpp:24, from libs/boost/spirit/home/karma/stream.hpp:14, from libs/boost/spirit/home/karma.hpp:27, from libs/boost/spirit/include/karma.hpp:16, from src/COrm.cpp:9: libs/boost/type_traits/detail/template_arity_spec.hpp:13:84: note: #pragma message: NOTE: Use of this header (template_arity_spec.hpp) is deprecated # pragma message("NOTE: Use of this header (template_arity_spec.hpp) is deprecated") ^ In file included from libs/boost/iostreams/detail/is_dereferenceable.hpp:13:0, from libs/boost/iostreams/detail/resolve.hpp:26, from libs/boost/iostreams/detail/push.hpp:24, from libs/boost/iostreams/detail/streambuf/indirect_streambuf.hpp:31, from libs/boost/iostreams/stream_buffer.hpp:22, from libs/boost/iostreams/stream.hpp:21, from libs/boost/spirit/home/karma/stream/detail/iterator_sink.hpp:13, from libs/boost/spirit/home/karma/stream/stream.hpp:24, from libs/boost/spirit/home/karma/stream.hpp:14, from libs/boost/spirit/home/karma.hpp:27, from libs/boost/spirit/include/karma.hpp:16, from src/COrm.cpp:9: libs/boost/type_traits/detail/template_arity_spec.hpp:13:84: note: #pragma message: NOTE: Use of this header (template_arity_spec.hpp) is deprecated # pragma message("NOTE: Use of this header (template_arity_spec.hpp) is deprecated") ^ In file included from libs/boost/iostreams/detail/is_dereferenceable.hpp:12:0, from libs/boost/iostreams/detail/resolve.hpp:26, from libs/boost/iostreams/detail/push.hpp:24, from libs/boost/iostreams/detail/streambuf/indirect_streambuf.hpp:31, from libs/boost/iostreams/stream_buffer.hpp:22, from libs/boost/iostreams/stream.hpp:21, from libs/boost/spirit/home/qi/stream/detail/iterator_source.hpp:14, from libs/boost/spirit/home/qi/stream/stream.hpp:16, from libs/boost/spirit/home/qi/stream.hpp:15, from libs/boost/spirit/home/qi.hpp:30, from libs/boost/spirit/include/qi.hpp:16, from src/misc.cpp:6: libs/boost/type_traits/detail/bool_trait_def.hpp:18:79: note: #pragma message: NOTE: Use of this header (bool_trait_def.hpp) is deprecated # pragma message("NOTE: Use of this header (bool_trait_def.hpp) is deprecated") ^ In file included from libs/boost/type_traits/detail/bool_trait_def.hpp:21:0, from libs/boost/iostreams/detail/is_dereferenceable.hpp:12, from libs/boost/iostreams/detail/resolve.hpp:26, from libs/boost/iostreams/detail/push.hpp:24, from libs/boost/iostreams/detail/streambuf/indirect_streambuf.hpp:31, from libs/boost/iostreams/stream_buffer.hpp:22, from libs/boost/iostreams/stream.hpp:21, from libs/boost/spirit/home/qi/stream/detail/iterator_source.hpp:14, from libs/boost/spirit/home/qi/stream/stream.hpp:16, from libs/boost/spirit/home/qi/stream.hpp:15, from libs/boost/spirit/home/qi.hpp:30, from libs/boost/spirit/include/qi.hpp:16, from src/misc.cpp:6: libs/boost/type_traits/detail/template_arity_spec.hpp:13:84: note: #pragma message: NOTE: Use of this header (template_arity_spec.hpp) is deprecated # pragma message("NOTE: Use of this header (template_arity_spec.hpp) is deprecated") ^ In file included from libs/boost/iostreams/detail/is_dereferenceable.hpp:13:0, from libs/boost/iostreams/detail/resolve.hpp:26, from libs/boost/iostreams/detail/push.hpp:24, from libs/boost/iostreams/detail/streambuf/indirect_streambuf.hpp:31, from libs/boost/iostreams/stream_buffer.hpp:22, from libs/boost/iostreams/stream.hpp:21, from libs/boost/spirit/home/qi/stream/detail/iterator_source.hpp:14, from libs/boost/spirit/home/qi/stream/stream.hpp:16, from libs/boost/spirit/home/qi/stream.hpp:15, from libs/boost/spirit/home/qi.hpp:30, from libs/boost/spirit/include/qi.hpp:16, from src/misc.cpp:6: libs/boost/type_traits/detail/template_arity_spec.hpp:13:84: note: #pragma message: NOTE: Use of this header (template_arity_spec.hpp) is deprecated # pragma message("NOTE: Use of this header (template_arity_spec.hpp) is deprecated") ^ Compiling plugin SDK.. Linking (dynamic).. /usr/bin/ld: cannot find -lmysqlclient_r /usr/bin/ld: cannot find -lboost_thread /usr/bin/ld: cannot find -lboost_chrono /usr/bin/ld: cannot find -lboost_date_time /usr/bin/ld: cannot find -lboost_system /usr/bin/ld: cannot find -lboost_atomic collect2: error: ld returned 1 exit status make: *** [dynamic_link] Error 1 ubuntu@test-server:/usr/local/SA-MP-MySQL-issue-54$
UARGHGGHADD
Код:
ubuntu@test-server:/usr/local/SA-MP-MySQL-issue-54$ sudo make sudo: unable to resolve host test-server Compiling plugin.. [stupid deprecated-warnings from Boost] Compiling plugin SDK.. Linking (dynamic).. /usr/bin/ld: cannot find -lmysqlclient_r /usr/bin/ld: cannot find -lboost_thread /usr/bin/ld: cannot find -lboost_chrono /usr/bin/ld: cannot find -lboost_date_time /usr/bin/ld: cannot find -lboost_system /usr/bin/ld: cannot find -lboost_atomic collect2: error: ld returned 1 exit status make: *** [dynamic_link] Error 1 ubuntu@test-server:/usr/local/SA-MP-MySQL-issue-54$ |
Thanks, but I just downloaded R39-5 and a_mysql.inc doesn't declare that function!
|
You lack the Boost libraries (you have to install/compile Boost itself too).
You're also missing the libmysqlclient library. |
ubuntu@complicationserver:~/SA-MP-MySQL-issue-54$ make
Compiling plugin..
Compiling plugin SDK..
Linking (dynamic)..
/usr/bin/ld: cannot find -lmysqlclient_r
collect2: ld returned 1 exit status
make: *** [dynamic_link] Error 1
ubuntu@complicationserver:~/SA-MP-MySQL-issue-54$
ldconfig -p | grep mysql
libmysqlclient.so.18 (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libmysqlclient.so.18
libmysqlclient.so (libc6,x86-64) => /usr/lib/x86_64-linux-gnu/libmysqlclient.so
sudo apt-get install libmysqlclient-dev:i386
ubuntu@complicationserver:~/SA-MP-MySQL-issue-54$ sudo apt-get install libmysqlclient-dev:i386
sudo: unable to resolve host complicationserver
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libmysqlclient-dev
I'm so annoyed lol. The 32bit doesn't work for anything
pawn Код:
|
If I understood correctly, this could be your solution for your 32bit problem: https://wiki.debian.org/Multiarch/HOWTO
|
[21:13:59 07/21/16] [WARNING] CMySQLResult::GetRowData - invalid row ('20') or field index ('0') ("SELECT `T_T`, `T_A`, `T_ACCOUNTID`, `TIMESTAMP` FROM `BANKTRANSACTIONS` WHERE `ACCOUNTID` = 24 ORDER BY `TIMESTAMP` DESC LIMIT 0,20")
Alright, if there are no new features coming for CentOS 6 builds, will there be a maintenance branch including bugfixes and security fixes?
|
I thought about this and I still haven't really decided. I'd have to move the R39 code into a new repository to not pollute the releases of the main repository (people would get confused if they'd see a R39-8, then a R41 and after that a R39-7 release). R39 is also pretty much stable as it is, so I'm not sure if there'd even be any kind of fixes afterwards. And keeping track of two versions is bothersome too, I'd rather focus on one and make sure it runs perfectly.
|
[...]
What could be done in the R40+ branch is to add a check to it, that if you have GCC 4.8+ it will continue, if the person does not have GCC 4.8+ it will show the message asking for them to update their GCC or use R39-*. |