PC version server game 1.02.151010
Description
Description
Details
Details
- Severity
- Tweak
- Resolution
- Open
- Reproducibility
- Always
- Operating System
- Windows 7 x64
- Operating System Version
- 6.1(7601)
- Category
- Scripting
Steps To Reproduce
- Create a clear server game
- Add a my some code as
#include "$CurrentDir:mpmissions\my_mission_server.chernarusplus\mycode_functions.c"
with code:
class My_Functions_MissionServer { void My_Functions_MissionServer() { Write_Log("Build My_Functions_MissionServer"); // Print("Build My_Functions_MissionServer TECT"); } void ~My_Functions_MissionServer() { Write_Log("DeBuild My_Functions_MissionServer"); } void Write_Log(string message) { Print(message); } } static ref My_Functions_MissionServer g_My_Functionss_MissionServer = new ref My_Functions_MissionServer(); //static ref My_Functions_MissionServer g_My_Functionss_MissionServer; static ref My_Functions_MissionServer GetMy_Functions() { if ( !g_My_Functionss_MissionServer ) { g_My_Functionss_MissionServer = new ref My_Functions_MissionServer(); } return g_My_Functionss_MissionServer; }
- Add in default init.c in block
class CustomMission: MissionServer
a new block
void OnInit () { super.OnInit(); GetMy_Functions().CreateCustomDirsServer(); //Creating Directories for Server Functions }
- Start server game and have in script.log:
SCRIPT : string message = 'Build ZoS_Functions_MissionServer'
- Change
Write_Log("Build My_Functions_MissionServer");
on this code
Print("Build My_Functions_MissionServer TECT");
- Start server game
- Is a have in scripts.log this:
SCRIPT : Build ZoS_Functions_MissionServer
Why this is work a changed, with string message = ' ???