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

Добавил нового торговца:

прописал в mission.sqf

_unit_200 = objNull;
if (true) then
{
_this = createAgent ["TK_CIV_Woman02_EP1", [6889.47,11465.7,0.00140381], [], 0, "CAN_COLLIDE"];
_unit_200 = _this;
_this setDir 176.837;
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
_this setUnitAbility 0.60000002;
_this allowDammage false; _this disableAI 'FSM'; _this disableAI 'AUTOTARGET'; _this disableAI 'TARGET'; _this setBehaviour 'CARELESS'; _this forceSpeed 0;_this enableSimulation false;
};

добавил ему меню с товаром в server_traders.sqf

menu_TK_CIV_Woman02_EP1 = [
[["Броня",5001]],
[],
"neutral"
];

Добавил в epoch.sql раздел и товар

INSERT INTO `trader_tids` VALUES(5001, 'Броня', 200);
INSERT INTO `Traders_DATA` VALUES(9000, '[BMP2_INS,2]', 10, '[10,"ItemBriefcase100oz",1]', '[5,"ItemBriefcase100oz",1]', 0, 5001, 'trade_any_vehicle');
INSERT INTO `Traders_DATA` VALUES(9001, '[AAV,2]', 10, '[10,"ItemBriefcase100oz",1]', '[5,"ItemBriefcase100oz",1]', 0, 5001, 'trade_any_vehicle');

Импортировал в базу всё это дело.

В итоге - торговец есть, меню броня есть, нажимаю на меню появляется надпись loading items и через секунду исчезает, товара нет.

В логе сервера:

 HiveExt(0): [Error] Error executing |CHILD:399:5001:|
 HiveExt(0): [Error] Error executing |CHILD:399:5001:|

 

Помогите решить проблему.

Еще вопрос, что означает в строке trader_tids число 46 в конце, я подозреваю что номер юнита к которому это меню относится
 

Edited by Karakurd (see edit history)

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts




  • 0

Вот это я ступил хD кавычек то нету)

Дело не в кавычках)дело в том что ты прописал 5001 в тредерс так это название меню у торговца а в эскуф ты прописал название меню как 200)))вот вся проблема!

Всем доброго времени суток!!!Я тут вот с чем.Добавил торгоша меню и всё такое всё в поряде только нету товара у торговца меню есть а товара нету!Товар такой как ферари роус ройс и так далее.Пробовал добавить макаров пбс он тоже не отображается.Если кто знает в чём дело помогите решить проблему.Может чё куда ещё надо бобавить!? 

        это сам чувак:

 

menu_Rocker3_DZ = [
[["Новые ТС",800],["Воздушные ТС",801],["Оружие",802]],
[],
"neutral"
];
 

 

 
      Это пример меню:

 

INSERT INTO `Traders_DATA` VALUES(7575, '["Rolls_Royce",1]', 250, '[5,"ItemBriefcase100oz",1]', '[2,"ItemBriefcase100oz",1]', 0, 800, 'trade_any_vehicle');
INSERT INTO `Traders_DATA` VALUES(7576, '["f458",1]', 250, '[5,"ItemBriefcase100oz",1]', '[2,"ItemBriefcase100oz",1]', 0, 800, 'trade_any_vehicle');
INSERT INTO `Traders_DATA` VALUES(7577, '["Mi17_Civilian_DZ",1]', 250, '[5,"ItemBriefcase100oz",1]', '[2,"ItemBriefcase100oz",1]', 0, 801, 'trade_any_vehicle');
INSERT INTO `Traders_DATA` VALUES(7578, '["MakarovSD",3]', 250, '[2,"ItemGoldBar",1]', '[1,"ItemGoldBar",1]', 0, 802, 'trade_weapons');
 

 

      И так он выглядит в сервер пбо:

 

_unit_46 = objNull;
if (true) then
{
_this = createAgent ["Rocker3_DZ", [11666.3,3447.62,0.34], [], 0, "CAN_COLLIDE"];
_unit_46 = _this;
_this setDir 250;
_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
_this setUnitAbility 0.60000002;
_this allowDammage false; _this disableAI 'FSM'; _this disableAI 'MOVE'; _this disableAI 'AUTOTARGET'; _this disableAI 'TARGET'; _this setBehaviour 'CARELESS'; _this forceSpeed 0;_this enableSimulation false;};
};
 

 

Edited by TheFirstNoob
Да, япона мать, когда вы научитесь пользоваться кодом T_T (see edit history)

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.