Runtime error 20
#1

Hello,

So my server crashed randomly recently so I added crashdetect, now my console is being spammed by any action with "[debug] Run time error 20: "Invalid index parameter (bad entry point)""

I looked it up and followed this fix tutorial: https://sampforum.blast.hk/showthread.php?tid=482429

I have it below my includes and it still gives the runtime error so I am out of clues..

Code:
#include <LVRP/a_samp>
#include <LVRP/mysql>
#include <LVRP/crashdetect>
#include <LVRP/foreach>
#include <LVRP/Camera>
#include <LVRP/YSI\y_timers>
#include <LVRP/YSI\y_hooks>
#include <LVRP/streamer>
#include <LVRP/j_fader>
#include <LVRP/cuffs>
#include <LVRP/mSelection>
#include <LVRP/regex>
#include <LVRP/sscanf>
#include <LVRP/strlib>
#include <LVRP/discord-connector>
#include <LVRP/zcmd>
#include <s_fader> 
main(){}

//MYSQL SETTINGS

new MySQL:conne;

#define			SCRIPT_MODE			"Roleplay"
#define     	SCRIPT_VERSION      "0.0.1"
#define     	Server_Hostname	    "Las Venturas Roleplay"

#define TimeZoneCorrection 7200

PreloadAnimLib(playerid, animlib[]) ApplyAnimation(playerid,animlib,"null",0.0,0,0,0,0,0);

public OnGameModeInit()
{

	OnGameModeInitEx();

	#if defined main_OnGameModeInit
		return main_OnGameModeInit();
	#else
		return 1;
	#endif
}

	#if defined _ALS_OnGameModeInit
		#undef OnGameModeInit
	#else
		#define _ALS_OnGameModeInit
	#endif

#define OnGameModeInit main_OnGameModeInit
#if defined main_OnGameModeInit
	forward main_OnGameModeInit();
#endif


/*======================================================================================================
										[Modules]
=======================================================================================================*/
Reply
#2

What version of crashdetect and streamer plugin?
Reply
#3

Crashdetect 4.8.9
Streamer v2.9.3
Reply
#4

Very old version of crashdetect. Update to latest: https://github.com/Zeex/samp-plugin-...ases/tag/v4.19

This problem has been fixed in version 4.15.1 for crashdetect and version 2.7.5.0 for streamer. It is caused because of different SAMPGDK version between the two plugins.
Reply
#5

Thanks mate
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)