Posts: 5
Threads: 2
Joined: Jan 2009
Reputation:
0
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...
Posts: 284
Threads: 1
Joined: Jan 2009
Reputation:
0
Most likely a script bug, ask in the topic you downloaded the script from.
Posts: 5
Threads: 2
Joined: Jan 2009
Reputation:
0
I made this GM...im scripting it....but i wish to know wich kind of problem is it...to locate on codes...Any ideia?
Posts: 94
Threads: 1
Joined: Oct 2008
Reputation:
0
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?.
Posts: 988
Threads: 9
Joined: Jul 2006
Reputation:
0
You need a main(), even if empty.
Posts: 5
Threads: 2
Joined: Jan 2009
Reputation:
0
Tahnk you mate...thats it.... ive forgoted about the main()...thx
Posts: 2,628
Threads: 32
Joined: Apr 2007
Reputation:
0
If you'd followed dugi's link, you would get the answer right away...
Posts: 166
Threads: 48
Joined: Nov 2009
Reputation:
0
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
Posts: 2,896
Threads: 11
Joined: Sep 2008
Reputation:
0
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.