Run Time Error
#1

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

So what have i done wrong?
Reply
#3

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

I've already added, still the same.
Reply
#5

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

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

pawn Код:
#if defined FILTERSCRIPT


main(){}

#endif
Reply
#7

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

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)