1. Create a clear server game
2. 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");
// ref ZoS_Settings Settings_Server = new ZoS_Settings();
}
void ~My_Functions_MissionServer()
{
Write_Log("DeBuild My_Functions_MissionServer");
}
void Write_Log(string message)
{
Print(message);
//GetZoS_GlobalFunctions().WritePrintLog(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;
}
```
3. 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
}
```
4. Start server game and have in script.log:
```
SCRIPT : string message = 'Build ZoS_Functions_MissionServer'
```
5. Change
```
Write_Log("Build My_Functions_MissionServer");
```
on this code
```
Print("Build My_Functions_MissionServer TECT");
```
6. Start server game
7. Is a have in scripts.log this:
```
SCRIPT : Build ZoS_Functions_MissionServer
```
Why this is work a changed, with string message = ' ???