Добро пожаловать на форум, Гость, это ваша панель
  • Страница 1 из 1
  • 1
My own menu doesn't work correctly.
dancerek
Дата: Понедельник, 12.01.2015, 16:32 | Сообщение # 1
офлайн

  • Сообщения: 65
  • Награды: 0
  • Замечания:
 
Hi! I have created my own menu, connected to war3menu. It is kind of guide. Part of it works, but the rest doesn't and I don't have any idea why. I think I did everything correctly...

Here are menus.inl parts.
1. War3menu:


2. And my code:



And part of motd.inl:



"Poradnik" means guide (путеводитель), "ogolny opis" means general description, "przydatne komendy" means useful commands and "opis ras" means description of races.
The problem looks like that: Poradnik menu (first public) displays correct. It looks as follows:

Код
1. General description
2. Useful commands
3. Description of races
4. Descritpion of races (2)

When i click any number from this menu, nothing happens - MOTD windows don't display. menu_Opis_Ras and menu_Opis_Ras2 don't appear too.
Of course, I have uploaded every .txt file to "addons/amxmodx/configs/war3ft" and I have added new words to War3FT.txt file. Everything is done fine.
Have I done something wrong? Is there any error in this code?
Any help would be appreciated.

Добавлено (12.01.2015, 16:32)
---------------------------------------------
Bump

Сообщение отредактировал dancerek - Среда, 07.01.2015, 16:52
 
KILLER7x7
Дата: Понедельник, 12.01.2015, 18:45 | Сообщение # 2
офлайн

  • Сообщения: 94
  • Награды: 4
  • Замечания:
 
This is because the menu is not registered
menu can be registered language.inl


killer7x7_ua



 
dancerek
Дата: Среда, 14.01.2015, 04:49 | Сообщение # 3
офлайн

  • Сообщения: 65
  • Награды: 0
  • Замечания:
 
Thanks! But I still have a problem.
I added this to language.inl:


And I added this to war3ft.txt:


And now situation goes like this. When I delete above statements from war3ft.txt, my menu works fine. There is some ML_NOTFOUND errors of course, but the menu works good. When I click a button, there appears thing I expected to appear.
But with those words in war3ft.txt, my menu doesn't work good. When I click 6 from war3menu, there appears my menu, but when I click any number from this menu, it shows me informations about races in motd from MENU_OPIS_RAS2.
I think there is an error in this:

Any help?
 
  • Страница 1 из 1
  • 1
Поиск: