Runtime Error 20: "Invalid index parameter (bad entry point)"
#1

Well ive put my GM on folder, and when i start samp Server a message apear..
I wish to know why GM done this errror and how i can fix it.

This message apear:


Script[gamemodes/RPG.amx]: Run time error 20: "Invalid index parameter (bad entry point)"

Why this message apear? Do i forget anything? I apreciate if someone could help me...
Reply
#2

Most likely a script bug, ask in the topic you downloaded the script from.
Reply
#3

http://forum.sa-mp.com/index.php?topic=69918.0
Reply
#4

I made this GM...im scripting it....but i wish to know wich kind of problem is it...to locate on codes...Any ideia?
Reply
#5

Mate if you made it then you should know what the last thing you did before that happened. Review what you did that would be my advice. Did you check that link?.
Reply
#6

You need a main(), even if empty.
Reply
#7

Tahnk you mate...thats it.... ive forgoted about the main()...thx
Reply
#8

If you'd followed dugi's link, you would get the answer right away...
Reply
#9

i have the same problem whats the main() thingy what do i put in it
Reply
#10

guys where must i put this main() must it be here
#include <a_samp>
public OnGameModeInit()
{
main()
{

of course its not because it says undefined symbol
Reply
#11

I put my main just above ongamemodeinit
This is a preview..
pawn Код:
main() {}

//{} closes main

public OnGameModeInit()
{
     return 1;
}
Hope it helps!
Reply
#12

Mybe Thatnot sure)

pawn Код:
#include <a_samp>

{
    main()
}
public OnGameModeInit()
{
    return 1;
}
Reply
#13

Please only reply if you have tested, or are almost completely sure the code you are providing will work. There is no use in providing useless code that will get no-one anywhere.

Following the example provided by r3k1lLz_ and your problem will be resolved.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)