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

Wysłany: 2018-04-08, 12:12


guciopl5







Wiek: 23
Na forum: 3146 dni
Posty: 86
Nick w MP: Whit3

Piwa: 8

Respekt: 45,3


createBlip (-1702.20703125391.88406372077.1796875,37)
local mech createMarker(-1702.20703125391.88406372077.1796875-1"cylinder"3.5,255,255,0,60)
local txd2=createElement("text")
setElementData(txd2,"name","Mechanik Frakcyjny")
setElementPosition(txd2,-1606.07733.54, -5.23+1)
addEventHandler("onClientMarkerHit"mech, function(elmd)
    local Pojazd getPedOccupiedVehicle(el)
    if not md or getElementType(el) ~= "player" then return end
    if el ~= localPlayer then return end
    if not getPedOccupiedVehicle(elthen return end
    if not getElementData(el,"player:faction"outputChatBox("* Mechanik jest tylko i wy??cznie dla frakcji!" ,255,0,0) return end
    -- Teraz bede sprawdzal czy pojazd to dany model/ID pojazdu
    local model getElementModel (Pojazd)
    if model == 596 or model == 597 or model == 598 or model == 416 or model == 407 then
    outputChatBox("* Pojazd frakcyjny zosta? naprawiony." ,0,185,18)
        fixVehicle(Pojazdtrue)
    end
end)





mam problem z tym poniewaz stworazy blip i marker lecz nie naprawia pojazdu i przypisanym id nawet sie komunikat nie pokazuje

Komentarz Atroth dodany 2018-04-12, 21:28Stosuj znaczniki [lua][/lua].
Ostatnio zmieniony przez Atroth 2018-04-12, 21:28, w całości zmieniany 1 raz  
Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-04-08, 12:24


Kalizman







Wiek: 23
Na forum: 3651 dni
Posty: 1394

Piwa: 4619

Respekt: 358,8
Respekt: 358,8Respekt: 358,8Respekt: 358,8Respekt: 358,8

B??dy db3?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-04-08, 13:33


Kuks*







Wiek: 15
Na forum: 3030 dni
Posty: 246
Nick w MP: Kuks*

Piwa: 2208

Respekt: 115,8
Respekt: 115,8

createBlip (-1702.20703125391.88406372077.1796875,37local mech createMarker(-1702.20703125391.88406372077.1796875-1"cylinder"3.5,255,255,0,60local txd2=createElement("text"setElementData(txd2,"name","Mechanik Frakcyjny"setElementPosition(txd2,-1606.07733.54, -5.23+1addEventHandler("onClientMarkerHit"mech, function(elmdlocal Pojazd getPedOccupiedVehicle(el) 
if not md or getElementType(el) ~= "player" then return end 
if el ~= localPlayer then return end 
if not getPedOccupiedVehicle(elthen return end 
if not getElementData(el,"player:faction"outputChatBox("* Mechanik jest tylko i wy??cznie dla frakcji!" ,255,0,0) return end 
-- Teraz bede sprawdzal czy pojazd to dany model/ID pojazdu 
local model getElementModel (Pojazd) 
if model == 596 or model == 597 or model == 598 or model == 416 or model == 407 then 
outputChatBox("* Pojazd frakcyjny zosta? naprawiony." ,0,185,18fixVehicle(Pojazdend 
end)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-04-08, 17:06


guciopl5







Wiek: 23
Na forum: 3146 dni
Posty: 86
Nick w MP: Whit3

Piwa: 8

Respekt: 45,3

teraz mi nic nie dziala nie pokazuje nawet blipu

Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-04-08, 20:15


Kalizman







Wiek: 23
Na forum: 3651 dni
Posty: 1394

Piwa: 4619

Respekt: 358,8
Respekt: 358,8Respekt: 358,8Respekt: 358,8Respekt: 358,8

guciopl5, podaj b??dy podczas restartu skryptu z /debugscript 3

Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-04-08, 21:03


guciopl5







Wiek: 23
Na forum: 3146 dni
Posty: 86
Nick w MP: Whit3

Piwa: 8

Respekt: 45,3

jak mam to zrobic ?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-04-08, 21:32


TeeNekk

Cienzaruwka :v






Wiek: 23
Na forum: 3210 dni
Posty: 264
Nick w MP: TeeNekk.

Piwa: 919

Respekt: 110,5
Respekt: 110,5


createBlip (-1702.20703125391.88406372077.1796875,37local mech createMarker(-1702.20703125391.88406372077.1796875-1"cylinder"3.5,255,255,0,60local txd2=createElement("text"setElementData(txd2,"name","Mechanik Frakcyjny"setElementPosition(txd2,-1606.07733.54, -5.23+1) 
function napraw()
local veh getPedOccupiedVehicle()
if not veh then return end
local model getElementModel(veh)
if model == 596 or model == 597 or model == 598 or model == 416 or model == 407 then 
outputChatBox("* Pojazd frakcyjny zosta? naprawiony." ,0,185,18fixVehicle(Pojazdtrueend
end
addEventHandler("onClientMarkerHit",mech,napraw)

pr?buj

Podpis
Pomogłem Ci
? Może zostawiłbyś za to piwko, lub respekt? Dzięki!
Mój projekt:
?
Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-04-08, 22:26


guciopl5







Wiek: 23
Na forum: 3146 dni
Posty: 86
Nick w MP: Whit3

Piwa: 8

Respekt: 45,3

[quote="TeeNekk"][/quote] pokaza?o blip i marker lecz nic sie nie dzieje

Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-04-09, 12:23


TeeNekk

Cienzaruwka :v






Wiek: 23
Na forum: 3210 dni
Posty: 264
Nick w MP: TeeNekk.

Piwa: 919

Respekt: 110,5
Respekt: 110,5

"guciopl5" napisał/a:

[quote="TeeNekk"][/quote] pokaza?o blip i marker lecz nic sie nie dzieje

b??dy w debugscript 3?

Podpis
Pomogłem Ci
? Może zostawiłbyś za to piwko, lub respekt? Dzięki!
Mój projekt:
?
Postaw piwo autorowi tego posta
 

 
Wysłany: 2018-04-09, 14:49


Ciastuuś

Truck soon...






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

Piwa: 4297

Respekt: 640
Respekt: 640Respekt: 640

Mi wszystko dzia?a jak wida?. Doda?em tylko przed outputChatBox w linijce 11 then i wszystko ?miga. R?wnie? doda?em Sobie *elementData player:faction i jak wida? na zdj?ciu. Naprawia pojazd bez b??dnie,

https://i.imgur.com/5hzcC0r.jpg

Kod,

createBlip (-1702.20703125391.88406372077.1796875,37local mech createMarker(-1702.20703125391.88406372077.1796875-1"cylinder"3.5,255,255,0,60local txd2=createElement("text"setElementData(txd2,"name","Mechanik Frakcyjny"setElementPosition(txd2,-1606.07733.54, -5.23+1addEventHandler("onClientMarkerHit"mech, function(elmdlocal Pojazd getPedOccupiedVehicle(el) 
if not md or getElementType(el) ~= "player" then return end 
if el ~= localPlayer then return end 
if not getPedOccupiedVehicle(elthen return end 
if not getElementData(el,"player:faction"then outputChatBox("* Mechanik jest tylko i wy??cznie dla frakcji!" ,255,0,0) return end 
-- Teraz bede sprawdzal czy pojazd to dany model/ID pojazdu 
local model getElementModel (Pojazd) 
if model == 596 or model == 597 or model == 598 or model == 416 or model == 407 then 
outputChatBox("* Pojazd frakcyjny zosta? naprawiony." ,0,185,18fixVehicle(Pojazdtrueend 
end)


Podpis
Truck soon...
Postaw piwo autorowi tego posta
 

 
Tagi: naprawa-frakcyjna
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






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