Quick error help please :)
#3

I believe the correct code is:
Код:
public OnFilterScriptInit()
{
	print("\n--------------------------------------");
	print(" Car Menu And Cars           ");
	print("--------------------------------------\n");
  carmenu = CreateMenu("Car Menu", 2, 200.0, 100.0, 150.0, 150.0);
  AddMenuItem(Menu:carmenu, 0, "Sports Cars");
  AddMenuItem(Menu:carmenu, 0, "Trucks");
  AddMenuItem(Menu:carmenu, 0, "Regular Cars");
 	return 1;
}
You had teleportmenu as the menu name for your pre-defined carmenu which was wrong. You also did not add a semi-clone at the end of defining the menu (Where you call CreateMenu). On top of that, you also had your menu outside the OnFilterScriptInit. I hope you understand your mistakes and get better.
Reply


Messages In This Thread
Quick error help please :) - by [mad]MLK - 14.07.2009, 19:41
Re: Quick error help please :) - by Jefff - 14.07.2009, 19:49
Re: Quick error help please :) - by [VL]Miklo - 14.07.2009, 20:52

Forum Jump:


Users browsing this thread: 1 Guest(s)