menu problem - 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: menu problem (
/showthread.php?tid=81903)
menu problem -
cigo - 14.06.2009
i have 2 menus in my gm. i have problem when i type admin command /gmx or when server restarts. when i open menu, i select one thing and then appears second menu, but when i shut down it and then turn on it's normal, everything works fine.
why?
Re: menu problem -
*ToM* - 14.06.2009
Can you please give us some codes ? We can't do anything without a code...
create menu
on player selected menu thing these two codes
Re: menu problem -
cigo - 15.06.2009
1st code:
Код:
Menu = CreateMenu("A menu",1,20,120,150,40);
and...
Код:
if(GetPlayerMenu(playerid) == Menu)
{
switch(row)
{
case 0:
{
...
2nd code:
Код:
spawnmenu = CreateMenu("Izvelies ieroci", 1, 220.0, 100.0, 150.0, 150.0);
...
Код:
spawnmenu2 = CreateMenu("Izvelies ieroci", 1, 220.0, 100.0, 150.0, 150.0);
...
Код:
spawnmenu3 = CreateMenu("Izvelies ieroci", 1, 220.0, 100.0, 150.0, 150.0);
...
Код:
spawnmenu4 = CreateMenu("Izvelies ieroci", 1, 220.0, 100.0, 150.0, 150.0);
...
Код:
spawnmenu5 = CreateMenu("Izvelies ieroci", 1, 220.0, 100.0, 150.0, 150.0);
...
and...
Код:
new Menu:CurrentMenu = GetPlayerMenu(playerid);
if(CurrentMenu == spawnmenu)
{
switch(row)
{
case 0:
{
...
Re: menu problem -
Abernethy - 15.06.2009
There are no effects..
Re: menu problem -
cigo - 15.06.2009
the menus ar continuing, i gave you just beginings...