SA-MP Forums Archive
Error when loading Game mod - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Error when loading Game mod (/showthread.php?tid=138912)



Error when loading Game mod - samuel_hamza - 03.04.2010

Well, when I'm done in my GM, and after compiling, I can't start my server since I get this error
Код:
Run time error 20: "Invalid index parameter (bad entry point)"
After done some searching all they said is put main() {}
But I got it already, here the part of my Gamemode.
PLease help here

Код:
public OnFilterScriptExit()
{
	return 1;
}

main()
{
	print("\n----------------------------------");
	print(" Las Vanturas Role Play");
	print("----------------------------------\n");
}


public OnGameModeInit()
{
  ShowPlayerMarkers(PLAYER_MARKERS_MODE_GLOBAL);
	ShowNameTags(1);
	SetNameTagDrawDistance(20.0);
  DisableInteriorEnterExits();



Re: Error when loading Game mod - samuel_hamza - 03.04.2010

Noone


Re: Error when loading Game mod - [MWR]Blood - 03.04.2010

Try to put this at the beginning of your script:
pawn Код:
main()
{
    print("\n---text here----------.");
   
    print("\n---text here----------.");

}



Re: Error when loading Game mod - samuel_hamza - 03.04.2010

Oh, I don't get his error, yeah.
But
When I load the server, it doesn't detect my GM, it just say, Vehicle model 0, and when logging in game, I just log as default Skin, as defaut place
Whichmeans the server doens't read my GM .



Re: Error when loading Game mod - johnathon956 - 03.04.2010

Quote:
Originally Posted by samuel_hamza
Well, when I'm done in my GM, and after compiling, I can't start my server since I get this error
Код:
Run time error 20: "Invalid index parameter (bad entry point)"
After done some searching all they said is put main() {}
But I got it already, here the part of my Gamemode.
PLease help here

Код:
public OnFilterScriptExit()
{
	return 1;
}

main()
{
	print("\n----------------------------------");
	print(" Las Vanturas Role Play");
	print("----------------------------------\n");
}


public OnGameModeInit()
{
  ShowPlayerMarkers(PLAYER_MARKERS_MODE_GLOBAL);
	ShowNameTags(1);
	SetNameTagDrawDistance(20.0);
  DisableInteriorEnterExits();
try this out

pawn Код:
public OnFilterScriptExit()
{
    return 1;
}

main()
{
    print("\n----------------------------------");
    print(" --------Las Vanturas Role Play------");
    print("----------------------------------\n");
}


public OnGameModeInit()
{
  ShowPlayerMarkers(PLAYER_MARKERS_MODE_GLOBAL);
  ShowNameTags(1);
  SetNameTagDrawDistance(20.0);
  DisableInteriorEnterExits();



Re: Error when loading Game mod - [MWR]Blood - 03.04.2010

Ummm that is some problem with your script.Do you get any errors / warnings when you compile it?


Re: Error when loading Game mod - samuel_hamza - 03.04.2010

PM sent!
I sent'd my full script to avoid copy paste, hopefully you can find any solutions


Re: Error when loading Game mod - samuel_hamza - 03.04.2010

Thanks very much!