SA-MP Forums Archive
Bug in 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)
+--- Thread: Bug in menu. (/showthread.php?tid=348718)



Bug in menu. - The__ - 06.06.2012


pawn Код:
GunM = CreateMenu("Weapons", 1, 50.0, 180.0, 200.0, 200.0);
AddMenuItem(GunM, 0, "Colt 45 - $1700");
AddMenuItem(GunM, 0, "Desert Eagle - $4500");
AddMenuItem(GunM, 0, "Shotgun - $5000");
AddMenuItem(GunM, 0, "Rifle - $11000 ");
AddMenuItem(GunM, 0, "Mac10 - $3200");
AddMenuItem(GunM, 0, "Tec9 - $3200");
AddMenuItem(GunM, 0, "Kevlar Vest - $3500");
This is the code....


Re: Bug in menu. - MadeMan - 06.06.2012

Can you select the hidden items?


Re: Bug in menu. - The__ - 06.06.2012

Yes.


Re: Bug in menu. - The__ - 07.06.2012

Bump.


Re: Bug in menu. - zDevon - 07.06.2012

You could try this. Yes I'm aware of the CreateMenu column restrictions however after reviewing some other scripts I've found that parameter in use to count rows instead. It's odd but it must not cause any problems so it's worth a shot.

pawn Код:
GunM = CreateMenu("Weapons", 7, 50.0, 180.0, 200.0, 200.0);
AddMenuItem(GunM, 0, "Colt 45 - $1700");
AddMenuItem(GunM, 0, "Desert Eagle - $4500");
AddMenuItem(GunM, 0, "Shotgun - $5000");
AddMenuItem(GunM, 0, "Rifle - $11000 ");
AddMenuItem(GunM, 0, "Mac10 - $3200");
AddMenuItem(GunM, 0, "Tec9 - $3200");
AddMenuItem(GunM, 0, "Kevlar Vest - $3500");
All I could come up with personally is the strings being too long, which obviously isn't the case.