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
-
Our picks
Сервер выбивает :
NULL pointer to instance Class: 'DayZPlayerInventory' Function: 'ProccessInputData' Stack trace: scripts/4_World/systems\inventory\dayzplayerinventory.c:546 scripts/4_World/systems\inventory\dayzplayerinventory.c:1102 scripts/4_World/systems\inventory\dayzplayerinventory.c:482
Из за функции (проверка предмета в слотах игрока):
bool test1() { for ( int att_i = 0; att_i < GetInventory().AttachmentCount(); ++att_i ) { EntityAI attachment = GetInventory().GetAttachmentFromIndex( att_i ); ref CargoBase attachment_cargo = attachment.GetInventory().GetCargo(); if ( attachment_cargo ) { for ( int cgo_i = 0; cgo_i < attachment_cargo.GetItemCount(); ++cgo_i ) { EntityAI cargo_item = attachment_cargo.GetItem( cgo_i ); if ( cargo_item.GetType() == "WoodAxe" ) { return true; } } } } return false; }
Пробовал функцию закидывать на сервер, на клиент и сразу на клиент и сервер. Есть варианты решения?
Edited by NoyName (see edit history)Share this post
Link to post
Share on other sites