16.02.2013, 13:06
Hello guys,
I'm currently working on a zGaming edit. My edit used to work fine until I switched it all to 0.3x. Every time I use the chat or /o, /n, /a the server crashes and the console disappears. It shows the string in the chat, but shortly after showing the string my server just crashes. I really hope someone knows the answers to this. I've also updated all the plugins & includes so I don't think that could cause the problem.
This is one of the commands that causes the crash, I really have no idea what's wrong with this piece of code.
I'm currently working on a zGaming edit. My edit used to work fine until I switched it all to 0.3x. Every time I use the chat or /o, /n, /a the server crashes and the console disappears. It shows the string in the chat, but shortly after showing the string my server just crashes. I really hope someone knows the answers to this. I've also updated all the plugins & includes so I don't think that could cause the problem.
This is one of the commands that causes the crash, I really have no idea what's wrong with this piece of code.
pawn Код:
CMD:o(playerid, params[])
{
new string[128];
if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "SERVER: You need to login first before using any command.");
if(PlayerInfo[playerid][pAdmin] < 3 && !OOCStatus) return SendClientMessage(playerid, COLOR_GREY, "SERVER: The global OOC chat is currently disabled.");
if(sscanf(params, "s[128]", params)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: (/o)oc [text]");
if(AntiAdv(playerid, params)) return 1;
if(PlayerInfo[playerid][pAdmin]) format(string, sizeof(string), "(( [OOC] %s: %s ))", RPN(playerid), params);
else format(string, sizeof(string), "(( [OOC] %s: %s ))", RPN(playerid), params);
SendClientMessageToAll(0xB1C8FBAA, string);
Log("logs/chat.log", string);
return 1;
}
Код:
-------------------------- SA-MP Server: 0.3x Exception At Address: 0x771022B2 Module: (ntdll.dll) Registers: EAX: 0x00000024 EBX: 0x0000005B ECX: 0x004E25A8 EDX: 0x00000000 ESI: 0x00000024 EDI: 0x00000020 EBP: 0x0018F33C ESP: 0x0018F328 EFLAGS: 0x00010206 Stack: +0000: 0x04336F10 0x00000000 0x01EBC500 0x002F11F0 +0010: 0x033644EC 0x0018F378 0x00492860 0x00000020 +0020: 0x00492EBE 0x00000000 0x04336F10 0x00000000 +0030: 0x0000005B 0x00000FFF 0x0018F350 0x0018ED80 +0040: 0x0018FB54 0x00496EB8 0x004B2690 0xFFFFFFFF +0050: 0x00000000 0x0040534E 0x0000005B 0x00000000 +0060: 0x04336EE0 0x0018F3A8 0x033644EC 0x0040578F +0070: 0x00000001 0x01EBC500 0x01EBC500 0x0000003B +0080: 0x034DB18C 0x004010B6 0x01EBC500 0x04336F10 +0090: 0x034F8AC0 0x00402B63 0x01EBC500 0x0000000A +00A0: 0x0018F3E0 0x04336EE0 0x0018F86C 0x00000001 +00B0: 0x043373B4 0x01EBC500 0x00000001 0x00E3E400 +00C0: 0x00E3E420 0x00E3E8E8 0x00E3A9B4 0x00E3E6C0 +00D0: 0x00E3A9B4 0x033644EC 0x034F8AC0 0x00000000 +00E0: 0x03360020 0x001945D4 0x0047219E 0x01EBC500 +00F0: 0x0018F85C 0x00000187 0x00470073 0x00007369 +0100: 0x5F646D63 0x0047006E 0x01EBC500 0x01EBC500 +0110: 0x033644EC 0x00E3A9AC 0x00000000 0x00000000 +0120: 0x00000000 0x00000000 0x00000000 0x00000000 +0130: 0x00000000 0x00000000 0x00000000 0x00000000 -------------------------- Loaded Modules: samp-server.exe A: 0x00400000 - 0x004F5000 (C:\Users\Bart\Desktop\samp03x_svr_R1-2_win32\samp-server.exe) ntdll.dll A: 0x770E0000 - 0x77260000 (C:\Windows\SysWOW64\ntdll.dll) snxhk.dll A: 0x71DA0000 - 0x71DDC000 (C:\Program Files\AVAST Software\Avast\snxhk.dll) KERNEL32.dll A: 0x75080000 - 0x75190000 (C:\Windows\syswow64\KERNEL32.dll) KERNELBASE.dll A: 0x74A20000 - 0x74A67000 (C:\Windows\syswow64\KERNELBASE.dll) SHELL32.dll A: 0x75190000 - 0x75DDA000 (C:\Windows\syswow64\SHELL32.dll) msvcrt.dll A: 0x74CB0000 - 0x74D5C000 (C:\Windows\syswow64\msvcrt.dll) SHLWAPI.dll A: 0x76140000 - 0x76197000 (C:\Windows\syswow64\SHLWAPI.dll) GDI32.dll A: 0x74990000 - 0x74A20000 (C:\Windows\syswow64\GDI32.dll) USER32.dll A: 0x75DE0000 - 0x75EE0000 (C:\Windows\syswow64\USER32.dll) ADVAPI32.dll A: 0x74A70000 - 0x74B10000 (C:\Windows\syswow64\ADVAPI32.dll) sechost.dll A: 0x76640000 - 0x76659000 (C:\Windows\SysWOW64\sechost.dll) RPCRT4.dll A: 0x76550000 - 0x76640000 (C:\Windows\syswow64\RPCRT4.dll) SspiCli.dll A: 0x747C0000 - 0x74820000 (C:\Windows\syswow64\SspiCli.dll) CRYPTBASE.dll A: 0x747B0000 - 0x747BC000 (C:\Windows\syswow64\CRYPTBASE.dll) LPK.dll A: 0x770B0000 - 0x770BA000 (C:\Windows\syswow64\LPK.dll) USP10.dll A: 0x762F0000 - 0x7638D000 (C:\Windows\syswow64\USP10.dll) WSOCK32.dll A: 0x73F20000 - 0x73F27000 (C:\Windows\system32\WSOCK32.dll) WS2_32.dll A: 0x76100000 - 0x76135000 (C:\Windows\syswow64\WS2_32.dll) NSI.dll A: 0x74D60000 - 0x74D66000 (C:\Windows\syswow64\NSI.dll) WINMM.dll A: 0x734D0000 - 0x73502000 (C:\Windows\system32\WINMM.dll) IMM32.DLL A: 0x764F0000 - 0x76550000 (C:\Windows\system32\IMM32.DLL) MSCTF.dll A: 0x76220000 - 0x762EC000 (C:\Windows\syswow64\MSCTF.dll) sscanf.dll A: 0x10000000 - 0x1000D000 (C:\Users\Bart\Desktop\samp03x_svr_R1-2_win32\plugins\sscanf.dll) MSVCR100.dll A: 0x70010000 - 0x700CF000 (C:\Windows\system32\MSVCR100.dll) streamer.dll A: 0x726C0000 - 0x726FE000 (C:\Users\Bart\Desktop\samp03x_svr_R1-2_win32\plugins\streamer.dll) MSVCP100.dll A: 0x6FF10000 - 0x6FF79000 (C:\Windows\system32\MSVCP100.dll) Whirlpool.dll A: 0x002D0000 - 0x002DC000 (C:\Users\Bart\Desktop\samp03x_svr_R1-2_win32\plugins\Whirlpool.dll) MSVCR80.dll A: 0x735A0000 - 0x7363B000 (C:\Windows\WinSxS\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.6195_none_d09154e044272b9a\MSVCR80.dll) mswsock.dll A: 0x72CF0000 - 0x72D2C000 (C:\Windows\system32\mswsock.dll) wshtcpip.dll A: 0x72CE0000 - 0x72CE5000 (C:\Windows\System32\wshtcpip.dll) NLAapi.dll A: 0x72130000 - 0x72140000 (C:\Windows\system32\NLAapi.dll) napinsp.dll A: 0x72120000 - 0x72130000 (C:\Windows\system32\napinsp.dll) pnrpnsp.dll A: 0x71E90000 - 0x71EA2000 (C:\Windows\system32\pnrpnsp.dll) DNSAPI.dll A: 0x71E40000 - 0x71E84000 (C:\Windows\system32\DNSAPI.dll) winrnr.dll A: 0x71E30000 - 0x71E38000 (C:\Windows\System32\winrnr.dll) WLIDNSP.DLL A: 0x71DE0000 - 0x71E07000 (C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live\WLIDNSP.DLL) PSAPI.DLL A: 0x75F30000 - 0x75F35000 (C:\Windows\syswow64\PSAPI.DLL) mdnsNSP.dll A: 0x71D70000 - 0x71D91000 (C:\Program Files (x86)\Bonjour\mdnsNSP.dll) Iphlpapi.DLL A: 0x72990000 - 0x729AC000 (C:\Windows\system32\Iphlpapi.DLL) WINNSI.DLL A: 0x72980000 - 0x72987000 (C:\Windows\system32\WINNSI.DLL) rasadhlp.dll A: 0x71D20000 - 0x71D26000 (C:\Windows\system32\rasadhlp.dll) PROPSYS.dll A: 0x72520000 - 0x72615000 (C:\Windows\system32\PROPSYS.dll) OLEAUT32.dll A: 0x76010000 - 0x7609F000 (C:\Windows\syswow64\OLEAUT32.dll) comctl32.dll A: 0x718F0000 - 0x71A8E000 (C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.17514_none_41e6975e2bd6f2b2\comctl32.dll) apphelp.dll A: 0x6ECC0000 - 0x6ED0C000 (C:\Windows\system32\apphelp.dll) CLBCatQ.DLL A: 0x74E90000 - 0x74F13000 (C:\Windows\syswow64\CLBCatQ.DLL) iertutil.dll A: 0x76660000 - 0x76819000 (C:\Windows\syswow64\iertutil.dll) urlmon.dll A: 0x74F50000 - 0x75061000 (C:\Windows\syswow64\urlmon.dll) WININET.dll A: 0x74870000 - 0x7498B000 (C:\Windows\syswow64\WININET.dll) Normaliz.dll A: 0x75070000 - 0x75073000 (C:\Windows\syswow64\Normaliz.dll) SETUPAPI.dll A: 0x74B10000 - 0x74CAD000 (C:\Windows\syswow64\SETUPAPI.dll) CFGMGR32.dll A: 0x75FE0000 - 0x76007000 (C:\Windows\syswow64\CFGMGR32.dll) DEVOBJ.dll A: 0x75EE0000 - 0x75EF2000 (C:\Windows\syswow64\DEVOBJ.dll) ntmarta.dll A: 0x74650000 - 0x74671000 (C:\Windows\system32\ntmarta.dll) WLDAP32.dll A: 0x74820000 - 0x74865000 (C:\Windows\syswow64\WLDAP32.dll) Secur32.dll A: 0x73730000 - 0x73738000 (C:\Windows\system32\Secur32.dll)