SA-MP Forums Archive
What's wrong with this script/menu? - 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: What's wrong with this script/menu? (/showthread.php?tid=146815)



What's wrong with this script/menu? - SaW_[VrTx] - 09.05.2010

Why my menu looks like this?

[img width=960 height=768]/imageshack/img682/480/samp018zm.png[/img]

Uploaded with ImageShack.us

Code;

Код:
new Menu:spowers;
new Menu:spowers2;
new Menu:spowers3;
Код:
	spowers = CreateMenu("SuperPowers shop [BETA]", 1, 50.0, 180.0, 200.0, 200.0);

	AddMenuItem(spowers, 0, "Buy 1 superpower - Cost 1'000'000$");
	AddMenuItem(spowers, 0, "Sell 1 superpower - Receive 800'000$");
	AddMenuItem(spowers, 0, "Super Powers help");
	AddMenuItem(spowers, 0, "Super Powers help");
	AddMenuItem(spowers, 0, "Exit menu");
//
	spowers2 = CreateMenu("SuperPowers [BETA]", 1, 50.0, 180.0, 200.0, 200.0);

	AddMenuItem(spowers, 0, "Fix car - 1 Point.");
	AddMenuItem(spowers, 0, "Spawn car - 1 Point.");
	AddMenuItem(spowers, 0, "Teleport - 1 Point.");
	AddMenuItem(spowers, 0, "Spawn guns/hp/armour - 1 Point.");
	AddMenuItem(spowers, 0, "Exit");
//
	spowers3 = CreateMenu("SuperPower teleports [BETA]", 1, 50.0, 180.0, 200.0, 200.0);

	AddMenuItem(spowers, 0, "Los Santos.");
	AddMenuItem(spowers, 0, "San Fierro.");
	AddMenuItem(spowers, 0, "Las Venturas");
	AddMenuItem(spowers, 0, "Autobahn.");
	AddMenuItem(spowers, 0, "4 Dragons.");
	AddMenuItem(spowers, 0, "Caligulas Casino.");
	AddMenuItem(spowers, 0, "LVPD");
	AddMenuItem(spowers, 0, "Chilliad");
	AddMenuItem(spowers, 0, "Exit");
OnPlayerSelectMenuRow - http://samp.pastebin.com/3VfX0KsL


Re: What's wrong with this script/menu? - luckie12 - 09.05.2010

i should use a dialog its much easier


Re: What's wrong with this script/menu? - SaW_[VrTx] - 09.05.2010

I don't know how to.. haven't found any tutorial, except wiki ( https://sampwiki.blast.hk/wiki/ShowPlayerDialog ), but i don't understand anyway.


Re: What's wrong with this script/menu? - ToPhrESH - 22.12.2010

When you script your menu what you need to do is when you select row, hide the current one, then open the new menu it should. In yours you scripted it to where all shows when you type that command!


Respuesta: What's wrong with this script/menu? - admantis - 22.12.2010

Because all the menus and rows are showing at a once..


Re: What's wrong with this script/menu? - Grim_ - 22.12.2010

It could also be that the heading text is to long compared to the width of the menu. If it doesn't fit, it will just move to the next row, which may, or may not, cause overlapping. Increasing the width of the menu or shortening the heading text should do the trick (assuming the other responses are incorrect).