Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • 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 servers
  • Don'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
davidx

водяной знак

проблема с водяным знаком. ругается в ​​description.ext  на description.ext line 184: .RscTitles: Members already defined.

как использовать .RscTitles 2 раза?

 

};

#include "SCRIPTS\extra_rc.hpp"
#include "dzgm\defines.hpp"
class RscTitles
{
    #include "dzgm\icons.hpp"
	
};
#include "dzgm\groupManagement.hpp"

    // DayZ Watermark
    class RscTitles {
    class wm_disp {
    idd = -1;
    onLoad = "uiNamespace setVariable ['wm_disp', _this select 0]";
    fadein = 0;
    fadeout = 0;
    duration = 10e10;
    controlsBackground[] = {};
    objects[] = {};
    class controls {
    class wm_text2 {
    idc = 1;
    x = safeZoneX+0.027;//safeZoneW*0.01;
    y = safeZoneY+safeZoneH-0.16;
    w = 1.151*safeZoneH;
    h = 0.057*safeZoneH;
    shadow = 2;
    class Attributes
    {
    font = "EtelkaNarrowMediumPro";
    color = "#24FFFFFF";
    align = "left"; // put "center" here if you want some background
    valign = "middle";
    shadow = 2;
    };
    colorBackground[] = { 1, 0.3, 0, 0 };  // uncomment and increase 4th number to have a background
    font = "EtelkaNarrowMediumPro";
    size = 0.06*safeZoneH;
    type = 13;
    style = 0;
    text="";
    };
    };
    };
    };
Edited by davidx (see edit history)

Share this post


Link to post
Share on other sites

6 answers to this question

Recommended Posts

  • 0

Его нельзя использовать 2 раза!

 

class RscTitles
{
    #include "dzgm\icons.hpp"
    
    // DayZ Watermark
      class wm_disp {
    idd = -1;
    onLoad = "uiNamespace setVariable ['wm_disp', _this select 0]";
    fadein = 0;
    fadeout = 0;
    duration = 10e10;
    controlsBackground[] = {};
    objects[] = {};
    class controls {
    class wm_text2 {
    idc = 1;
    x = safeZoneX+0.027;//safeZoneW*0.01;
    y = safeZoneY+safeZoneH-0.16;
    w = 1.151*safeZoneH;
    h = 0.057*safeZoneH;
    shadow = 2;
    class Attributes
    {
    font = "EtelkaNarrowMediumPro";
    color = "#24FFFFFF";
    align = "left"; // put "center" here if you want some background
    valign = "middle";
    shadow = 2;
    };
    colorBackground[] = { 1, 0.3, 0, 0 };  // uncomment and increase 4th number to have a background
    font = "EtelkaNarrowMediumPro";
    size = 0.06*safeZoneH;
    type = 13;
    style = 0;
    text="";
    };
    };
    };
    
};
#include "dzgm\groupManagement.hpp"

 

Вот так сделай, если помог отпишись!
 

Share this post


Link to post
Share on other sites



  • 0

Зачем вообще 2 RscTiles? Оставь один

Share this post


Link to post
Share on other sites
  • 0

 

Вот так сделай, если помог отпишись!

 

ну сервер запускаться стал,но водяной знак не показывается все равно(

Share this post


Link to post
Share on other sites
  • 0

ну сервер запускаться стал,но водяной знак не показывается все равно(

значит ты в инфи что-то не правильно подключил!!

Ищи сначала сам ошибку , а не сразу сюда пишешь!

Не надо кучу тем создавать!

 

ну сервер запускаться стал,но водяной знак не показывается все равно(

я поставил с первого раза все работает

 

вот ссылка http://epochmod.ru/forum/index.php?/topic/30-kak-sdelat-na-servere-logo-vodianoi-znak/

Edited by vitaha121 (see edit history)

Share this post


Link to post
Share on other sites
  • 0

значит ты в инфи что-то не правильно подключил!!

Ищи сначала сам ошибку , а не сразу сюда пишешь!

Не надо кучу тем создавать!

 

я поставил с первого раза все работает

 

вот ссылка http://epochmod.ru/forum/index.php?/topic/30-kak-sdelat-na-servere-logo-vodianoi-znak/

именно по этому гайду и делал. открыл init.sqf в конец добавил 



    //DayZ Watermark
    if (!isNil "server_name") then {
    [] spawn {
    waitUntil {(!isNull Player) and (alive Player) and (player == player)};
    waituntil {!(isNull (findDisplay 46))};
    5 cutRsc ["wm_disp","PLAIN"];
    ((uiNamespace getVariable "wm_disp") displayCtrl 1) ctrlSetText server_name;
    };
    };

а после dayz_previousID = 0;

server_name = "Servername";

 

в description.ext так как Вы говорили

Share this post


Link to post
Share on other sites
  • 0

  #include "dzgm\icons.hpp"

это конец поставь в class RscTitles!

ты имя свое сервера вписал сюда server_name = "Servername"; ?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

By using this site, you automaticly agree to our Guidelines and Privacy Policy.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.