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:
{
...