SA-MP Forums Archive
Run Time 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: Run Time Error (/showthread.php?tid=226780)



Run Time Error - SmugglesJr - 16.02.2011

Uh hey guys, Well i'm working on my second script freeroam and i've had a small problem.. When i compile my script, it's all good. but when i run the server i get this
"Script[gamemodes]/,,,.amx]: Run time error 20: "Invalid index parameter (bad entry point)"

If you guys know what's wrong, please reply.


Re: Run Time Error - SmugglesJr - 16.02.2011

So what have i done wrong?


Re: Run Time Error - Cameltoe - 16.02.2011

Like ****** stated :
Quote:
Originally Posted by ******
Посмотреть сообщение
There's no "main" function.
You have to add in an function like this:
pawn Код:
main(){}
It doesn't need to contain anything at all, but it need's to be there.


Re: Run Time Error - SmugglesJr - 16.02.2011

I've already added, still the same.


Re: Run Time Error - Cameltoe - 16.02.2011

Quote:
Originally Posted by SmugglesJr
Посмотреть сообщение
I've already added, still the same.
Did you remember to recompile lol ?


Re: Run Time Error - SmugglesJr - 16.02.2011

Of course, but where do i add it cause right now this is where it is

pawn Код:
#if defined FILTERSCRIPT


main(){}

#endif



Re: Run Time Error - SmugglesJr - 16.02.2011

LOL, Nvm i know what's wrong but thanks still helped


Re: Run Time Error - Cameltoe - 16.02.2011

Quote:
Originally Posted by SmugglesJr
Посмотреть сообщение
Of course, but where do i add it cause right now this is where it is

pawn Код:
#if defined FILTERSCRIPT


main(){}

#endif
Haha, made my day Anyway, next time use the edit button, double posting is against this forum's rules.

Goodluck.


Re: Run Time Error - SmugglesJr - 16.02.2011

Oh sorry, diden't know that and yeah i know :P I haven't worked on a sketch in ages so Anyway, i still got you on MSN never see you around tho - alextheipod@hotmail.com