Server problem/Shutdown
#1

Hello..
I have a problem with my server.When i enter in game,i play 2-3 minutes and server shutdown.I don`t know why...When i update all includes and plugins,now i have this : (I compiled my gamemode with all updates)

Код:
----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3x-R2, ©2005-2013 SA-MP Team

[11:56:18] filterscripts = ""  (string)
[11:56:18] 
[11:56:18] Server Plugins
[11:56:18] --------------
[11:56:18]  Loading plugin: streamer.so
[11:56:18] 

*** Streamer Plugin v2.6.1 by Incognito loaded ***

[11:56:18]   Loaded.
[11:56:18]  Loading plugin: sscanf.so
[11:56:18] 

[11:56:18]  ===============================

[11:56:18]       sscanf plugin loaded.     

[11:56:18]          Version:  2.8.1        

[11:56:18]    © 2012 Alex "******" Cole  

[11:56:18]  ===============================

[11:56:18]   Loaded.
[11:56:18]  Loaded 2 plugins.

[11:56:18] 
[11:56:18] Filterscripts
[11:56:18] ---------------
[11:56:18]   Loaded 0 filterscripts.

[11:56:19] Script[gamemodes/rc.amx]: Run time error 19: "File or function is not found"
[11:56:19] Number of vehicle models: 0
I have in server cfg name of the gamemode..Server it`s on host..I have all files..I don`t know what he have..

Sorry for my bad english..
Reply
#2

Run crashdetect plugin.
Reply
#3

I have crashdetect and same problem..

[17:21:37] Script[gamemodes/rc.amx]: Run time error 19: "File or function is not found"
[17:21:37] Number of vehicle models: 0
Reply
#4

crashdetect can detect the non-registered function(s) as well as nativechecker does too. I assume that the version you use is old one so get the latest version (4.12) from here: https://github.com/Zeex/samp-plugin-...ases/tag/v4.12

Most of the times, nativechecker plugin is used for that runtime error 19. It can be found: https://sampforum.blast.hk/showthread.php?tid=249226

Change the plugins line in server.cfg to:
pawn Код:
plugins streamer.so sscanf.so nativechecker.so crashdetect.so
Reply
#5

[17:27:55] Error: Function not registered: 'WP_Hash'
[17:27:55] [debug] Run time error 19: "File or function is not found"
[17:27:55] [debug] WP_Hash
[17:27:55] Script[gamemodes/rc.amx]: Run time error 19: "File or function is not found"
[17:27:55] Number of vehicle models: 0

EDIT:In first line i have, native WP_Hash(_buffer[], len, const str[]);
Reply
#6

nativechecker -> Error: Function not registered: 'WP_Hash'
crashdetect -> [debug] WP_Hash

Both of them reported that WP_Hash function (from Whirlpool) was used in the script(s) but Whirlpool plugin is not loaded.

Get Whirlpool.so from its original thread, upload it to plugins folder and edit the plugins line to:
pawn Код:
plugins streamer.so sscanf.so Whirlpool.so nativechecker.so crashdetect.so
Reply
#7

I updated whirpoll,same..

[17:36:25] Loaded.
[17:36:25] Loading plugin: Whirpoll.so
[17:36:25] Failed (plugins/Whirpoll.so: cannot open shared object file: No such file or directory)
[17:36:25] Loading plugin: crashdetect.so
[17:36:25] crashdetect v4.7.6 is OK.
[17:36:25] Loaded.
[17:36:25] Loading plugin: nativechecker.so
[17:36:25] Loaded.
[17:36:25] Loaded 4 plugins.

[17:36:26]
[17:36:26] Filterscripts
[17:36:26] ---------------
[17:36:26] Loaded 0 filterscripts.

[17:36:26] Error: Function not registered: 'WP_Hash'
[17:36:26] [debug] Run time error 19: "File or function is not found"
[17:36:26] [debug] WP_Hash
[17:36:26] Script[gamemodes/rc.amx]: Run time error 19: "File or function is not found"
[17:36:26] Number of vehicle models: 0


I have server hosted..i have whirpoll for 32bits (linux)..Need 64bits ?
Reply
#8

The plugin's name is not Whirpoll but Whirlpool. Rename it correctly in server.cfg (plugins line).

Also crashdetect's version 4.7.6 is very old and it's better to use its latest version.
Reply
#9

Ok..now it`s work..
So,i stayed on server 1 hour,server not shutdown..But when i set my admin level 5,and i typed /veh..server shutdown

Server log :

[19:01:33] [cmd] [Andrew Clinton]: /veh 411 1 1
[19:01:37] [debug] Run time error 4: "Array index out of bounds"
[19:01:37] [debug] Accessing element at index 4 past array upper bound 3
[19:01:37] [debug] AMX backtrace:
[19:01:37] [debug] #0 0029dd10 in IsDMVCar (vehicleid=51) at C:\Users\User\Desktop\Ross County RP\gamemodes\rc.pwn:41771
[19:01:37] [debug] #1 001da228 in public S@@_OnPlayerEnterVehicle (playerid=1, vehicleid=51, ispassenger=0) at C:\Users\User\Desktop\Ross County RP\gamemodes\rc.pwn:29398
[19:01:37] [debug] #2 0001df28 in public OnPlayerEnterVehicle (playerid=1, vehicleid=51, ispassenger=0) at C:\Users\User\Desktop\Ross County RP\pawno\include\YSI\y_hooks/impl.inc:1012
[19:01:37] [debug] Server crashed while executing rc.amx
[19:01:37] [debug] AMX backtrace:
[19:01:37] [debug] #0 0000000c in ?? () at C:\Users\User\Desktop\Ross County RP\pawno\include\float.inc:108
[19:01:37] [debug] #1 00020054 in public RL_OnPlayerKeyStateChange (playerid=1, newkeys=16, oldkeys=0) at C:\Users\User\Desktop\Ross County RP\pawno\include\YSI\y_hooks/impl.inc:1942
[19:01:37] [debug] #2 0000cbfc in public OnPlayerKeyStateChange (playerid=1, newkeys=16, oldkeys=0) at C:\Users\User\Desktop\Ross County RP\pawno\include\OPSP.inc:247
[19:01:37] [debug] Native backtrace:
[19:01:37] [debug] #0 0029f5f9 in crashdetect::PrintNativeBacktrace () from plugins/crashdetect.so
[19:01:37] [debug] #1 002a1c7c in crashdetect::Crash () from plugins/crashdetect.so
[19:01:37] [debug] #2 002a7123 in ?? () from plugins/crashdetect.so
[19:01:37] [debug] #3 00406400 in ?? ()
[19:01:37] [debug] #4 002a2022 in crashdetect::HandleAmxExec () from plugins/crashdetect.so
[19:01:37] [debug] #5 002a5d1b in ?? () from plugins/crashdetect.so
[19:01:37] [debug] #6 080d2c02 in ?? () from ./samp03svr
[19:01:37] [debug] #7 002a88af in amx_Exec () from plugins/crashdetect.so
[19:01:37] [debug] #8 002a2022 in crashdetect::HandleAmxExec () from plugins/crashdetect.so
[19:01:37] [debug] #9 002a5d1b in ?? () from plugins/crashdetect.so
[19:01:37] [debug] #10 080ad989 in ?? () from ./samp03svr
[19:01:37] [debug] #11 080c15a5 in ?? () from ./samp03svr
[19:01:37] [debug] #12 080c1f16 in ?? () from ./samp03svr
[19:01:37] [debug] #13 080b3bc8 in ?? () from ./samp03svr
[19:01:37] [debug] #14 080b5aec in ?? () from ./samp03svr
[19:01:37] [debug] #15 080b5bc2 in ?? () from ./samp03svr
[19:01:37] [debug] #16 080b14d3 in ?? () from ./samp03svr
[19:01:37] [debug] #17 00764d26 in __libc_start_main () from /lib/libc.so.6
[19:01:37] [debug] #18 0804b521 in ?? () from ./samp03svr
Reply
#10

Post IsDMVCar and show the line 41771 from it as well.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)