PDA

View Full Version : MySQL Crashing server


Marusa
03/03/2013, 09:25 AM
Hello everyone. I use BlueG MySQL plugin and server going to crash when script try to call callback into mysql_function_query
here is code:
public OnPlayerLogin(playerid,password[])
{
new string[128];
TextDrawShowForPlayer(playerid,logo0);
new nick[MAX_PLAYER_NAME];
GetPlayerName(playerid, nick, sizeof(nick));
new password3[64];
mysql_real_escape_string(password, password3);
new password2 = num_hash(password3);
format(string, sizeof(string), "SELECT * FROM `korisnici` WHERE Nick = '%s' LIMIT 1", nick);
mysql_function_query(connectionHandle, string, true, "LoginPlayer", "ii", playerid, password2);
return 1;
}

When script trying to call "LoginPlayer" script going to crash, I have not idea what to do... Sry for bad english

Marusa
03/03/2013, 11:12 AM
Is there anyone who can help me ?

I have got these erros in server log (crashdetect)

[13:22:55] [debug] Server crashed due to an unknown error
[13:22:55] [debug] System backtrace:
[13:22:56] [debug] #0 77dbe023 in ?? () from C:\Windows\SysWOW64\ntdll.dll
[13:22:56] [debug] #1 768414dd in ?? () from C:\Windows\syswow64\kernel32.dll
[13:22:56] [debug] #2 72cc3c1b in ?? () from C:\Windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a 1e18e3b_9.0.30729.4940_none_50916076bcb9a742\MSVCR 90.dll
[13:22:56] [debug] #3 73d6be9a in ?? () from C:\Windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a 1e18e3b_9.0.30729.4940_none_50916076bcb9a742\MSVCP 90.dll
[13:22:56] [debug] #4 73d6bf88 in ?? () from C:\Windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a 1e18e3b_9.0.30729.4940_none_50916076bcb9a742\MSVCP 90.dll
[13:22:56] [debug] #5 73d839a0 in ?? () from C:\Windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a 1e18e3b_9.0.30729.4940_none_50916076bcb9a742\MSVCP 90.dll
[13:22:56] [debug] #6 73d88d63 in ?? () from C:\Windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a 1e18e3b_9.0.30729.4940_none_50916076bcb9a742\MSVCP 90.dll
[13:22:56] [debug] #7 1000a4e7 in ?? () from C:\Users\Vrabac\Desktop\PAL\plugins\mysql.DLL
[13:22:56] [debug] #8 768433aa in ?? () from C:\Windows\syswow64\kernel32.dll
[13:22:56] [debug] #9 77dc9ef2 in ?? () from C:\Windows\SysWOW64\ntdll.dll
[13:22:56] [debug] #10 77dc9ec5 in ?? () from C:\Windows\SysWOW64\ntdll.dll


I got this error too

[12:45:07] [debug] Server crashed due to an unknown error
[12:45:07] [debug] System backtrace:
[12:45:08] [debug] #0 77dbe023 in ?? () from C:\Windows\SysWOW64\ntdll.dll
[12:45:08] [debug] #1 768414dd in ?? () from C:\Windows\syswow64\kernel32.dll
[12:45:08] [debug] #2 72cc3c1b in ?? () from C:\Windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a 1e18e3b_9.0.30729.4940_none_50916076bcb9a742\MSVCR 90.dll
[12:45:08] [debug] #3 1000a217 in ?? () from C:\Users\Vrabac\Desktop\PAL\plugins\mysql.DLL
[12:45:08] [debug] #4 00469046 in ?? () from C:\Users\Vrabac\Desktop\PAL\samp-server.exe
[12:45:08] [debug] #5 00488afd in ?? () from C:\Users\Vrabac\Desktop\PAL\samp-server.exe
[12:45:08] [debug] #6 00495151 in ?? () from C:\Users\Vrabac\Desktop\PAL\samp-server.exe
[12:45:08] [debug] #7 00495161 in ?? () from C:\Users\Vrabac\Desktop\PAL\samp-server.exe
[12:45:08] [debug] #8 ffc30000 in ?? ()
[12:45:08] [debug] #9 e8042474 in ?? ()
[12:45:08] [debug] #10 ffffffbf in ?? ()
[12:45:08] [debug] #11 c01bd8f7 in ?? ()
[12:45:08] [debug] #12 4859d8f7 in ?? () from C:\Users\Vrabac\Desktop\PAL\samp-server.exe
[12:45:08] [debug] #13 247c83c3 in ?? () from C:\Users\Vrabac\Desktop\PAL\samp-server.exe
[12:45:08] [debug] #14 06740008 in ?? ()
[12:45:08] [debug] #15 412d01c6 in ?? () from C:\Users\Vrabac\Desktop\PAL\samp-server.exe
[12:45:08] [debug] #16 8b56d8f7 in ?? ()
[12:45:08] [debug] #17 f7d233f1 in ?? ()
[12:45:08] [debug] #18 83082474 in ?? ()
[12:45:08] [debug] #19 057609fa in ?? ()
[12:45:08] [debug] #20 eb57c280 in ?? ()
[12:45:08] [debug] #21 30c28003 in ?? () from C:\Users\Vrabac\Desktop\PAL\samp-server.exe
[12:45:08] [debug] #22 85411188 in ?? ()
[12:45:08] [debug] #23 c6e677c0 in ?? ()
[12:45:08] [debug] #24 8a490001 in ?? ()
[12:45:08] [debug] #25 88018a16 in ?? ()
[12:45:08] [debug] #26 06884911 in ?? ()
[12:45:08] [debug] #27 72f13b46 in ?? () from C:\Users\Vrabac\Desktop\PAL\samp-server.exe
[12:45:08] [debug] #28 55c35ef2 in ?? () from C:\Users\Vrabac\Desktop\PAL\samp-server.exe
[12:45:08] [debug] #29 7d83ec8b in ?? () from C:\Users\Vrabac\Desktop\PAL\samp-server.exe
[12:45:08] [debug] #30 458b0a10 in ?? () from C:\Users\Vrabac\Desktop\PAL\samp-server.exe
[12:45:08] [debug] #31 850a7508 in ?? ()
[12:45:08] [debug] #32 6a067dc0 in ?? () from C:\Users\Vrabac\Desktop\PAL\samp-server.exe
[12:45:08] [debug] #33 eb0a6a01 in ?? ()
[12:45:08] [debug] #34 ff006a05 in ?? ()
[12:45:08] [debug] #35 4d8b1075 in ?? () from C:\Users\Vrabac\Desktop\PAL\samp-server.exe
[12:45:08] [debug] #36 ff9fe80c in ?? ()
[12:45:08] [debug] #37 458bffff in ?? () from C:\Users\Vrabac\Desktop\PAL\samp-server.exe
[12:45:08] [debug] #38 5d59590c in ?? () from C:\Users\Vrabac\Desktop\PAL\samp-server.exe
[12:45:08] [debug] #39 244c8bc3 in ?? () from C:\Users\Vrabac\Desktop\PAL\samp-server.exe
[12:45:08] [debug] #40 24448b08 in ?? () from C:\Users\Vrabac\Desktop\PAL\samp-server.exe
[12:45:08] [debug] #41 ff006a04 in ?? ()
[12:45:08] [debug] #42 e8102474 in ?? ()
[12:45:08] [debug] #43 ffffff85 in ?? ()
[12:45:08] [debug] #44 1024448b in ?? () from C:\Users\Vrabac\Desktop\PAL\samp-server.exe
[12:45:08] [debug] #45 e8c35959 in ?? ()