Run time error 20: "Invalid index parameter (bad entry Point"
#1

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.
Reply
#2

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.
Reply
#3

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

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.
Reply
#5

I feel your pain.
i have added main too
Reply
#6

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.
Reply
#7

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

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.
Reply
#9

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.
Reply
#10

@TheDominator:

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


Forum Jump:


Users browsing this thread: 1 Guest(s)