16.03.2016, 21:53
When I get into game,after a while samp-server.exe closes. Why ?
[23:51:07] [debug] Server crashed while executing gm.amx
[23:51:07] [debug] AMX backtrace:
[23:51:07] [debug] #0 00000014 in public OnPlayerTakeDamage () at <unknown file>:0
[23:51:07] [debug] Native backtrace:
[23:51:07] [debug] #0 68527ee2 in ?? () from plugins\crashdetect.DLL
[23:51:07] [debug] #1 685209c7 in ?? () from plugins\crashdetect.DLL
[23:51:07] [debug] #2 6852631a in ?? () from plugins\crashdetect.DLL
[23:51:07] [debug] #3 68574469 in ?? () from plugins\streamer.DLL
[23:51:07] [debug] #4 0046ed5c in ?? () from samp-server.exe
[23:51:07] [debug] #5 00493c03 in ?? () from samp-server.exe
[23:51:07] [debug] #6 685201c7 in ?? () from plugins\crashdetect.DLL
[23:51:07] [debug] #7 0048661a in ?? () from samp-server.exe
[23:51:07] [debug] #8 0040174f in ?? () from samp-server.exe
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
new string[128];
format(string,sizeof(string),"-%.0f HP",amount);
SetPlayerChatBubble(playerid,string,0x660000AA,150.0,2500);
return 1;
}
format(string,sizeof(string),"-%.0f HP",amount);
format(string,sizeof(string),"-%d HP",floatround(amount));
|
I'm not sure but try changing this:
PHP код:
PHP код:
|
[15:01:16] [debug] Server crashed while executing gm.amx
[15:01:16] [debug] AMX backtrace:
[15:01:16] [debug] #0 00000014 in public OnPlayerTakeDamage () at <unknown file>:0
[15:01:16] [debug] Native backtrace:
[15:01:16] [debug] #0 67f67ee2 in ?? () from plugins\crashdetect.DLL
[15:01:16] [debug] #1 67f609c7 in ?? () from plugins\crashdetect.DLL
[15:01:16] [debug] #2 67f6631a in ?? () from plugins\crashdetect.DLL
[15:01:16] [debug] #3 67fb4469 in ?? () from plugins\streamer.DLL
[15:01:16] [debug] #4 0046ed5c in ?? () from samp-server.exe
[15:01:16] [debug] #5 00493c03 in ?? () from samp-server.exe
[15:01:16] [debug] #6 67f601c7 in ?? () from plugins\crashdetect.DLL
[15:01:16] [debug] #7 0048661a in ?? () from samp-server.exe
[15:01:16] [debug] #8 0040174f in ?? () from samp-server.exe
[15:01:16] [debug] #9 74754f6d in ?? () from C:\Windows\system32\IPHLPAPI.DLL
[15:01:16] [debug] Server crashed while executing gm.amx
[15:01:16] [debug] AMX backtrace:
[15:01:16] [debug] #0 00000014 in public OnPlayerTakeDamage () at <unknown file>:0
[15:01:17] [debug] Native backtrace:
[15:01:17] [debug] #0 773fe154 in ?? () from C:\Windows\SysWOW64\ntdll.dll
[15:01:17] [debug] #1 767014bd in ?? () from C:\Windows\syswow64\kernel32.dll
[15:01:17] [debug] #2 00498e11 in ?? () from samp-server.exe
[15:01:17] [debug] #3 0044d9c9 in ?? () from samp-server.exe
[15:01:17] [debug] #4 0045856c in ?? () from samp-server.exe
[15:01:17] [debug] #5 00010100 in ?? ()
[15:01:17] [debug] #6 00459ce0 in ?? () from samp-server.exe
[15:01:17] [debug] #7 00459f80 in ?? () from samp-server.exe
[15:01:17] [debug] #8 0045a9c0 in ?? () from samp-server.exe
[15:01:17] [debug] #9 0044ff10 in ?? () from samp-server.exe
[15:01:17] [debug] #10 0044ff20 in ?? () from samp-server.exe
[15:01:17] [debug] #............................
[15:01:17] [debug] #142 0045a930 in ?? () from samp-server.exe
[15:01:17] [debug] #143 0045a950 in ?? () from samp-server.exe
[15:01:17] [debug] #144 0045a980 in ?? () from samp-server.exe
[15:01:17] [debug] #145 0045a9a0 in ?? () from samp-server.exe
SA-MP Server: 0.3.7-R2
Exception At Address: 0x74754F6D Module: (IPHLPAPI.DLL)
Registers:
EAX: 0x03FA1EA8 EBX: 0x00000026 ECX: 0x00000081 EDX: 0x61000000
ESI: 0x01EC0EF0 EDI: 0x03C56394 EBP: 0x61647055 ESP: 0x004B5E5C
EFLAGS: 0x00010206
Stack:
+0000: 0x00000000 0x69446E4F 0x676F6C61 0x70736552
+0010: 0x65736E6F 0x00000000 0x6C506E4F 0x72657961
+0020: 0x63696C43 0x616C506B 0x00726579 0x6C506E4F
+0030: 0x72657961 0x656B6154 0x616D6144 0x00006567
+0040: 0x6C506E4F 0x72657961 0x65766947 0x616D6144
+0050: 0x00006567 0x6C506E4F 0x72657961 0x65766947
+0060: 0x616D6144 0x63416567 0x00726F74 0x65566E4F
+0070: 0x6C636968 0x6D614465 0x53656761 0x75746174
+0080: 0x64705573 0x00657461 0x6E556E4F 0x7563636F
+0090: 0x64656970 0x69686556 0x55656C63 0x74616470
+00A0: 0x00000065 0x6C506E4F 0x72657961 0x63696C43
+00B0: 0x70614D6B 0x00000000 0x6C506E4F 0x72657961
+00C0: 0x74696445 0x61747441 0x64656863 0x656A624F
+00D0: 0x00007463 0x6C506E4F 0x72657961 0x74696445
+00E0: 0x656A624F 0x00007463 0x6C506E4F 0x72657961
+00F0: 0x656C6553 0x624F7463 0x7463656A 0x00000000
+0100: 0x6C506E4F 0x72657961 0x63696C43 0x7865546B
+0110: 0x61724474 0x00000077 0x6C506E4F 0x72657961
+0120: 0x63696C43 0x616C506B 0x54726579 0x44747865
+0130: 0x00776172 0x6C436E4F 0x746E6569 0x63656843
--------------------------
Loaded Modules:
samp-server.exe A: 0x00400000 - 0x00519000 (C:\Users\Brooks\Desktop\test\samp-server.exe)
ntdll.dll A: 0x773D0000 - 0x77550000 (C:\Windows\SysWOW64\ntdll.dll)
kernel32.dll A: 0x766F0000 - 0x76800000 (C:\Windows\syswow64\kernel32.dll)
KERNELBASE.dll A: 0x76800000 - 0x76847000 (C:\Windows\syswow64\KERNELBASE.dll)
SHELL32.dll A: 0x75490000 - 0x760DB000 (C:\Windows\syswow64\SHELL32.dll)
msvcrt.dll A: 0x769B0000 - 0x76A5C000 (C:\Windows\syswow64\msvcrt.dll)
SHLWAPI.dll A: 0x753F0000 - 0x75447000 (C:\Windows\syswow64\SHLWAPI.dll)
GDI32.dll A: 0x75260000 - 0x752F0000 (C:\Windows\syswow64\GDI32.dll)
USER32.dll A: 0x76A60000 - 0x76B60000 (C:\Windows\syswow64\USER32.dll)
ADVAPI32.dll A: 0x76D10000 - 0x76DB1000 (C:\Windows\syswow64\ADVAPI32.dll)
sechost.dll A: 0x76C90000 - 0x76CA9000 (C:\Windows\SysWOW64\sechost.dll)
RPCRT4.dll A: 0x752F0000 - 0x753E0000 (C:\Windows\syswow64\RPCRT4.dll)
SspiCli.dll A: 0x74D20000 - 0x74D80000 (C:\Windows\syswow64\SspiCli.dll)
CRYPTBASE.dll A: 0x74D10000 - 0x74D1C000 (C:\Windows\syswow64\CRYPTBASE.dll)
LPK.dll A: 0x74D80000 - 0x74D8A000 (C:\Windows\syswow64\LPK.dll)
USP10.dll A: 0x760E0000 - 0x7617D000 (C:\Windows\syswow64\USP10.dll)
WSOCK32.dll A: 0x6F9F0000 - 0x6F9F7000 (C:\Windows\system32\WSOCK32.dll)
WS2_32.dll A: 0x768E0000 - 0x76915000 (C:\Windows\syswow64\WS2_32.dll)
NSI.dll A: 0x766E0000 - 0x766E6000 (C:\Windows\syswow64\NSI.dll)
WINMM.dll A: 0x74760000 - 0x74792000 (C:\Windows\system32\WINMM.dll)
IMM32.DLL A: 0x764E0000 - 0x76540000 (C:\Windows\system32\IMM32.DLL)
MSCTF.dll A: 0x76320000 - 0x763EC000 (C:\Windows\syswow64\MSCTF.dll)
dbghelp.dll A: 0x74470000 - 0x7455B000 (C:\Windows\system32\dbghelp.dll)
MSVCP100.dll A: 0x678E0000 - 0x67949000 (C:\Windows\system32\MSVCP100.dll)
MSVCR100.dll A: 0x67820000 - 0x678DF000 (C:\Windows\system32\MSVCR100.dll)
sscanf.DLL A: 0x10000000 - 0x1000D000 (C:\Users\Brooks\Desktop\test\plugins\sscanf.DLL)
streamer.DLL A: 0x677D0000 - 0x6781A000 (C:\Users\Brooks\Desktop\test\plugins\streamer.DLL)
MSVCP140.dll A: 0x67760000 - 0x677CD000 (C:\Windows\system32\MSVCP140.dll)
VCRUNTIME140.dll A: 0x68940000 - 0x68955000 (C:\Windows\system32\VCRUNTIME140.dll)
api-ms-win-crt-runtime-l1-1-0.dll A: 0x689C0000 - 0x689C4000 (C:\Windows\system32\api-ms-win-crt-runtime-l1-1-0.dll)
ucrtbase.DLL A: 0x674C0000 - 0x675A1000 (C:\Windows\system32\ucrtbase.DLL)
api-ms-win-core-timezone-l1-1-0.dll A: 0x68970000 - 0x68973000 (C:\Windows\system32\api-ms-win-core-timezone-l1-1-0.dll)
api-ms-win-core-file-l2-1-0.dll A: 0x68960000 - 0x68963000 (C:\Windows\system32\api-ms-win-core-file-l2-1-0.dll)
api-ms-win-core-localization-l1-2-0.dll A: 0x68310000 - 0x68313000 (C:\Windows\system32\api-ms-win-core-localization-l1-2-0.dll)
api-ms-win-core-synch-l1-2-0.dll A: 0x67750000 - 0x67753000 (C:\Windows\system32\api-ms-win-core-synch-l1-2-0.dll)
api-ms-win-core-processthreads-l1-1-1.dll A: 0x67740000 - 0x67743000 (C:\Windows\system32\api-ms-win-core-processthreads-l1-1-1.dll)
api-ms-win-core-file-l1-2-0.dll A: 0x67730000 - 0x67733000 (C:\Windows\system32\api-ms-win-core-file-l1-2-0.dll)
api-ms-win-crt-string-l1-1-0.dll A: 0x67720000 - 0x67724000 (C:\Windows\system32\api-ms-win-crt-string-l1-1-0.dll)
api-ms-win-crt-heap-l1-1-0.dll A: 0x674B0000 - 0x674B3000 (C:\Windows\system32\api-ms-win-crt-heap-l1-1-0.dll)
api-ms-win-crt-stdio-l1-1-0.dll A: 0x674A0000 - 0x674A4000 (C:\Windows\system32\api-ms-win-crt-stdio-l1-1-0.dll)
api-ms-win-crt-convert-l1-1-0.dll A: 0x67490000 - 0x67494000 (C:\Windows\system32\api-ms-win-crt-convert-l1-1-0.dll)
api-ms-win-crt-locale-l1-1-0.dll A: 0x67480000 - 0x67483000 (C:\Windows\system32\api-ms-win-crt-locale-l1-1-0.dll)
api-ms-win-crt-math-l1-1-0.dll A: 0x67470000 - 0x67475000 (C:\Windows\system32\api-ms-win-crt-math-l1-1-0.dll)
api-ms-win-crt-multibyte-l1-1-0.dll A: 0x67460000 - 0x67465000 (C:\Windows\system32\api-ms-win-crt-multibyte-l1-1-0.dll)
api-ms-win-crt-time-l1-1-0.dll A: 0x67450000 - 0x67453000 (C:\Windows\system32\api-ms-win-crt-time-l1-1-0.dll)
api-ms-win-crt-filesystem-l1-1-0.dll A: 0x67440000 - 0x67443000 (C:\Windows\system32\api-ms-win-crt-filesystem-l1-1-0.dll)
api-ms-win-crt-environment-l1-1-0.dll A: 0x67430000 - 0x67433000 (C:\Windows\system32\api-ms-win-crt-environment-l1-1-0.dll)
api-ms-win-crt-utility-l1-1-0.dll A: 0x67420000 - 0x67423000 (C:\Windows\system32\api-ms-win-crt-utility-l1-1-0.dll)
WhirlPool.DLL A: 0x003D0000 - 0x003DC000 (C:\Users\Brooks\Desktop\test\plugins\WhirlPool.DLL)
MSVCR80.dll A: 0x681A0000 - 0x6823B000 (C:\Windows\WinSxS\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.6229_none_d089f796442de10e\MSVCR80.dll)
MSVCP100D.dll A: 0x67380000 - 0x6741C000 (C:\Users\Brooks\Desktop\test\MSVCP100D.dll)
MSVCR100D.dll A: 0x67200000 - 0x67372000 (C:\Users\Brooks\Desktop\test\MSVCR100D.dll)
nativechecker.DLL A: 0x671E0000 - 0x671E5000 (C:\Users\Brooks\Desktop\test\plugins\nativechecker.DLL)
mswsock.dll A: 0x72D60000 - 0x72D9C000 (C:\Windows\system32\mswsock.dll)
wshtcpip.dll A: 0x71790000 - 0x71795000 (C:\Windows\System32\wshtcpip.dll)
NLAapi.dll A: 0x741A0000 - 0x741B0000 (C:\Windows\system32\NLAapi.dll)
napinsp.dll A: 0x732D0000 - 0x732E0000 (C:\Windows\system32\napinsp.dll)
pnrpnsp.dll A: 0x732B0000 - 0x732C2000 (C:\Windows\system32\pnrpnsp.dll)
DNSAPI.dll A: 0x72D10000 - 0x72D54000 (C:\Windows\system32\DNSAPI.dll)
winrnr.dll A: 0x732A0000 - 0x732A8000 (C:\Windows\System32\winrnr.dll)
IPHLPAPI.DLL A: 0x74740000 - 0x7475C000 (C:\Windows\system32\IPHLPAPI.DLL)
WINNSI.DLL A: 0x74730000 - 0x74737000 (C:\Windows\system32\WINNSI.DLL)
rasadhlp.dll A: 0x6FDC0000 - 0x6FDC6000 (C:\Windows\system32\rasadhlp.dll)
uxtheme.dll A: 0x6FF50000 - 0x6FFD0000 (C:\Windows\system32\uxtheme.dll)
safemon.dll A: 0x73580000 - 0x736FB000 (C:\Program Files (x86)\360\Total Security\safemon\safemon.dll)
OLEAUT32.dll A: 0x76920000 - 0x769AF000 (C:\Windows\syswow64\OLEAUT32.dll)
PSAPI.DLL A: 0x761B0000 - 0x761B5000 (C:\Windows\syswow64\PSAPI.DLL)
VERSION.dll A: 0x747A0000 - 0x747A9000 (C:\Windows\system32\VERSION.dll)
NETAPI32.dll A: 0x74710000 - 0x74721000 (C:\Windows\system32\NETAPI32.dll)
netutils.dll A: 0x74700000 - 0x74709000 (C:\Windows\system32\netutils.dll)
srvcli.dll A: 0x746E0000 - 0x746F9000 (C:\Windows\system32\srvcli.dll)
wkscli.dll A: 0x746D0000 - 0x746DF000 (C:\Windows\system32\wkscli.dll)
profapi.dll A: 0x74FD0000 - 0x74FDB000 (C:\Windows\syswow64\profapi.dll)
PROPSYS.dll A: 0x70AE0000 - 0x70BD5000 (C:\Windows\system32\PROPSYS.dll)
comctl32.dll A: 0x72950000 - 0x72AEE000 (C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.18837_none_41e855142bd5705d\comctl32.dll)
apphelp.dll A: 0x71730000 - 0x7177C000 (C:\Windows\system32\apphelp.dll)
CLBCatQ.DLL A: 0x74F20000 - 0x74FA3000 (C:\Windows\syswow64\CLBCatQ.DLL)
api-ms-win-downlevel-advapi32-l1-1-0.dll A: 0x764D0000 - 0x764D5000 (C:\Windows\syswow64\api-ms-win-downlevel-advapi32-l1-1-0.dll)
api-ms-win-downlevel-shlwapi-l1-1-0.dll A: 0x764C0000 - 0x764C4000 (C:\Windows\syswow64\api-ms-win-downlevel-shlwapi-l1-1-0.dll)
ntmarta.dll A: 0x741B0000 - 0x741D1000 (C:\Windows\system32\ntmarta.dll)
WLDAP32.dll A: 0x763F0000 - 0x76435000 (C:\Windows\syswow64\WLDAP32.dll)
SETUPAPI.dll A: 0x76540000 - 0x766DD000 (C:\Windows\syswow64\SETUPAPI.dll)
CFGMGR32.dll A: 0x76180000 - 0x761A7000 (C:\Windows\syswow64\CFGMGR32.dll)
DEVOBJ.dll A: 0x74FB0000 - 0x74FC2000 (C:\Windows\syswow64\DEVOBJ.dll)
Secur32.dll A: 0x74310000 - 0x74318000 (C:\Windows\system32\Secur32.dll)
api-ms-win-downlevel-advapi32-l2-1-0.dll A: 0x6D640000 - 0x6D644000 (C:\Windows\system32\api-ms-win-downlevel-advapi32-l2-1-0.dll)
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
if(issuerid != INVALID_PLAYER_ID)
{
new string[128];
format(string,sizeof(string),"-%.0f HP",amount);
SetPlayerChatBubble(playerid,string,0x660000AA,150.0,2500);
}
return 1;
}