Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: triggerze.
1. Element usuwa się po drugim triggerze.
Witam,
mam pewien problem, mam funkcje kt?ra powoduje usuwanie wczesniej stworzonych element?w, chcia?bym by funkcja sprawdza?a czy element istnieje je?eli istnieje to go usuwa, mam taki kod co ciekawe po wpisaniu tescik5 dopiero po drugim razie usuwa blip, my?le ?e to co? z funkcj? warunkow? ?le zrobilem.

function zakonczPrace()
toggleControl("sprint", true)
toggleControl("jump", true)
if 
isElement(wyl_marker) then
destroyElement
(wyl_marker)
elseif 
isElement(wysyp_blip) then
destroyElement
(wysyp_blip)
elseif 
isElement(wyl_blip) then
destroyElement
(wyl_blip)
elseif 
isElement(wyl_obiekt) then
destroyElement
(wyl_obiekt)
end
end        
addEvent
("pracaZakoncz", true)
addEventHandler("pracaZakoncz", root, zakonczPrace)
addCommandHandler("tescik5", zakonczPrace)

Stawiam :piwo: :piwo: .

[ Dodano: 2019-05-22, 01:38 ]
@ref