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

Wysłany: 2016-01-13, 21:51


venzikk

LUA, MODELER






Wiek: 24
Na forum: 3823 dni
Posty: 235
Nick w MP: VenZ

Piwa: 3158

Respekt: 240
Respekt: 240Respekt: 240

jest na 4 id pojazdu dobre

[ Dodano: 2016-01-13, 21:55 ]
ERROR:Loading script failed: sd/marker:11:'(expected near ')'

ERROR:Loading script failed sd/marker:3:unexpected symbol near 'if'

[ Dodano: 2016-01-13, 22:00 ]
Wygl?da to tak
bindKey("l","down",function(plrscigany)
local veh getPedOccupiedVehicle(plr)
if (getElementModel(veh) == 596) or (getElementModel(veh) == 597then
local x,y,getElementPosition(plr)
local marker createMarker(x,y,z,"cylinder",4,255,0,0,255)
attachElements(marker,veh,0,-5,-0.90)
addEventHandler("onClientMarkerHit",marker,function()
local vehs getPedOccupiedVehicle(scigany)
setElementFrozen(veh,true)
end)
bindKey(";","down",function)
destroyElement(marker)
end
end


i tylko ten error ERROR:Loading script failed: sd/marker:11:'(expected near ')'

Podpis



Hej
,Tak ty! Pomogłem ci? zostaw
:piwo:


Pomagam w miarę możliwości :)

Kontakt:
Discord: VenZio#8080
GG:63293490
skype:szymex1021
Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-01-14, 20:32


Emm

***** ***






Wiek: 32
Na forum: 3880 dni
Posty: 3191
Nick w MP: Emm

Piwa: 6162

Respekt: 1580
Respekt: 1580Respekt: 1580


   Administrator: Admin ma zawsze rację | REGULAMIN FORUM | REKLAMA/VIP | .

bindKey("l","down",function(plrscigany)
local veh getPedOccupiedVehicle(plr)
if (getElementModel(veh) == 596) or (getElementModel(veh) == 597then
local x,y,getElementPosition(plr)
local marker createMarker(x,y,z,"cylinder",4,255,0,0,255)
attachElements(marker,veh,0,-5,-0.90)
addEventHandler("onClientMarkerHit",marker,function()
local vehs getPedOccupiedVehicle(scigany)
setElementFrozen(veh,true)
end)
bindKey(";","down",function()
destroyElement(marker)
end
end


Podpis

Użytkownik: 20.10.2015r
GTAO Member: 06.03.2016r
Support-Team: 20.01.2016r
Moderator: 30.03.2016r
Mod-Team: 08.10.2016r
Vice Admin: 04.05.2018r
Administrator: 03.05.2022r


! Koniecznie zapoznaj się z regulaminem forum.
Pamiętaj, aby zawsze go przestrzegać, nie mniej ważne są również regulaminy działów, w których się wypowiadasz!
Zamiast zakładać temat po kilka razy, bo jest usuwany przez Administrację, przejrzyj regulamin i napisz poprawnie temat!
Sprawy z administracją możesz załatwiać anonimowo w tym dziale.
Najważniejsze informacje od Administracji możesz przeczytać tutaj oraz tutaj.
Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-01-14, 20:58


venzikk

LUA, MODELER






Wiek: 24
Na forum: 3823 dni
Posty: 235
Nick w MP: VenZ

Piwa: 3158

Respekt: 240
Respekt: 240Respekt: 240

ERROR:Loading script failed: sd/Marker.lua:8: '(' expected near 'local'

Podpis



Hej
,Tak ty! Pomogłem ci? zostaw
:piwo:


Pomagam w miarę możliwości :)

Kontakt:
Discord: VenZio#8080
GG:63293490
skype:szymex1021
Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-01-16, 10:54


_Haze

Peace Yo!






Wiek: 24
Na forum: 4184 dni
Posty: 1648
Nick w MP: Haze

Piwa: 2628

Respekt: 1020
Respekt: 1020

bindKey("l","down",function(plrscigany)
local veh getPedOccupiedVehicle(plr)
if (getElementModel(veh) == 596) or (getElementModel(veh) == 597then
  local x,y,getElementPosition(plr)
  local marker createMarker(x,y,z,"cylinder",4,255,0,0,255)
  attachElements(marker,veh,0,-5,-0.90)
  addEventHandler("onClientMarkerHit",marker,function()
    local vehs getPedOccupiedVehicle(scigany)
    setElementFrozen(veh,true)
  end)
bindKey(";","down",function)
destroyElement(marker)
end
end)
Powinno dzia?ac

Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-01-16, 12:46


venzikk

LUA, MODELER






Wiek: 24
Na forum: 3823 dni
Posty: 235
Nick w MP: VenZ

Piwa: 3158

Respekt: 240
Respekt: 240Respekt: 240

ERROR: Loading script failed: sd/marker.lua:11: '(' expected near ')'

Podpis



Hej
,Tak ty! Pomogłem ci? zostaw
:piwo:


Pomagam w miarę możliwości :)

Kontakt:
Discord: VenZio#8080
GG:63293490
skype:szymex1021
Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-01-17, 15:26


AteX







Wiek: 26
Na forum: 4015 dni
Posty: 927
Nick w MP: #AteX

Piwa: 8360

Respekt: 775,3
Respekt: 775,3Respekt: 775,3

"venzikk" napisał/a:

ERROR: Loading script failed: sd/marker.lua:11: '(' expected near ')'

bindKey("l","down",function(plrscigany)
    local veh getPedOccupiedVehicle(plr)
    if (getElementModel(veh) == 596) or (getElementModel(veh) == 597then
        local x,y,getElementPosition(plr)
        local marker createMarker(x,y,z,"cylinder",4,255,0,0,255)
        attachElements(marker,veh,0,-5,-0.90)
        addEventHandler("onClientMarkerHit",marker,function()
            local vehs getPedOccupiedVehicle(scigany)
            setElementFrozen(veh,true)
        end)
    end
    bindKey(";","down",function)
        destroyElement(marker)
    end
end)


Podpis
MultiTheftAuto++ dla MTA 1.5.7 już dostępne.
Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-01-17, 15:35


venzikk

LUA, MODELER






Wiek: 24
Na forum: 3823 dni
Posty: 235
Nick w MP: VenZ

Piwa: 3158

Respekt: 240
Respekt: 240Respekt: 240

Ten sam b??d, ale 12 linijka

Podpis



Hej
,Tak ty! Pomogłem ci? zostaw
:piwo:


Pomagam w miarę możliwości :)

Kontakt:
Discord: VenZio#8080
GG:63293490
skype:szymex1021
Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-01-17, 15:36


AteX







Wiek: 26
Na forum: 4015 dni
Posty: 927
Nick w MP: #AteX

Piwa: 8360

Respekt: 775,3
Respekt: 775,3Respekt: 775,3

"venzikk" napisał/a:

Ten sam b??d, ale 12 linijka

bindKey("l","down",function(plrscigany)
    local veh getPedOccupiedVehicle(plr)
    if (getElementModel(veh) == 596) or (getElementModel(veh) == 597then
        local x,y,getElementPosition(plr)
        local marker createMarker(x,y,z,"cylinder",4,255,0,0,255)
        attachElements(marker,veh,0,-5,-0.90)
        addEventHandler("onClientMarkerHit",marker,function()
            local vehs getPedOccupiedVehicle(scigany)
            setElementFrozen(veh,true)
        end)
    end
    bindKey(";","down",function()
        destroyElement(marker)
    end)
end)


M?g?by? si? wysili? i znale?? ten jeden b??d z brakuj?cym nawiasem sam.

Podpis
MultiTheftAuto++ dla MTA 1.5.7 już dostępne.
Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-01-17, 15:40


venzikk

LUA, MODELER






Wiek: 24
Na forum: 3823 dni
Posty: 235
Nick w MP: VenZ

Piwa: 3158

Respekt: 240
Respekt: 240Respekt: 240

Z?e argumenty :BaGetElementModel linijka 3 i GetPedOccupiedVehicle 2

Podpis



Hej
,Tak ty! Pomogłem ci? zostaw
:piwo:


Pomagam w miarę możliwości :)

Kontakt:
Discord: VenZio#8080
GG:63293490
skype:szymex1021
Postaw piwo autorowi tego posta
 

 
Tagi: zatrzymanie :: pojazdu...
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






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