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=111855)



Run time error 20: "Invalid index parameter (bad entry Point" - privacy94 - 04.12.2009

Im getting the following error when trying to run my server:


Script[gamemodes/FBG.amx]: Run time error 20: "Invalid index parameter (bad entry point)"


I have searched the forum and there whas one topic that sayd you need main() above your OnGameModeInit().


I have did this but i still get the error.


Re: Run time error 20: "Invalid index parameter (bad entry Point" - Correlli - 04.12.2009

You don't have the function main in your script, like this:

pawn Code:
main()
{
}
You shouldn't get the error if you do it like this.


Re: Run time error 20: "Invalid index parameter (bad entry Point" - privacy94 - 04.12.2009

Quote:
Originally Posted by Don Correlli
You don't have the function main in your script.
I have the function main in my script.



Re: Run time error 20: "Invalid index parameter (bad entry Point" - privacy94 - 04.12.2009

Quote:
Originally Posted by Don Correlli
You don't have the function main in your script, like this:

pawn Code:
main()
{
}
You shouldn't get the error if you do it like this.
Still not working.


Re: Run time error 20: "Invalid index parameter (bad entry Point" - Bcklup - 02.01.2010

I feel your pain.
i have added main too


Re: Run time error 20: "Invalid index parameter (bad entry Point" - xalith - 04.06.2011

same happened to me, but when i added the main(){}, the server log no longer shows me the "runtime error 20" , instead it just shows vehicle models:0 and the server is still not working, all plugins are in place and the script compiles without a warning or error. and im 100% sure its from the script.


Re: Run time error 20: "Invalid index parameter (bad entry Point" - Ash. - 04.06.2011

What is your game mode text saying when this happens? (Aimed at xalith)


Re: Run time error 20: "Invalid index parameter (bad entry Point" - xalith - 04.06.2011

my whole server wouldnt show up, anyway i fixed it, i reset everything (server.cfg etc... ) and reuploaded now it works perfectly thanks anyway.





This forum requires that you wait 120 seconds between posts. Please try again in 26 seconds.


Re: Run time error 20: "Invalid index parameter (bad entry Point" - TheDominator - 21.02.2012

I think you get this error when you delete this part from the script:

public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Blank Filterscript by your name here");
print("--------------------------------------\n");
return 1;
}

public OnFilterScriptExit()
{
return 1;
}

#else

After I tried to compile my script without it I got the errors, and so I opened another PAWNO window and added that part back to my script and it worked without any errors.


Re: Run time error 20: "Invalid index parameter (bad entry Point" - iPLEOMAX - 21.02.2012

@TheDominator:

You just bumped a thread that was created on 04/12/2009.