Runtime error 20 - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Runtime error 20 (
/showthread.php?tid=655130)
Runtime error 20 -
Stefand - 13.06.2018
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]
=======================================================================================================*/
Re: Runtime error 20 -
Calisthenics - 13.06.2018
What version of crashdetect and streamer plugin?
Re: Runtime error 20 -
Stefand - 13.06.2018
Crashdetect 4.8.9
Streamer v2.9.3
Re: Runtime error 20 -
Calisthenics - 13.06.2018
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.
Re: Runtime error 20 -
Stefand - 14.06.2018
Thanks mate