Help mysql - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help mysql (
/showthread.php?tid=519995)
Help mysql -
ShoortyFl - 16.06.2014
So when i use /rcon gmx to restart server, samp-server.exe just closes.
This is the crash error
[23:12:39] RCON (In-Game): Player [Nathan] sent command: gmx
[23:12:39] [debug] Server crashed while executing srv.amx
[23:12:39] [debug] AMX backtrace:
[23:12:39] [debug] #0 native mysql_close () [71e3d240] from mysql.DLL
[23:12:39] [debug] #1 0003e450 in ?? () from srv.amx
[23:12:39] [debug] #2 0000dd34 in public ScriptInit_OnGameModeExit () from srv.amx
[23:12:39] [debug] #3 00006adc in public OnGameModeExit () from srv.amx
This is ongamemodeexit
pawn Код:
public OnGameModeExit()
{
KillTimer(sectimer);
KillTimer(wlzona);
mysql_close(konekt);
return 1;
}/
and this is connection under OnGameModeInit
pawn Код:
konekt = mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_DB, MYSQL_PASS);