KulakovD Posted June 19, 2017 Share Posted June 19, 2017 Помогите пожалуйста решить предупреждение,и научите если можете решать варнинги,пожалуйста! Вот сам 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
AfterAll14 Posted June 19, 2017 Share Posted June 19, 2017 local penis = getElementData (source,"playerCol") if isElement(penis) then destroyElement(penis) end Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now