Jump to content

[DayZ]Проблема с палатками (Warning)


Recommended Posts

Может кто-то помочь решить варнинг с палатками?
 

Quote

Warning:DayZ\menu_client.lua:321: Bad argument @ 'getVehicleName' [Expected vehicle at argument 1,got object]
Warning:DayZ\menu_client.lua:324: Bad argument @ 'getVehicleName' [Expected vehicle at argument 1,got object]

Сам код:
 

319.if getElementData(source,"vehicle") then 
320.if not getElementData(source,"deadVehicle") then 
321.showClientMenuItem("Vehicle",(getVehicleName(getElementData(source,"parent")) or "Палатка"),getElementData(source,"parent"),source) 
322.setElementData(getLocalPlayer(),"currentCol",source) 
323.setElementData(getLocalPlayer(),"loot",true) 
324.setElementData(getLocalPlayer(),"lootname","Обыскать ("..(getVehicleName(getElementData(source,"parent")) or "Палатка")..")") 
325.setNewbieInfo (true,"Содержимое","Нажмите J чтобы открыть инвентарь!",source) 
326.return 
327.end 
328.end


Помогите пожалуйста,а то это самое надоедливое предупреждение!


 

Link to comment

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...