Server question
#1

When I get into game,after a while samp-server.exe closes. Why ?
Reply
#2

Check server_log.txt for errors.
Reply
#3

You have something in your script which crashes the server.. try looking up into server_log.txt.
Reply
#4

Result from server_log.txt
PHP код:
[23:51:07] [debugServer crashed while executing gm.amx
[23:51:07] [debugAMX backtrace:
[
23:51:07] [debug#0 00000014 in public OnPlayerTakeDamage () at <unknown file>:0
[23:51:07] [debugNative 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 
Reply
#5

OnPlayerTakeDamager code
PHP код:
public OnPlayerTakeDamage(playeridissueridFloatamountweaponid)
{
    new 
string[128];
    
format(string,sizeof(string),"-%.0f HP",amount);
    
SetPlayerChatBubble(playerid,string,0x660000AA,150.0,2500);
    return 
1;

Reply
#6

I'm not sure but try changing this:
PHP код:
    format(string,sizeof(string),"-%.0f HP",amount); 
To
PHP код:
  format(string,sizeof(string),"-%d HP",floatround(amount)); 
Reply
#7

Quote:
Originally Posted by jlalt
Посмотреть сообщение
I'm not sure but try changing this:
PHP код:
    format(string,sizeof(string),"-%.0f HP",amount); 
To
PHP код:
  format(string,sizeof(string),"-%d HP",floatround(amount)); 
doesn't work man..
server_log.txt
PHP код:
[15:01:16] [debugServer crashed while executing gm.amx
[15:01:16] [debugAMX backtrace:
[
15:01:16] [debug#0 00000014 in public OnPlayerTakeDamage () at <unknown file>:0
[15:01:16] [debugNative 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] [debugServer crashed while executing gm.amx
[15:01:16] [debugAMX backtrace:
[
15:01:16] [debug#0 00000014 in public OnPlayerTakeDamage () at <unknown file>:0
[15:01:17] [debugNative 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 
Reply
#8

What does your crashdetect plugin do? Please post it here or at pastebin.
Reply
#9

PHP код:
SA-MP Server0.3.7-R2



Exception At Address
0x74754F6D Module: (IPHLPAPI.DLL)



Registers:

EAX0x03FA1EA8    EBX0x00000026    ECX0x00000081    EDX0x61000000

ESI
0x01EC0EF0    EDI0x03C56394    EBP0x61647055    ESP0x004B5E5C

EFLAGS
0x00010206



Stack
:

+
00000x00000000   0x69446E4F   0x676F6C61   0x70736552

+00100x65736E6F   0x00000000   0x6C506E4F   0x72657961

+00200x63696C43   0x616C506B   0x00726579   0x6C506E4F

+00300x72657961   0x656B6154   0x616D6144   0x00006567

+00400x6C506E4F   0x72657961   0x65766947   0x616D6144

+00500x00006567   0x6C506E4F   0x72657961   0x65766947

+00600x616D6144   0x63416567   0x00726F74   0x65566E4F

+00700x6C636968   0x6D614465   0x53656761   0x75746174

+00800x64705573   0x00657461   0x6E556E4F   0x7563636F

+00900x64656970   0x69686556   0x55656C63   0x74616470

+00A00x00000065   0x6C506E4F   0x72657961   0x63696C43

+00B00x70614D6B   0x00000000   0x6C506E4F   0x72657961

+00C00x74696445   0x61747441   0x64656863   0x656A624F

+00D00x00007463   0x6C506E4F   0x72657961   0x74696445

+00E00x656A624F   0x00007463   0x6C506E4F   0x72657961

+00F00x656C6553   0x624F7463   0x7463656A   0x00000000

+01000x6C506E4F   0x72657961   0x63696C43   0x7865546B

+01100x61724474   0x00000077   0x6C506E4F   0x72657961

+01200x63696C43   0x616C506B   0x54726579   0x44747865

+01300x00776172   0x6C436E4F   0x746E6569   0x63656843



--------------------------



Loaded Modules:

samp-server.exe    A0x00400000 0x00519000    (C:\Users\Brooks\Desktop\test\samp-server.exe)

ntdll.dll    A0x773D0000 0x77550000    (C:\Windows\SysWOW64\ntdll.dll)

kernel32.dll    A0x766F0000 0x76800000    (C:\Windows\syswow64\kernel32.dll)

KERNELBASE.dll    A0x76800000 0x76847000    (C:\Windows\syswow64\KERNELBASE.dll)

SHELL32.dll    A0x75490000 0x760DB000    (C:\Windows\syswow64\SHELL32.dll)

msvcrt.dll    A0x769B0000 0x76A5C000    (C:\Windows\syswow64\msvcrt.dll)

SHLWAPI.dll    A0x753F0000 0x75447000    (C:\Windows\syswow64\SHLWAPI.dll)

GDI32.dll    A0x75260000 0x752F0000    (C:\Windows\syswow64\GDI32.dll)

USER32.dll    A0x76A60000 0x76B60000    (C:\Windows\syswow64\USER32.dll)

ADVAPI32.dll    A0x76D10000 0x76DB1000    (C:\Windows\syswow64\ADVAPI32.dll)

sechost.dll    A0x76C90000 0x76CA9000    (C:\Windows\SysWOW64\sechost.dll)

RPCRT4.dll    A0x752F0000 0x753E0000    (C:\Windows\syswow64\RPCRT4.dll)

SspiCli.dll    A0x74D20000 0x74D80000    (C:\Windows\syswow64\SspiCli.dll)

CRYPTBASE.dll    A0x74D10000 0x74D1C000    (C:\Windows\syswow64\CRYPTBASE.dll)

LPK.dll    A0x74D80000 0x74D8A000    (C:\Windows\syswow64\LPK.dll)

USP10.dll    A0x760E0000 0x7617D000    (C:\Windows\syswow64\USP10.dll)

WSOCK32.dll    A0x6F9F0000 0x6F9F7000    (C:\Windows\system32\WSOCK32.dll)

WS2_32.dll    A0x768E0000 0x76915000    (C:\Windows\syswow64\WS2_32.dll)

NSI.dll    A0x766E0000 0x766E6000    (C:\Windows\syswow64\NSI.dll)

WINMM.dll    A0x74760000 0x74792000    (C:\Windows\system32\WINMM.dll)

IMM32.DLL    A0x764E0000 0x76540000    (C:\Windows\system32\IMM32.DLL)

MSCTF.dll    A0x76320000 0x763EC000    (C:\Windows\syswow64\MSCTF.dll)

dbghelp.dll    A0x74470000 0x7455B000    (C:\Windows\system32\dbghelp.dll)

MSVCP100.dll    A0x678E0000 0x67949000    (C:\Windows\system32\MSVCP100.dll)

MSVCR100.dll    A0x67820000 0x678DF000    (C:\Windows\system32\MSVCR100.dll)

sscanf.DLL    A0x10000000 0x1000D000    (C:\Users\Brooks\Desktop\test\plugins\sscanf.DLL)

streamer.DLL    A0x677D0000 0x6781A000    (C:\Users\Brooks\Desktop\test\plugins\streamer.DLL)

MSVCP140.dll    A0x67760000 0x677CD000    (C:\Windows\system32\MSVCP140.dll)

VCRUNTIME140.dll    A0x68940000 0x68955000    (C:\Windows\system32\VCRUNTIME140.dll)

api-ms-win-crt-runtime-l1-1-0.dll    A0x689C0000 0x689C4000    (C:\Windows\system32\api-ms-win-crt-runtime-l1-1-0.dll)

ucrtbase.DLL    A0x674C0000 0x675A1000    (C:\Windows\system32\ucrtbase.DLL)

api-ms-win-core-timezone-l1-1-0.dll    A0x68970000 0x68973000    (C:\Windows\system32\api-ms-win-core-timezone-l1-1-0.dll)

api-ms-win-core-file-l2-1-0.dll    A0x68960000 0x68963000    (C:\Windows\system32\api-ms-win-core-file-l2-1-0.dll)

api-ms-win-core-localization-l1-2-0.dll    A0x68310000 0x68313000    (C:\Windows\system32\api-ms-win-core-localization-l1-2-0.dll)

api-ms-win-core-synch-l1-2-0.dll    A0x67750000 0x67753000    (C:\Windows\system32\api-ms-win-core-synch-l1-2-0.dll)

api-ms-win-core-processthreads-l1-1-1.dll    A0x67740000 0x67743000    (C:\Windows\system32\api-ms-win-core-processthreads-l1-1-1.dll)

api-ms-win-core-file-l1-2-0.dll    A0x67730000 0x67733000    (C:\Windows\system32\api-ms-win-core-file-l1-2-0.dll)

api-ms-win-crt-string-l1-1-0.dll    A0x67720000 0x67724000    (C:\Windows\system32\api-ms-win-crt-string-l1-1-0.dll)

api-ms-win-crt-heap-l1-1-0.dll    A0x674B0000 0x674B3000    (C:\Windows\system32\api-ms-win-crt-heap-l1-1-0.dll)

api-ms-win-crt-stdio-l1-1-0.dll    A0x674A0000 0x674A4000    (C:\Windows\system32\api-ms-win-crt-stdio-l1-1-0.dll)

api-ms-win-crt-convert-l1-1-0.dll    A0x67490000 0x67494000    (C:\Windows\system32\api-ms-win-crt-convert-l1-1-0.dll)

api-ms-win-crt-locale-l1-1-0.dll    A0x67480000 0x67483000    (C:\Windows\system32\api-ms-win-crt-locale-l1-1-0.dll)

api-ms-win-crt-math-l1-1-0.dll    A0x67470000 0x67475000    (C:\Windows\system32\api-ms-win-crt-math-l1-1-0.dll)

api-ms-win-crt-multibyte-l1-1-0.dll    A0x67460000 0x67465000    (C:\Windows\system32\api-ms-win-crt-multibyte-l1-1-0.dll)

api-ms-win-crt-time-l1-1-0.dll    A0x67450000 0x67453000    (C:\Windows\system32\api-ms-win-crt-time-l1-1-0.dll)

api-ms-win-crt-filesystem-l1-1-0.dll    A0x67440000 0x67443000    (C:\Windows\system32\api-ms-win-crt-filesystem-l1-1-0.dll)

api-ms-win-crt-environment-l1-1-0.dll    A0x67430000 0x67433000    (C:\Windows\system32\api-ms-win-crt-environment-l1-1-0.dll)

api-ms-win-crt-utility-l1-1-0.dll    A0x67420000 0x67423000    (C:\Windows\system32\api-ms-win-crt-utility-l1-1-0.dll)

WhirlPool.DLL    A0x003D0000 0x003DC000    (C:\Users\Brooks\Desktop\test\plugins\WhirlPool.DLL)

MSVCR80.dll    A0x681A0000 0x6823B000    (C:\Windows\WinSxS\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.6229_none_d089f796442de10e\MSVCR80.dll)

MSVCP100D.dll    A0x67380000 0x6741C000    (C:\Users\Brooks\Desktop\test\MSVCP100D.dll)

MSVCR100D.dll    A0x67200000 0x67372000    (C:\Users\Brooks\Desktop\test\MSVCR100D.dll)

nativechecker.DLL    A0x671E0000 0x671E5000    (C:\Users\Brooks\Desktop\test\plugins\nativechecker.DLL)

mswsock.dll    A0x72D60000 0x72D9C000    (C:\Windows\system32\mswsock.dll)

wshtcpip.dll    A0x71790000 0x71795000    (C:\Windows\System32\wshtcpip.dll)

NLAapi.dll    A0x741A0000 0x741B0000    (C:\Windows\system32\NLAapi.dll)

napinsp.dll    A0x732D0000 0x732E0000    (C:\Windows\system32\napinsp.dll)

pnrpnsp.dll    A0x732B0000 0x732C2000    (C:\Windows\system32\pnrpnsp.dll)

DNSAPI.dll    A0x72D10000 0x72D54000    (C:\Windows\system32\DNSAPI.dll)

winrnr.dll    A0x732A0000 0x732A8000    (C:\Windows\System32\winrnr.dll)

IPHLPAPI.DLL    A0x74740000 0x7475C000    (C:\Windows\system32\IPHLPAPI.DLL)

WINNSI.DLL    A0x74730000 0x74737000    (C:\Windows\system32\WINNSI.DLL)

rasadhlp.dll    A0x6FDC0000 0x6FDC6000    (C:\Windows\system32\rasadhlp.dll)

uxtheme.dll    A0x6FF50000 0x6FFD0000    (C:\Windows\system32\uxtheme.dll)

safemon.dll    A0x73580000 0x736FB000    (C:\Program Files (x86)\360\Total Security\safemon\safemon.dll)

OLEAUT32.dll    A0x76920000 0x769AF000    (C:\Windows\syswow64\OLEAUT32.dll)

PSAPI.DLL    A0x761B0000 0x761B5000    (C:\Windows\syswow64\PSAPI.DLL)

VERSION.dll    A0x747A0000 0x747A9000    (C:\Windows\system32\VERSION.dll)

NETAPI32.dll    A0x74710000 0x74721000    (C:\Windows\system32\NETAPI32.dll)

netutils.dll    A0x74700000 0x74709000    (C:\Windows\system32\netutils.dll)

srvcli.dll    A0x746E0000 0x746F9000    (C:\Windows\system32\srvcli.dll)

wkscli.dll    A0x746D0000 0x746DF000    (C:\Windows\system32\wkscli.dll)

profapi.dll    A0x74FD0000 0x74FDB000    (C:\Windows\syswow64\profapi.dll)

PROPSYS.dll    A0x70AE0000 0x70BD5000    (C:\Windows\system32\PROPSYS.dll)

comctl32.dll    A0x72950000 0x72AEE000    (C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.18837_none_41e855142bd5705d\comctl32.dll)

apphelp.dll    A0x71730000 0x7177C000    (C:\Windows\system32\apphelp.dll)

CLBCatQ.DLL    A0x74F20000 0x74FA3000    (C:\Windows\syswow64\CLBCatQ.DLL)

api-ms-win-downlevel-advapi32-l1-1-0.dll    A0x764D0000 0x764D5000    (C:\Windows\syswow64\api-ms-win-downlevel-advapi32-l1-1-0.dll)

api-ms-win-downlevel-shlwapi-l1-1-0.dll    A0x764C0000 0x764C4000    (C:\Windows\syswow64\api-ms-win-downlevel-shlwapi-l1-1-0.dll)

ntmarta.dll    A0x741B0000 0x741D1000    (C:\Windows\system32\ntmarta.dll)

WLDAP32.dll    A0x763F0000 0x76435000    (C:\Windows\syswow64\WLDAP32.dll)

SETUPAPI.dll    A0x76540000 0x766DD000    (C:\Windows\syswow64\SETUPAPI.dll)

CFGMGR32.dll    A0x76180000 0x761A7000    (C:\Windows\syswow64\CFGMGR32.dll)

DEVOBJ.dll    A0x74FB0000 0x74FC2000    (C:\Windows\syswow64\DEVOBJ.dll)

Secur32.dll    A0x74310000 0x74318000    (C:\Windows\system32\Secur32.dll)

api-ms-win-downlevel-advapi32-l2-1-0.dll    A0x6D640000 0x6D644000    (C:\Windows\system32\api-ms-win-downlevel-advapi32-l2-1-0.dll
Reply
#10

PHP код:
public OnPlayerTakeDamage(playeridissueridFloatamountweaponidbodypart
{
    if(
issuerid != INVALID_PLAYER_ID)
    {
        new 
string[128]; 
        
format(string,sizeof(string),"-%.0f HP",amount); 
        
SetPlayerChatBubble(playerid,string,0x660000AA,150.0,2500); 
    }
    return 
1;

Try it?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)