SA-MP Forums Archive
Run time error 20: "Invalid index parameter (bad entry point)" - 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: Run time error 20: "Invalid index parameter (bad entry point)" (/showthread.php?tid=605728)



Run time error 20: "Invalid index parameter (bad entry point)" - danielpalade - 23.04.2016

I don't know why, but I'm getting spammed with this message.
I have the main function above the OnGamemodeInit.
Whenever that function is called, it prints out "Main has been called", so the main is definatly called.
How can I fix this?

Код:
main()
{
	print("main() has been called.");
}

public OnGameModeInit()



Re: Run time error 20: "Invalid index parameter (bad entry point)" - povargek - 23.04.2016

Try after "#include <a_samp>"

Код:
main() {}



Re: Run time error 20: "Invalid index parameter (bad entry point)" - danielpalade - 23.04.2016

Quote:
Originally Posted by povargek
Посмотреть сообщение
Try after "#include <a_samp>"

Код:
main() {}
The thing is, I have more than one plugin. So should I put him at the end of my last plugin?


Re: Run time error 20: "Invalid index parameter (bad entry point)" - povargek - 23.04.2016

Quote:
Originally Posted by danielpalade
Посмотреть сообщение
The thing is, I have more than one plugin. So should I put him at the end of my last plugin?
Maybe you meant no plugin, and filterscript?

"main()" in filterscript should not be. Check out a blank new.pwn


Re: Run time error 20: "Invalid index parameter (bad entry point)" - danielpalade - 23.04.2016

Quote:
Originally Posted by povargek
Посмотреть сообщение
Maybe you meant no plugin, and filterscript?

"main()" in filterscript should not be. Check out a blank new.pwn
No I ment includes, sorry.


Re: Run time error 20: "Invalid index parameter (bad entry point)" - povargek - 23.04.2016

main() must use once in gamemode


Re: Run time error 20: "Invalid index parameter (bad entry point)" - Misiur - 23.04.2016

Do you have by any chance crashdetect? https://github.com/Zeex/samp-plugin-...es/tag/v4.15.1 - try updating to latest version as older version clashes with some other plugins


Re: Run time error 20: "Invalid index parameter (bad entry point)" - danielpalade - 23.04.2016

Quote:
Originally Posted by Misiur
Посмотреть сообщение
Do you have by any chance crashdetect? https://github.com/Zeex/samp-plugin-...es/tag/v4.15.1 - try updating to latest version as older version clashes with some other plugins
Thanks, the actually helped me.