What's wrong with this script/menu?
#1

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
Reply
#2

i should use a dialog its much easier
Reply
#3

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.
Reply
#4

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!
Reply
#5

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

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).
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)