SA-MP Forums Archive
Run time error 20: Invalid index parameter <bad entry point> - 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)
+--- Thread: Run time error 20: Invalid index parameter <bad entry point> (/showthread.php?tid=320382)



Run time error 20: Invalid index parameter <bad entry point> - fiki574 - 22.02.2012

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?


Re: Run time error 20: Invalid index parameter <bad entry point> - Konstantinos - 22.02.2012

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



Re: Run time error 20: Invalid index parameter <bad entry point> - fiki574 - 22.02.2012

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


Re: Run time error 20: Invalid index parameter <bad entry point> - Konstantinos - 22.02.2012

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


Re: Run time error 20: Invalid index parameter <bad entry point> - fiki574 - 22.02.2012

Works, thank you very much! rep+


Re: Run time error 20: Invalid index parameter <bad entry point> - Subwoofer - 03.06.2012

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


Re: Run time error 20: Invalid index parameter <bad entry point> - Da' J' - 07.06.2012

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



Re: Run time error 20: Invalid index parameter <bad entry point> - MP2 - 07.06.2012

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


Re: Run time error 20: Invalid index parameter <bad entry point> - Matt - 08.06.2013

delete, accidentally posted here.


Re: Run time error 20: Invalid index parameter <bad entry point> - JimmyCh - 20.06.2013

Nice!! thanks alot you helped me alot!


Re: Run time error 20: Invalid index parameter <bad entry point> - Zenonz - 08.12.2014

This was helpful, thanks


Re: Run time error 20: Invalid index parameter <bad entry point> - blade7788 - 29.11.2016

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


Re: Run time error 20: Invalid index parameter <bad entry point> - DandyCorleone - 02.12.2016

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"