Need help?
Create a topic in the appropriate section
Don't write everything in the chat!Take a look at the marketplace
There you can buy
everything related to game serversDon't want a ban?
Please read our rules
Don't disturb the order!Sell or buy?
Use services of the guarantor
We will make your deal safe



- 0

Не прокидывается ссылка на класс из Mission в Game
Asked by
kingzfate
-
Our picks
Создал в папке 5_Mission класс
class BMMenu extends UIScriptedMenu { bool IsOnline() { // my code return false; } } ref BMMenu m_BMMenu; static BMMenu BMMenu() { if (!m_BMMenu) { m_BMMenu = new BMMenu; } return m_BMMenu; }
Далее, пытаюсь получить проинициализированный класс в 3_Game, посмотрел аналоги в коде богемии и делаю всё как у них
modded class ExtendedController { override bool ShowUser(){ return BMMenu().IsOnline(); } }
Компилирую, подписываю, заливаю на тестовый сервер и получаю ошибку в ExtendedController, Undefined function 'ExtendedController.BMMenu'.
Я так понимаю он не видит функцию, подскажите куда копать? Где то ещё ссылки надо добавить?
Share this post
Link to post
Share on other sites