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

Wysłany: 2018-03-02, 21:43


manieks78

Lua ;)






Wiek: 25
Na forum: 3387 dni
Posty: 97
Nick w MP: Hexan

Piwa: 5

Respekt: 50

Witam, potrzebuj? pomocy, poniewa? robi? skrypt na prawo jazdy i teraz pracuj? nad kursem. Problem jest taki, ?e nie mam zielonego poj?cia jak zrobi? aby markery z tabeli wy?wietla?y si? jeden za drugim, ale dopiero wtedy kiedy wjedzie si? w marker.
Tabela:
points = {{-1521.610231003.144967.18532},
{-1560.43726837.223887.03906},
{-1561.52661590.915227.03906},
{-1628.99097429.426277.03125},
{-1673.31238414.604037.17969},
{-1693.16296374.471227.03695},
{-1588.55103457.943947.03125},
{-1554.33032651.473277.03906},
{-1531.14783838.576177.03906},
{-1443.48682835.426217.18750}}


Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-03-02, 21:50


Ciastuuś

Truck soon...






Wiek: 26
Na forum: 3071 dni
Posty: 799
Nick w MP: Ciastuuś

Piwa: 4297

Respekt: 640
Respekt: 640Respekt: 640

addEventHandler("onClientMarkerHit"resourceRoot, function(hit)
    if hit ~= localPlayer then return end
    if source ~= marker then return end
    if getElementDimension(source) ~= getElementDimension(hitthen return end
    if getElementInterior(source) ~= getElementInterior(hitthen return end
    destroyElement(marker)
    marker false
    punkt punkt+1
    local x,y,points[punkt][1],points[punkt][2],points[punkt][3]
    marker createMarker(x,y,z,"cylinder",3,0,255,0,75)
end)


Podpis
Truck soon...
Postaw piwo autorowi tego posta
 

 
Więcej szczegółów
Wystawiono 1 piw(a):
manieks78
Wysłany: 2018-03-02, 22:17


manieks78

Lua ;)






Wiek: 25
Na forum: 3387 dni
Posty: 97
Nick w MP: Hexan

Piwa: 5

Respekt: 50

Nie dzia?a, a w db 3 nic nie ma, poka?e ca?y s_side:
points = {{-1521.610231003.144967.18532},
{-1560.43726837.223887.03906},
{-1561.52661590.915227.03906},
{-1628.99097429.426277.03125},
{-1673.31238414.604037.17969},
{-1693.16296374.471227.03695},
{-1588.55103457.943947.03125},
{-1554.33032651.473277.03906},
{-1531.14783838.576177.03906},
{-1443.48682835.426217.18750}}

local marker createMarker(-1496.815551007.086067.18750,"cylinder",3,0,255,0,75)
setElementVisibleTo(markerrootfalse)

addEvent("start"true)
addEventHandler("start"root, function(plr)
    local pojazd createVehicle565, -1433.853521006.911447.18532 )
    setElementInterior(pojazd,0)
    setElementDimension(pojazd,0)
    warpPedIntoVehicle(sourcepojazd0)
    setElementDimension(source,0)
    setElementInterior(source,0)
end
)

addEventHandler("onClientMarkerHit"resourceRoot, function(hit)
    if hit ~= localPlayer then return end
    if source ~= marker then return end
    if getElementDimension(source) ~= getElementDimension(hitthen return end
    if getElementInterior(source) ~= getElementInterior(hitthen return end
    setElementVisibleTo(markerhittrue)
    destroyElement(marker)
    marker false
    punkt punkt+1
    local x,y,points[punkt][1],points[punkt][2],points[punkt][3]
    marker createMarker(x,y,z,"cylinder",3,0,255,0,75)
end)


Postaw piwo autorowi tego posta
 

 
Tagi: tabela
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » Tabela 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