14.07.2009, 20:52
I believe the correct code is:
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.
Код:
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; }
