16.06.2014, 20:55
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
and this is connection under OnGameModeInit
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;
}/
pawn Код:
konekt = mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_DB, MYSQL_PASS);