|
Originally Posted by MySQL R28 changelog
[...]
- edited threading design: plugin uses one thread fewer; connections to the MySQL server are now established/closed in real-time - added optional parameter "autoreconnect" to mysql_connect to control whether the plugin should reconnect automatically if connection is lost [...] |
|
Originally Posted by MySQL R28 changelog
- re-added our old and beloved native mysql_errno
|
#include <a_samp>
#define MYSQL_USE_YINLINE
#include <a_mysql>
#include <fixes>
#include <sscanf2>
#include <streamer>
#define MAILER_URL "localhost/mailer.php"
#include <mailer>
#include <GVAR>
#include <YSI\y_commands>
#include <YSI\y_td>
#include <YSI\y_dialog>
#include <YSI\y_inline>
#include <YSI\y_hooks>
#include <YSI\y_timers>
#include <YSI\y_iterate>
I:\SA-MP\SERVER MYSQL\pawno\include\YSI\y_inline.inc(189) : warning 201: redefinition of constant/macro (symbol "e_CALLBACK_FLAGS") I:\SA-MP\SERVER MYSQL\pawno\include\YSI\y_inline.inc(192) : error 021: symbol already defined: "e_CALLBACK_FLAGS_PUSHED" I:\SA-MP\SERVER MYSQL\pawno\include\YSI\y_inline.inc(196) : error 021: symbol already defined: "e_CALLBACK_FLAGS_PUBLIC" I:\SA-MP\SERVER MYSQL\pawno\include\YSI\y_inline.inc(199) : warning 201: redefinition of constant/macro (symbol "E_CALLBACK_DATA") I:\SA-MP\SERVER MYSQL\pawno\include\YSI\y_inline.inc(200) : error 021: symbol already defined: "E_CALLBACK_DATA_FLAGS" I:\SA-MP\SERVER MYSQL\pawno\include\YSI\y_inline.inc(348) : error 021: symbol already defined: "_Inline_FixCompiler@@" I:\SA-MP\SERVER MYSQL\pawno\include\YSI\y_inline.inc(360) : error 021: symbol already defined: "_Inline_GetOpCodesX" I:\SA-MP\SERVER MYSQL\pawno\include\YSI\y_inline.inc(607) : error 021: symbol already defined: "Inline_Loop" I:\SA-MP\SERVER MYSQL\pawno\include\YSI\y_inline.inc(677) : error 025: function heading differs from prototype I:\SA-MP\SERVER MYSQL\pawno\include\YSI\y_inline.inc(678) : error 021: symbol already defined: "Callback_Get" I:\SA-MP\SERVER MYSQL\pawno\include\YSI\y_inline.inc(913) : error 025: function heading differs from prototype I:\SA-MP\SERVER MYSQL\pawno\include\YSI\y_inline.inc(914) : error 021: symbol already defined: "Callback_Release" I:\SA-MP\SERVER MYSQL\pawno\include\YSI\y_inline.inc(922) : error 025: function heading differs from prototype I:\SA-MP\SERVER MYSQL\pawno\include\YSI\y_inline.inc(923) : error 021: symbol already defined: "Callback_Call" I:\SA-MP\SERVER MYSQL\pawno\include\YSI\y_inline.inc(1132) : error 025: function heading differs from prototype I:\SA-MP\SERVER MYSQL\pawno\include\YSI\y_inline.inc(1133) : error 021: symbol already defined: "Callback_Array" I:\SA-MP\SERVER MYSQL\pawno\include\YSI\y_inline.inc(1322) : error 025: function heading differs from prototype I:\SA-MP\SERVER MYSQL\pawno\include\YSI\y_inline.inc(1323) : error 021: symbol already defined: "Callback_Block" I:\SA-MP\SERVER MYSQL\pawno\include\YSI\y_dialog.inc(93) : error 009: invalid array size (negative, zero or out of bounds) I:\SA-MP\SERVER MYSQL\pawno\include\YSI\y_dialog.inc(220) : error 009: invalid array size (negative, zero or out of bounds) I:\SA-MP\SERVER MYSQL\pawno\include\YSI\y_dialog.inc(220) : warning 217: loose indentation I:\SA-MP\SERVER MYSQL\pawno\include\YSI\y_dialog.inc(220) : error 036: empty statement I:\SA-MP\SERVER MYSQL\pawno\include\YSI\y_dialog.inc(221) : warning 217: loose indentation I:\SA-MP\SERVER MYSQL\pawno\include\YSI\y_dialog.inc(221) : error 017: undefined symbol "data" I:\SA-MP\SERVER MYSQL\pawno\include\YSI\y_dialog.inc(223) : error 017: undefined symbol "data" I:\SA-MP\SERVER MYSQL\pawno\include\YSI\y_dialog.inc(288) : error 046: unknown array size (variable "YSI_g_sDialogInfo") I:\SA-MP\SERVER MYSQL\pawno\include\YSI\y_dialog.inc(288) : warning 215: expression has no effect I:\SA-MP\SERVER MYSQL\pawno\include\YSI\y_dialog.inc(315) : error 047: array sizes do not match, or destination array is too small I:\SA-MP\SERVER MYSQL\pawno\include\YSI\y_dialog.inc(324) : error 009: invalid array size (negative, zero or out of bounds) I:\SA-MP\SERVER MYSQL\pawno\include\YSI\y_dialog.inc(324) : warning 217: loose indentation I:\SA-MP\SERVER MYSQL\pawno\include\YSI\y_dialog.inc(324) : error 036: empty statement I:\SA-MP\SERVER MYSQL\pawno\include\YSI\y_dialog.inc(325) : warning 217: loose indentation I:\SA-MP\SERVER MYSQL\pawno\include\YSI\y_dialog.inc(325) : error 017: undefined symbol "dat"
//==============[INCLUDE]=============//
#include <a_samp>
#include <fixes>
#include <sscanf2>
#include <streamer>
#define MAILER_URL "localhost/mailer.php"
#include <mailer>
#include <GVAR>
#include <YSI\y_commands>
#include <YSI\y_td>
#include <YSI\y_dialog>
//#include <YSI\y_inline>
#include <YSI\y_hooks>
#include <YSI\y_timers>
#include <YSI\y_iterate>
#define MYSQL_USE_YINLINE
#include <a_mysql>
I:\SA-MP\SERVER MYSQL\pawno\include\YSI\y_inline.inc(189) : warning 201: redefinition of constant/macro (symbol "e_CALLBACK_FLAGS") I:\SA-MP\SERVER MYSQL\pawno\include\YSI\y_inline.inc(192) : error 021: symbol already defined: "e_CALLBACK_FLAGS_PUSHED" I:\SA-MP\SERVER MYSQL\pawno\include\YSI\y_inline.inc(196) : error 021: symbol already defined: "e_CALLBACK_FLAGS_PUBLIC" I:\SA-MP\SERVER MYSQL\pawno\include\YSI\y_inline.inc(199) : warning 201: redefinition of constant/macro (symbol "E_CALLBACK_DATA") I:\SA-MP\SERVER MYSQL\pawno\include\YSI\y_inline.inc(200) : error 021: symbol already defined: "E_CALLBACK_DATA_FLAGS" I:\SA-MP\SERVER MYSQL\pawno\include\YSI\y_inline.inc(348) : error 021: symbol already defined: "_Inline_FixCompiler@@" I:\SA-MP\SERVER MYSQL\pawno\include\YSI\y_inline.inc(360) : error 021: symbol already defined: "_Inline_GetOpCodesX" I:\SA-MP\SERVER MYSQL\pawno\include\YSI\y_inline.inc(607) : error 021: symbol already defined: "Inline_Loop" I:\SA-MP\SERVER MYSQL\pawno\include\YSI\y_inline.inc(677) : error 025: function heading differs from prototype I:\SA-MP\SERVER MYSQL\pawno\include\YSI\y_inline.inc(678) : error 021: symbol already defined: "Callback_Get" I:\SA-MP\SERVER MYSQL\pawno\include\YSI\y_inline.inc(913) : error 025: function heading differs from prototype I:\SA-MP\SERVER MYSQL\pawno\include\YSI\y_inline.inc(914) : error 021: symbol already defined: "Callback_Release" I:\SA-MP\SERVER MYSQL\pawno\include\YSI\y_inline.inc(922) : error 025: function heading differs from prototype I:\SA-MP\SERVER MYSQL\pawno\include\YSI\y_inline.inc(923) : error 021: symbol already defined: "Callback_Call" I:\SA-MP\SERVER MYSQL\pawno\include\YSI\y_inline.inc(1132) : error 025: function heading differs from prototype I:\SA-MP\SERVER MYSQL\pawno\include\YSI\y_inline.inc(1133) : error 021: symbol already defined: "Callback_Array" I:\SA-MP\SERVER MYSQL\pawno\include\YSI\y_inline.inc(1322) : error 025: function heading differs from prototype I:\SA-MP\SERVER MYSQL\pawno\include\YSI\y_inline.inc(1323) : error 021: symbol already defined: "Callback_Block" I:\SA-MP\SERVER MYSQL\pawno\include\a_mysql.inc(105) : error 009: invalid array size (negative, zero or out of bounds) I:\SA-MP\SERVER MYSQL\pawno\include\a_mysql.inc(109) : error 009: invalid array size (negative, zero or out of bounds) I:\SA-MP\SERVER MYSQL\pawno\include\a_mysql.inc(109) : error 036: empty statement I:\SA-MP\SERVER MYSQL\pawno\include\a_mysql.inc(110) : error 017: undefined symbol "InlineData" I:\SA-MP\SERVER MYSQL\pawno\include\a_mysql.inc(113) : error 046: unknown array size (variable "g_MySQL_InlineData") I:\SA-MP\SERVER MYSQL\pawno\include\a_mysql.inc(113) : error 017: undefined symbol "InlineData" I:\SA-MP\SERVER MYSQL\pawno\include\a_mysql.inc(113) : warning 215: expression has no effect I:\SA-MP\SERVER MYSQL\pawno\include\a_mysql.inc(130) : error 047: array sizes do not match, or destination array is too small
|
I've been using R7 since it was released and haven't upgraded, because things seem to be going backwards. Why was mysql_ping removed? How can you check if the connection is a success..? Why remove stuff that isn't broken? For fuck's sake.
|
|
Using R5 since it's release, far more convenient than other versions.
|
|
My server locked up here (Windows)
pawn Код:
pawn Код:
|
|
Could you add 'fake natives' for mysql_function_query etc. (function macros) so they show up in pawno? Thanks. (define them as a native function inside a comment block (not sure if single lines work))
|
|
I have discovered a bug , and my server doesn't working with R29.
In my Database I have 'id' and I load 'id' column as : cache_get_field_content_int( 0, "Id" ); not cache_get_field_content_int( 0, "id" ); And it causes crash . Now I am asking why with R27 =< versions can load cache_get_field_content_int( 0, "Id" ); not cache_get_field_content_int( 0, "id" ); . Can you explain this ? But i solved that problem . |
|
I think found the crash reason. I set the player name when it's logged like this:
[...] E1.: I don't know why, but if i create a local variable, and fill it with cache_get_field_content, it work fine, but if i use an array, like: PlayerInfo[playerid][pNev] to store, it does not fill up. |
SetPVarInt(playerid, "fPlayerID", cache_get_row_int(0, 0));
[2013/07/16 16:34:35] [debug] Server crashed while executing nmss.amx [2013/07/16 16:34:35] [debug] AMX backtrace: [2013/07/16 16:34:35] [debug] #0 0009ce58 in public THREAD_Findplayer_1 (playerid=11, queue=17) at C:\Program Files (x86)\Rockstar Games\GTA San Andreas\SERVER\gamemodes\nmss.pwn:14695 [2013/07/16 16:34:35] [debug] System backtrace: [2013/07/16 16:34:35] [debug] #0 f7416f41 in _ZN10StackTraceC1EPv () from plugins/crashdetect.so [2013/07/16 16:34:35] [debug] #1 f740d41f in _ZN11crashdetect20PrintSystemBacktraceEPv () from plugins/crashdetect.so [2013/07/16 16:34:35] [debug] #2 f740b963 in _ZN11crashdetect15SystemExceptionEPv () from plugins/crashdetect.so [2013/07/16 16:34:35] [debug] #3 f74163c1 in ?? () from plugins/crashdetect.so [2013/07/16 16:34:35] [debug] #4 f7737410 in __kernel_rt_sigreturn () from linux-gate.so.1 [2013/07/16 16:34:35] [debug] #5 f74af506 in ?? () from /lib/libc.so.6 [2013/07/16 16:34:35] [debug] #6 f7182501 in _ZN5boost12lexical_castIiPcEET_RKT0_ () from plugins/mysql_static.so [2013/07/16 16:34:35] [debug] #7 f717e161 in _ZN6Native17cache_get_row_intEP6tagAMXPi () from plugins/mysql_static.so [2013/07/16 16:34:35] [debug] #8 f741ba33 in amx_Exec () from plugins/crashdetect.so [2013/07/16 16:34:35] [debug] #9 f740c622 in _ZN11crashdetect9DoAmxExecEPii () from plugins/crashdetect.so [2013/07/16 16:34:35] [debug] #10 f7414699 in ?? () from plugins/crashdetect.so [2013/07/16 16:34:35] [debug] #11 f71841d1 in amx_Exec () from plugins/mysql_static.so [2013/07/16 16:34:35] [debug] #12 f7166db7 in _ZN9CCallback16ProcessCallbacksEv () from plugins/mysql_static.so [2013/07/16 16:34:35] [debug] #13 f718a497 in ProcessTick () from plugins/mysql_static.so [2013/07/16 16:34:35] [debug] #14 080c5df2 in ?? () from ./samp03svr [2013/07/16 16:34:35] [debug] #15 080b5b7a in ?? () from ./samp03svr [2013/07/16 16:34:35] [debug] #16 080b1453 in ?? () from ./samp03svr [2013/07/16 16:34:35] [debug] #17 f74473d5 in __libc_start_main () from /lib/libc.so.6
|
Are you using R29?
EDIT: @Kar, are you sure the MySQL plugin causes this? |
[13:02:05] [ERROR] ExecuteT[OnLoadDynamicDoors()] - (error #2006) MySQL server has gone away [13:02:05] [ERROR] CMySQLHandle::ConnectT - (error #1045) Access denied for user 'samp'@'localhost' (using password: YES)
|
thanks but what are the best kind of queries? threaded or unthreaded cuz i don't know nothing about mysql.
|