Help with crashdetect
#1

Hi everyone,

So I'm having some problems with my server. I haven't started the actual server for a while and after I updated it to a new version it stopped working. First it didn't want to load the Gamemode and after some hardcore trying and updating the plugins I got following errors from the crashdetect plugin:

Код:
[debug] Run time error 4: "Array index out of bounds"
[debug] AMX backtrace:
[debug] #0 0003e4d8 in ?? (65535, 0, 0, 0, 0, 0, 0, 0, 0) from BalkanKingRP.amx
[debug] #1 0021a750 in ?? () from BalkanKingRP.amx
[debug] #2 000482a4 in public MV_OnGameModeInit () from BalkanKingRP.amx
[debug] #3 0003df38 in public SSCANF_OnGameModeInit () from BalkanKingRP.amx
[debug] #4 00030dc8 in public ScriptInit_OnGameModeInit () from BalkanKingRP.amx
[debug] #5 00000a84 in public OnPlayerRequestSpawn () from BalkanKingRP.amx
Can anybody explain this to me?

PS:

I already posted a thread on the "Server Support" page on the forum but nobody responded so I'm posting it again.

Thanks in advanced.
Reply
#2

The message about the array size is missing. Is it older version of crashdetect plugin or did you not paste full logs? If crashdetect plugin version is not 4.19.4 please update the plugin (https://github.com/Zeex/samp-plugin-...etect/releases)

You need to get more detailed logs, read this (https://github.com/Zeex/samp-plugin-...ith-debug-info) if you use pawno editor otherwise this (https://forum.sa-mp.com/showpost.php...67&postcount=5) example for Sublime Text.

After adding -d3 flag, recompile the script BalkanKingRP.pwn and start the server. When you receive debug logs from crashdetect, post server log again.
Reply
#3

So I'm having a weird problem. My server doesn't find the actual gamemode for some reason like I don't understand it.

Here's the log file:

Код:
[13:20:31] [debug] Run time error 19: "File or function is not found"
[13:20:31] [debug]  IsValidActor
[13:20:31] [debug]  GetPlayerPoolSize
[13:20:31] [debug]  json_parse_string
[13:20:31] [debug]  json_get_bool
[13:20:31] [debug]  json_get_string
[13:20:31] [debug]  json_get_int
[13:20:31] [debug]  json_close
[13:20:31] [debug]  json_get_array
[13:20:31] [debug]  json_array_count
[13:20:31] [debug]  json_array_at
[13:20:31] [debug]  SetVehicleParamsCarWindows
[13:20:31] [debug]  SetVehicleParamsCarDoors
[13:20:31] [debug] Run time error 19: "File or function is not found"
[13:20:31] [debug]  IsValidActor
[13:20:31] [debug]  GetPlayerPoolSize
[13:20:31] [debug]  json_parse_string
[13:20:31] [debug]  json_get_bool
[13:20:31] [debug]  json_get_string
[13:20:31] [debug]  json_get_int
[13:20:31] [debug]  json_close
[13:20:31] [debug]  json_get_array
[13:20:31] [debug]  json_array_count
[13:20:31] [debug]  json_array_at
[13:20:31] [debug]  SetVehicleParamsCarWindows
[13:20:31] [debug]  SetVehicleParamsCarDoors
[13:20:31] Script[gamemodes/BalkanKingRP.amx]: Run time error 19: "File or function is not found"
[13:20:31] Number of vehicle models: 0
[13:20:31] [debug] Run time error 19: "File or function is not found"
[13:20:31] [debug]  IsValidActor
[13:20:31] [debug]  GetPlayerPoolSize
[13:20:31] [debug]  json_parse_string
[13:20:31] [debug]  json_get_bool
[13:20:31] [debug]  json_get_string
[13:20:31] [debug]  json_get_int
[13:20:31] [debug]  json_close
[13:20:31] [debug]  json_get_array
[13:20:31] [debug]  json_array_count
[13:20:31] [debug]  json_array_at
[13:20:31] [debug]  SetVehicleParamsCarWindows
[13:20:31] [debug]  SetVehicleParamsCarDoors
[13:20:31] [debug] Run time error 19: "File or function is not found"
[13:20:31] [debug]  IsValidActor
[13:20:31] [debug]  GetPlayerPoolSize
[13:20:31] [debug]  json_parse_string
[13:20:31] [debug]  json_get_bool
[13:20:31] [debug]  json_get_string
[13:20:31] [debug]  json_get_int
[13:20:31] [debug]  json_close
[13:20:31] [debug]  json_get_array
[13:20:31] [debug]  json_array_count
[13:20:31] [debug]  json_array_at
[13:20:31] [debug]  SetVehicleParamsCarWindows
[13:20:31] [debug]  SetVehicleParamsCarDoors
[13:20:31] [debug] Run time error 19: "File or function is not found"
[13:20:31] [debug]  IsValidActor
[13:20:31] [debug]  GetPlayerPoolSize
[13:20:31] [debug]  json_parse_string
[13:20:31] [debug]  json_get_bool
[13:20:31] [debug]  json_get_string
[13:20:31] [debug]  json_get_int
[13:20:31] [debug]  json_close
[13:20:31] [debug]  json_get_array
[13:20:31] [debug]  json_array_count
[13:20:31] [debug]  json_array_at
[13:20:31] [debug]  SetVehicleParamsCarWindows
[13:20:31] [debug]  SetVehicleParamsCarDoors
[13:20:31] [debug] Run time error 19: "File or function is not found"
[13:20:31] [debug]  IsValidActor
[13:20:31] [debug]  GetPlayerPoolSize
[13:20:31] [debug]  json_parse_string
[13:20:31] [debug]  json_get_bool
[13:20:31] [debug]  json_get_string
[13:20:31] [debug]  json_get_int
[13:20:31] [debug]  json_close
[13:20:31] [debug]  json_get_array
[13:20:31] [debug]  json_array_count
[13:20:31] [debug]  json_array_at
[13:20:31] [debug]  SetVehicleParamsCarWindows
[13:20:31] [debug]  SetVehicleParamsCarDoors
[13:20:31] [debug] Run time error 19: "File or function is not found"
[13:20:31] [debug]  IsValidActor
[13:20:31] [debug]  GetPlayerPoolSize
[13:20:31] [debug]  json_parse_string
[13:20:31] [debug]  json_get_bool
[13:20:31] [debug]  json_get_string
[13:20:31] [debug]  json_get_int
[13:20:31] [debug]  json_close
[13:20:31] [debug]  json_get_array
[13:20:31] [debug]  json_array_count
[13:20:31] [debug]  json_array_at
[13:20:31] [debug]  SetVehicleParamsCarWindows
[13:20:31] [debug]  SetVehicleParamsCarDoors
[13:20:31] [debug] Run time error 19: "File or function is not found"
[13:20:31] [debug]  IsValidActor
[13:20:31] [debug]  GetPlayerPoolSize
[13:20:31] [debug]  json_parse_string
[13:20:31] [debug]  json_get_bool
[13:20:31] [debug]  json_get_string
[13:20:31] [debug]  json_get_int
[13:20:31] [debug]  json_close
[13:20:31] [debug]  json_get_array
[13:20:31] [debug]  json_array_count
[13:20:31] [debug]  json_array_at
[13:20:31] [debug]  SetVehicleParamsCarWindows
[13:20:31] [debug]  SetVehicleParamsCarDoors
[13:20:31] [debug] Run time error 19: "File or function is not found"
[13:20:31] [debug]  IsValidActor
[13:20:31] [debug]  GetPlayerPoolSize
[13:20:31] [debug]  json_parse_string
[13:20:31] [debug]  json_get_bool
[13:20:31] [debug]  json_get_string
[13:20:31] [debug]  json_get_int
[13:20:31] [debug]  json_close
[13:20:31] [debug]  json_get_array
[13:20:31] [debug]  json_array_count
[13:20:31] [debug]  json_array_at
[13:20:31] [debug]  SetVehicleParamsCarWindows
[13:20:31] [debug]  SetVehicleParamsCarDoors
[13:20:31] [debug] Run time error 19: "File or function is not found"
[13:20:31] [debug]  IsValidActor
[13:20:31] [debug]  GetPlayerPoolSize
[13:20:31] [debug]  json_parse_string
[13:20:31] [debug]  json_get_bool
[13:20:31] [debug]  json_get_string
[13:20:31] [debug]  json_get_int
[13:20:31] [debug]  json_close
[13:20:31] [debug]  json_get_array
[13:20:31] [debug]  json_array_count
[13:20:31] [debug]  json_array_at
[13:20:31] [debug]  SetVehicleParamsCarWindows
[13:20:31] [debug]  SetVehicleParamsCarDoors
[13:20:31] [debug] Run time error 19: "File or function is not found"
[13:20:31] [debug]  IsValidActor
[13:20:31] [debug]  GetPlayerPoolSize
[13:20:31] [debug]  json_parse_string
[13:20:31] [debug]  json_get_bool
[13:20:31] [debug]  json_get_string
[13:20:31] [debug]  json_get_int
[13:20:31] [debug]  json_close
[13:20:31] [debug]  json_get_array
[13:20:31] [debug]  json_array_count
[13:20:31] [debug]  json_array_at
[13:20:31] [debug]  SetVehicleParamsCarWindows
[13:20:31] [debug]  SetVehicleParamsCarDoors
[13:20:31] [debug] Run time error 19: "File or function is not found"
[13:20:31] [debug]  IsValidActor
[13:20:31] [debug]  GetPlayerPoolSize
[13:20:31] [debug]  json_parse_string
[13:20:31] [debug]  json_get_bool
[13:20:31] [debug]  json_get_string
[13:20:31] [debug]  json_get_int
[13:20:31] [debug]  json_close
[13:20:31] [debug]  json_get_array
[13:20:31] [debug]  json_array_count
[13:20:31] [debug]  json_array_at
[13:20:31] [debug]  SetVehicleParamsCarWindows
[13:20:31] [debug]  SetVehicleParamsCarDoors
[13:20:31] [debug] Run time error 19: "File or function is not found"
[13:20:31] [debug]  IsValidActor
[13:20:31] [debug]  GetPlayerPoolSize
[13:20:31] [debug]  json_parse_string
[13:20:31] [debug]  json_get_bool
[13:20:31] [debug]  json_get_string
[13:20:31] [debug]  json_get_int
[13:20:31] [debug]  json_close
[13:20:31] [debug]  json_get_array
[13:20:31] [debug]  json_array_count
[13:20:31] [debug]  json_array_at
[13:20:31] [debug]  SetVehicleParamsCarWindows
[13:20:31] [debug]  SetVehicleParamsCarDoors
[13:20:31] [debug] Run time error 19: "File or function is not found"
[13:20:31] [debug]  IsValidActor
[13:20:31] [debug]  GetPlayerPoolSize
[13:20:31] [debug]  json_parse_string
[13:20:31] [debug]  json_get_bool
[13:20:31] [debug]  json_get_string
[13:20:31] [debug]  json_get_int
[13:20:31] [debug]  json_close
[13:20:31] [debug]  json_get_array
[13:20:31] [debug]  json_array_count
[13:20:31] [debug]  json_array_at
[13:20:31] [debug]  SetVehicleParamsCarWindows
[13:20:31] [debug]  SetVehicleParamsCarDoors
[13:20:31] [debug] Run time error 19: "File or function is not found"
[13:20:31] [debug]  IsValidActor
[13:20:31] [debug]  GetPlayerPoolSize
[13:20:31] [debug]  json_parse_string
[13:20:31] [debug]  json_get_bool
[13:20:31] [debug]  json_get_string
[13:20:31] [debug]  json_get_int
[13:20:31] [debug]  json_close
[13:20:31] [debug]  json_get_array
[13:20:31] [debug]  json_array_count
[13:20:31] [debug]  json_array_at
[13:20:31] [debug]  SetVehicleParamsCarWindows
[13:20:31] [debug]  SetVehicleParamsCarDoors
EDIT: I updated most of my plugins which gave errors but it still doesn't work.
Reply
#4

Does SAMPSON plugin fail to load?

You need to update samp server and includes too. `IsValidActor` and `GetPlayerPoolSize` functions were added in 0.3.7
Reply
#5

Well I fixed it (Not really). There was a ******* song streamer plugin that I used and was using the SAMPSON plugin. The plugin itself wasn't updated and there is no update for it so I just deleted it. Thanks anyway I guess I learned why people get there kinds of errors and I know how to deal with it for the future.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)