SA-MP Forums Archive
Very strange error! - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Very strange error! (/showthread.php?tid=105746)



Very strange error! - Rickyboy30 - 30.10.2009

Hey, Well I was making a RPG server and of course wanted to test it.

So I wanted to load the server, then I got the following error in my server console:
Код:
[00:21:45] Script[gamemodes/RPG.amx]: Run time error 20: "Invalid index parameter (bad entry point)"
[00:21:48] --- Server Shutting Down.
[00:21:48] 
[00:21:48] ====================
[00:21:48] 
[00:21:48]  Whirlpool unloaded
[00:21:48] 
[00:21:48] ====================
[00:21:48]
What's going on with that ?


Re: Very strange error! - Correlli - 30.10.2009

You need the function main in your script.

pawn Код:
main()
{
}



Re: Very strange error! - Rickyboy30 - 31.10.2009

I already got that one after my Forwards:
Код:
main()
{
	print("\n----------------------------------");
	print(" Rick's RPG server");
	print("----------------------------------\n");
}
EDIT: Fixed