SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 13/06/2018, 07:16 PM   #1
Stefand
Gangsta
 
Stefand's Avatar
 
Join Date: Sep 2011
Location: The Netherlands
Posts: 781
Reputation: 27
Default Runtime error 20

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: http://forum.sa-mp.com/showthread.php?t=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]
=======================================================================================================*/
__________________


Scripter & Mapper
_______________________
Stefand is offline   Reply With Quote
Old 13/06/2018, 07:23 PM   #2
Calisthenics
Huge Clucker
 
Join Date: May 2018
Posts: 281
Reputation: 48
Default Re: Runtime error 20

What version of crashdetect and streamer plugin?
Calisthenics is offline   Reply With Quote
Old 13/06/2018, 07:26 PM   #3
Stefand
Gangsta
 
Stefand's Avatar
 
Join Date: Sep 2011
Location: The Netherlands
Posts: 781
Reputation: 27
Default Re: Runtime error 20

Crashdetect 4.8.9
Streamer v2.9.3
__________________


Scripter & Mapper
_______________________
Stefand is offline   Reply With Quote
Old 13/06/2018, 07:33 PM   #4
Calisthenics
Huge Clucker
 
Join Date: May 2018
Posts: 281
Reputation: 48
Default Re: Runtime error 20

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.
Calisthenics is offline   Reply With Quote
Old 14/06/2018, 08:26 AM   #5
Stefand
Gangsta
 
Stefand's Avatar
 
Join Date: Sep 2011
Location: The Netherlands
Posts: 781
Reputation: 27
Default Re: Runtime error 20

Thanks mate
__________________


Scripter & Mapper
_______________________
Stefand is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Runtime error ? , but already downloaded Runtime. TheSentinels Client Support 8 04/10/2013 03:57 PM
Error 19; Runtime error: File or function cannot be found. Josh_Main Scripting Help 9 17/08/2012 01:15 PM
RunTIme Error from Client... Mircrosoft Visual c++ Runtime Libary asdfgh98 Client Support 0 22/02/2010 03:08 PM
Microsoft visual c++ runtime library Runtime error! waringzone Client Support 3 16/06/2009 07:41 PM


All times are GMT. The time now is 11:02 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.