14.06.2014, 16:55
Firstly, update your MySQL plugin, the latest release is R39 which can be found here: https://github.com/pBlueG/SA-MP-MySQL/releases
You've to use cache_get_field_content with mysql_tquery (or mysql_pquery). mysql_query is not threaded and it's way slower than threaded queries so mysql_tquery sends threaded queries, use that.
About the connection handle, I don't understand why this isn't working. If you aren't using multiple connections the connection ID would be 1 so why don't you just use 1 instead? If you are using multiple MySQL connections. Use mysql_option.
Код:
[00:52:34] [ERROR] "mysql_query" - invalid connection handle (ID = 0) [00:52:34] [WARNING] cache_get_field_content - no active cache [00:52:34] [WARNING] cache_get_field_content - no active cache
About the connection handle, I don't understand why this isn't working. If you aren't using multiple connections the connection ID would be 1 so why don't you just use 1 instead? If you are using multiple MySQL connections. Use mysql_option.