Wysłany: 2018-12-29, 00:27
KRRRECIK123
Wiek: 25 Na forum: 3935 dni Posty: 51
Nick w MP: Krrrecik
Witam mam jeden problem, mianowicie nie wiem jak przenie?? argument z jednej funkcji do drugiej
function onVehClick ( button , state , x , y , wx , wy , wz , celement )
if celement then
local elementtype = getElementType ( celement )
if elementtype == "vehicle" then
guiSetVisible ( destroy , true )
guiSetVisible ( wejdz , true )
guiSetVisible ( napraw , true )
celement = veh
end
end
end
addEventHandler ( "onClientClick" , getRootElement (), onVehClick )
function onDestroy ( button )
destroyElement ( veh )
end
addEventHandler ( "onClientGUIClick" , destroy , onZniszcz )
Chcia?bym wiedzie? jak przenie?? z pierwszej funkcji argument "celement" do drugiej, bardzo prosze o pomoc.
Wysłany: 2018-12-29, 11:10
Kalizman
Wiek: 23 Na forum: 3651 dni Posty: 1394
Piwa : 4619
Nie bardzo wiem o co Ci chodzi, ale mo?e co? takiego:
local celement = nil
function onVehClick ( button , state , x , y , wx , wy , wz , celement )
if celement then
local elementtype = getElementType ( celement )
if elementtype == "vehicle" then
guiSetVisible ( destroy , true )
guiSetVisible ( wejdz , true )
guiSetVisible ( napraw , true )
celement = veh
end
end
end
addEventHandler ( "onClientClick" , getRootElement (), onVehClick )
-- jakas funkcja
if celement then
celement = false -- czy co tam chcesz z tym zrobic
end
Więcej szczegółów
Wystawiono 1 piw(a):KRRRECIK123
Wysłany: 2018-12-29, 18:24
KRRRECIK123
Wiek: 25 Na forum: 3935 dni Posty: 51
Nick w MP: Krrrecik
Kalizman , O dokladnie o to chodzilo, dziekuje slicznie
Do zamkniecia
Tagi: przenoszenie :: argumentow
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: