Run time error 20: Invalid index parameter <bad entry point>
#1

Hello!

So, I have started a new gamemode based on my fAdmin system, but with MySQL! Script works perfectly if its used as a filterscript, but as soon as I use it as gamemode, it gives my error: Run time error 20: Invalid index parameter <bad entry point>! Someone knows whats the mistake or what may cause this error?
Reply
#2

I am not sure, but I think it's messing
pawn Код:
main( ) { }
Reply
#3

Quote:
Originally Posted by Dwane
Посмотреть сообщение
I am not sure, but I think it's messing
pawn Код:
main( ) { }
I dont have that!
Reply
#4

Then add it at your Gamemode and the problem was solved!
Reply
#5

Works, thank you very much! rep+
Reply
#6

Quote:
Originally Posted by Dwane
Посмотреть сообщение
Then add it at your Gamemode and the problem was solved!
Where do i exactly put this?
Reply
#7

Quote:
Originally Posted by Subwoofer
Посмотреть сообщение
Where do i exactly put this?
Under includes and above defines, like this:
pawn Код:
#include <a_samp>


new
    g_tCrackTick[MAX_PLAYERS],
    g_bCrackState[MAX_PLAYERS];

main( ) { }

 #undef MAX_PLAYERS
 #define MAX_PLAYERS 15
Reply
#8

It can go anywhere. Just before callbacks is where I usually put it (one line above OnGameModeInit).
Reply
#9

delete, accidentally posted here.
Reply
#10

Nice!! thanks alot you helped me alot!
Reply
#11

This was helpful, thanks
Reply
#12

I put myself main () {}
but it still gives me the error Run time error 20: Invalid parameter index <bad entry point>
what to do?
Reply
#13

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
Then add it at your Gamemode and the problem was solved!
PHP код:
D:\games\NFS 2017 Next Build\gamemodes\NFS.pwn(1154) : error 021symbol already defined"main" 
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)