Jump to content

[DayZ]Как решать варнинги?Помогите пожалуйста с предупреждением!


Recommended Posts

Помогите пожалуйста решить предупреждение,и научите если можете решать варнинги,пожалуйста!
Вот сам Warning

Quote

WARNING: [DayZ-MTA]\DayZ\spawn.lua:422: Bad argument @ 'destroyElement' [Expected element at argument 1]


Вот сама строка
 

	if getElementData (source,"playerCol") then
	destroyElement(getElementData(source,"playerCol"))
	end

422 Строка это     destroyElement(getElementData(source,"playerCol"))
Вот целый код
 

	setTimer(setElementPosition,500,1,source,6000,6000,0)
	triggerClientEvent(source,"onClientPlayerDeathInfo",source)
	setAccountData(account,"isDead",true)
	setElementData(source,"isDead",true)
	triggerClientEvent ( "onRollMessageStart", getRootElement(),"#FFFFFF"..getPlayerName(source).." #FF0000был убит",0,22,255, "died")
	if getElementData (source,"playerCol") then
	destroyElement(getElementData(source,"playerCol"))
	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...