[MySQL]Closing the connection
#1

Код:
public OnGameModeExit()
{
	mysql_close(SQL,true); // Closing the MySQL connection
	return 1;
}
Quote:

[14:23:35] [debug] AMX backtrace:
[14:23:35] [debug] #0 native mysql_close () [65a1d920] from mysql.DLL
[14:23:35] [debug] #1 00046a1c in ?? () from cms.amx
[14:23:35] [debug] #2 0000719c in public ScriptInit_OnGameModeExit () from cms.amx
[14:23:35] [debug] #3 0000302c in public OnGameModeExit () from cms.amx
[14:23:35] [debug] Native backtrace:
[14:23:35] [debug] #0 100379cc in ?? () from LIBMYSQL.dll
[14:23:35] [debug] #1 10037a7a in ?? () from LIBMYSQL.dll

Reply
#2

show the OnGameModeInit and the definition of the "SQL" varaiable... (it needs to be global and won't work at all if you defined it under "OnGameModeInit").. and which plugin are you using anyway?
Reply
#3

If you are using BlueG's MySQL plugin (you probably do), update your MySQL plugin to R38, there are a ton of bug fixes between the version you currently use and R38. Your script won't compile directly though due to syntax changes. Just ask here if you have any problems regarding updating the plugin.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)