Server Crashing Samp 0.3.7
#1

Hi,

On Windows 10 i can run MySQL R5 with my Script without any errors and on Linux(with MySQL R5) i cant run it because i got a really long error code:

Код:
[22:05:42] [debug] Server crashed while executing PE.amx
[22:05:42] [debug] AMX backtrace:
[22:05:42] [debug] #0 native dir_list () from filemanager.so
[22:05:42] [debug] #1 0010d9ac in ?? () from PE.amx
[22:05:42] [debug] #2 0000f5f8 in public SSCANF_OnGameModeInit () from PE.amx
[22:05:42] [debug] #3 00005dd0 in public FC_OnGameModeInit () from PE.amx
[22:05:42] [debug] #4 native CallLocalFunction () from samp7009_6536
[22:05:42] [debug] #5 00002f04 in public OnGameModeInit () from PE.amx
[22:05:42] [debug] Native backtrace:
[22:05:42] [debug] #0 b735c180 in _Z13GetStackTraceRSt6vectorI10StackFrameSaIS0_EEPv () from plugins/crashdetect.so
[22:05:42] [debug] #1 b7354064 in _ZN11CrashDetect20PrintNativeBacktraceERSoRKN2os7ContextE () from plugins/crashdetect.so
[22:05:42] [debug] #2 b7354d64 in _ZN11CrashDetect20PrintNativeBacktraceERKN2os7ContextE () from plugins/crashdetect.so
[22:05:42] [debug] #3 b7356cdb in _ZN11CrashDetect7OnCrashERKN2os7ContextE () from plugins/crashdetect.so
[22:05:42] [debug] #4 b735b4d5 in ?? () from plugins/crashdetect.so
[22:05:42] [debug] #5 b77a0600 in __kernel_rt_sigreturn () from linux-gate.so.1
[22:05:42] [debug] #6 b74bded0 in readdir () from /lib/i386-linux-gnu/libc.so.6
[22:05:42] [debug] #7 b7797b42 in ?? () from plugins/filemanager.so
[22:05:42] [debug] #8 080950e4 in ?? () from ./samp7009_6536
[22:05:42] [debug] #9 b7355ad3 in _ZN11CrashDetect17HandleAMXCallbackEiPiS0_ () from plugins/crashdetect.so
[22:05:42] [debug] #10 00000000 in nil ()
[22:05:42] [debug] Registers:
[22:05:42] [debug] EAX: 00000000 EBX: b758f000 ECX: 00000001 EDX: 000000f8
[22:05:42] [debug] ESI: 00000000 EDI: 08a99740 EBP: 00000002 ESP: bfd9e9b0
[22:05:42] [debug] EIP: b74bded0 EFLAGS: 00010202
[22:05:42] [debug] Stack:
[22:05:42] [debug] ESP+00000000: bfd9e9c0 b5047bec b74bdeae b505ee20
[22:05:42] [debug] ESP+00000020: 00000000 08a9002f bfd9ea08 b7797c52
[22:05:42] [debug] ESP+00000040: 00000005 b5047bec 00000015 b734d1e4
[22:05:42] [debug] ESP+00000060: 08a99740 b505ee20 00001000 b734d14a
[22:05:42] [debug] ESP+00000080: 08a99740 08a4ff00 bfd9ee2c b7355ad3
[22:05:42] [debug] ESP+000000a0: 0010d9ac 000000f8 00000000 0000006e
[22:05:42] [debug] ESP+000000c0: 073c3a79 b758f000 00000000 b758f000
[22:05:42] [debug] ESP+000000e0: bfd9efe0 b754f0f5 b74cc30d b758f000
[22:05:42] [debug] ESP+00000100: 00000000 00000012 bfd9eb2c 00000000
[22:05:42] [debug] ESP+00000120: 0000001a 00000000 bfd9eb58 b7494981
[22:05:42] [debug] ESP+00000140: b7542de0 bfd9eba0 00000001 08a5003d
[22:05:42] [debug] ESP+00000160: 08ad1322 08ad1322 00000010 0000002e
[22:05:42] [debug] ESP+00000180: 08a99740 00000000 0154d3e4 0010d9ac
[22:05:42] [debug] ESP+000001a0: 0010d940 000000f7 bfd9eb90 b74928bc
[22:05:42] [debug] ESP+000001c0: 00000400 b754f0f5 00000000 b7380ff4
[22:05:42] [debug] ESP+000001e0: 08a4ff00 000000f8 bfd9ec2c b505ee20
[22:05:42] [debug] ESP+00000200: 00000000 bfd9ec22 08a4a660 08a99740
[22:05:42] [debug] ESP+00000220: 08a99740 000000f8 bfd9ec2c b505ee20
[22:05:42] [debug] ESP+00000240: b3b11afc 0154d324 0153b4e4 0154d340
[22:05:42] [debug] ESP+00000260: 00113ac0 08a99740 00000000 b3b0b9a8
[22:05:42] [debug] ESP+00000280: bfd9eca8 00000001 08a99740 b7380ff4
[22:05:42] [debug] ESP+000002a0: 08a99740 bfd9ee2c 00000046 0154d414
[22:05:42] [debug] ESP+000002c0: 00000026 b7592720 bfd9ec8f b758f880
[22:05:42] [debug] ESP+000002e0: 08a49a10 b779d000 00000026 bfd9ecf0
[22:05:42] [debug] ESP+00000300: 0154d414 00002f04 00000046 080a01a8
[22:05:42] [debug] ESP+00000320: 08a49a10 08159bac bfd9ecf0 b74987cd
[22:05:42] [debug] ESP+00000340: bfd9ed40 b39fba1c bf005d32 00000000
[22:05:42] [debug] ESP+00000360: 08a99740 08a4ff00 00000046 b735a384
[22:05:42] [debug] ESP+00000380: 00000000 00209fbd bfd9f2ac b72947de
[22:05:42] [debug] ESP+000003a0: 08a99740 08a99740 bfd9ed68 b733b7d4
[22:05:42] [debug] ESP+000003c0: 08a99740 bfd9ee2c 00000046 00000046
[22:05:42] [debug] ESP+000003e0: 00000013 00000003 b758faa0 00000010
[22:05:42] [debug] Loaded modules:
[22:05:42] [debug] 00000000 - 00187f43 samp7009_6536
[22:05:42] [debug] b77a2000 - b77a2704 linux-gate.so.1
[22:05:42] [debug] b778a000 - b778c81f /lib/i386-linux-gnu/libdl.so.2
[22:05:42] [debug] b776f000 - b77892f3 /lib/i386-linux-gnu/libpthread.so.0
[22:05:42] [debug] b75f5000 - b77783b3 /usr/lib/i386-linux-gnu/libstdc++.so.6
[22:05:42] [debug] b75b0000 - b75f3ab7 /lib/i386-linux-gnu/libm.so.6
[22:05:42] [debug] b7593000 - b75af3c4 /lib/i386-linux-gnu/libgcc_s.so.1
[22:05:42] [debug] b741f000 - b759addb /lib/i386-linux-gnu/libc.so.6
[22:05:42] [debug] b77a1000 - b77c1d6c /lib/ld-linux.so.2
[22:05:42] [debug] b7392000 - b741c67b plugins/audio.so
[22:05:42] [debug] b7382000 - b73911d4 plugins/sscanf.so
[22:05:42] [debug] b7795000 - b779a892 plugins/filemanager.so
[22:05:42] [debug] b733e000 - b7380ac4 plugins/crashdetect.so
[22:05:42] [debug] b7268000 - b733e7f0 plugins/streamer.so
[22:05:42] [debug] b7250000 - b7257093 /lib/i386-linux-gnu/librt.so.1
[22:05:42] [debug] b7238000 - b724e79a plugins/mysql1.so
[22:05:42] [debug] b704d000 - b7236ee4 /usr/lib/i386-linux-gnu/libmysqlclient_r.so.15
[22:05:42] [debug] b701c000 - b704b68b /lib/i386-linux-gnu/libcrypt.so.1
[22:05:42] [debug] b7003000 - b701b1bb /lib/i386-linux-gnu/libnsl.so.1
[22:05:42] [debug] b6fe6000 - b7001d4c /lib/i386-linux-gnu/libz.so.1
[22:05:42] [debug] b6fd9000 - b6fe43ef /lib/i386-linux-gnu/libnss_files.so.2
and then i tryed another MySQL Version(R7) when t run my Script i got this Errors

Код:
22:07:13] [debug] Run time error 19: "File or function is not found"
[22:07:13] [debug]  mysql_query
[22:07:13] [debug]  mysql_fetch_int
[22:07:13] [debug] Run time error 19: "File or function is not found"
[22:07:13] [debug]  mysql_query
[22:07:13] [debug]  mysql_fetch_int
[22:07:13] Script[gamemodes/PE.amx]: Run time error 19: "File or function is not found"
[22:07:13] Number of vehicle models: 0
i hope somebody can help me

sorry for my bad english
Reply
#2

Have you loaded the correct plugins that are needed like MySQL?
Reply
#3

You also need to convert your script to MySQL R7 too. Some functions are different from older versions. Only changing inc and plugin is not going to help.

PS Use MySQL R41 which is latest.
Reply
#4

MySQL R5? That's way too old. No wonder why you're having problems. Update your script to the latest version.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)