Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2014-06-15, 11:48


MeeShuffle

Programista/Grafik






Wiek: 32
Na forum: 4395 dni
Posty: 2758
Nick w MP: Shuffle

Piwa: 8575

Respekt: 535,3
Respekt: 535,3

Kod nie zna zmiennej danej funkcji bo ona jest osobn? funkcj?. Zr?b to tak :

objekt = {}

function niejadek () 
if isElementWithinMarker(getLocalPlayer(), praca3then 
if getElementData (getLocalPlayer(), "praca3") == true then 
if isPedInVehicle (getLocalPlayer()) then 
local v=getPedOccupiedVehicle(getLocalPlayer()) 
local m=getElementModel(v) 
if (m==578then 
outputChatBox "Zaladowales Towar"getLocalPlayer(), 00205 setElementData(getLocalPlayer(), "dostawa"true local xygetElementPosition local theObject createObject 3374222.5000true local theObject1 createObject 3374222.5000true attachElementToElementtheObjectv0, -31.3 attachElementToElementtheObject1v00.21.3 table.insert objekttheObject )
table.insert objekttheObject1 )
else 
outputChatBox " "getLocalPlayer(), 00205 end 
end 
end 
end 
end 
addCommandHandler("zaladuj"niejadekaddEventHandler("onClientMarkerHit"dostawa, 
function(player) 
if ( player == localPlayer then 
if getElementData (getLocalPlayer(), "dostawa") == true then 
if isPedInVehicle (getLocalPlayer()) then 
local v=getPedOccupiedVehicle(getLocalPlayer()) 
local m=getElementModel(v) 
if (m==578then 
for k,v in ipairs objekt ) do
destroyElement )
end
outputChatBox "Skonczyles prace"getLocalPlayer(), 00205 end 
end 
end 
end 
end 
)


Podpis

https://shufflecode.pl
Static Codes and Graphics - Join our discord!
Postaw piwo autorowi tego posta
 

 
Tagi: attachelement
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » AttachElement Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku