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

Wysłany: 2020-07-04, 18:07


Patryk545







Wiek: 25
Na forum: 2224 dni
Posty: 36
Nick w MP: Patryk545

Piwa: 1

Respekt: 50

Witam mam ma?y problem z prawem jazdy mianowicie chodzi o to ?e nie pokazuje si? blip do wej?cia interioru ni?ej dam skrypt.


}createBlip(1112.52, -1835.8716.6036,2,0,0,0,0,0,275)

local text=createElement("text")
setElementPosition(text,1112.52, -1835.8716.60+0.8)
setElementData(m"text","Wej?cie Prawo jazdy\nLos Santos")

local text=createElement("text")
setElementPosition(text,-2026.88, -103.601035.18+0.8)
setElementData(text,"name","Wyj?cie z prawa jazdy \nLos Santos")
setElementInterior(text3)
setElementDimension(text1)

wejscie createMarker (1112.52, -1835.8716.60+0.8"arrow"1.02551360255)
setElementData(wejscie'typ''drzwi')

wyjscie2 createMarker (-2026.88, -103.601034.90+1"arrow"125513605255)
setElementData(wyjscie2'typ''drzwi')
setElementInterior(wyjscie23)
setElementDimension(wyjscie21)

addEventHandler("onMarkerHit"wejscie, function(elmd)
    if getElementType(el) ~= "player" then return end
    if isPedInVehicle(elthen return end
    setElementInterior(el3)
    setElementDimension(el1)
    setElementPosition(el, -2029.72, -106.901035.17)
end)

addEventHandler("onMarkerHit"wyjscie2, function(elmd)
    if isPedInVehicle(elthen return end
    setElementInterior(el0)
    setElementDimension(el0)
    setElementPosition(el1099.92, -1836.0516.60)
end)
createBlip(1112.52, -1835.8716.6036,2,0,0,0,0,0,275)

local text=createElement("text")
setElementPosition(text,1112.52, -1835.8716.60+0.8)
setElementData(m"text","Wej?cie Prawo jazdy\nLos Santos")

local text=createElement("text")
setElementPosition(text,-2026.88, -103.601035.18+0.8)
setElementData(text,"name","Wyj?cie z prawa jazdy \nLos Santos")
setElementInterior(text3)
setElementDimension(text1)

wejscie createMarker (1112.52, -1835.8716.60+0.8"arrow"1.02551360255)
setElementData(wejscie'typ''drzwi')

wyjscie2 createMarker (-2026.88, -103.601034.90+1"arrow"125513605255)
setElementData(wyjscie2'typ''drzwi')
setElementInterior(wyjscie23)
setElementDimension(wyjscie21)

addEventHandler("onMarkerHit"wejscie, function(elmd)
    if getElementType(el) ~= "player" then return end
    if isPedInVehicle(elthen return end
    setElementInterior(el3)
    setElementDimension(el1)
    setElementPosition(el, -2029.72, -106.901035.17)
end)

addEventHandler("onMarkerHit"wyjscie2, function(elmd)
    if isPedInVehicle(elthen return end
    setElementInterior(el0)
    setElementDimension(el0)
    setElementPosition(el1099.92, -1836.0516.60)
end


Komentarz NotPaladyn dodany 2020-07-04, 18:12Dodałem znaczniki [lua]
Ostatnio zmieniony przez NotPaladyn 2020-07-04, 18:12, w całości zmieniany 1 raz  
Postaw piwo autorowi tego posta
 

 
Wysłany: 2020-07-04, 18:14


NotPaladyn







Wiek: 23
Na forum: 2790 dni
Posty: 866
Nick w MP: NotPaladyn

Piwa: 3135

Respekt: 690
Respekt: 690Respekt: 690


   Vice Admin: Jeśli potrzebujesz pomocy w sprawach organizacyjnych lub technicznych - skontaktuj się ze mną.
Spr?buj tak, bo mia?em przed tym craeteBlip jaki? znak wi?c by? mo?e od tego

createBlip(1112.52, -1835.8716.6036,2,0,0,0,0,0,275)

local text=createElement("text")
setElementPosition(text,1112.52, -1835.8716.60+0.8)
setElementData(m"text","Wej?cie Prawo jazdy\nLos Santos")

local text=createElement("text")
setElementPosition(text,-2026.88, -103.601035.18+0.8)
setElementData(text,"name","Wyj?cie z prawa jazdy \nLos Santos")
setElementInterior(text3)
setElementDimension(text1)

wejscie createMarker (1112.52, -1835.8716.60+0.8"arrow"1.02551360255)
setElementData(wejscie'typ''drzwi')

wyjscie2 createMarker (-2026.88, -103.601034.90+1"arrow"125513605255)
setElementData(wyjscie2'typ''drzwi')
setElementInterior(wyjscie23)
setElementDimension(wyjscie21)

addEventHandler("onMarkerHit"wejscie, function(elmd)
    if getElementType(el) ~= "player" then return end
    if isPedInVehicle(elthen return end
    setElementInterior(el3)
    setElementDimension(el1)
    setElementPosition(el, -2029.72, -106.901035.17)
end)

addEventHandler("onMarkerHit"wyjscie2, function(elmd)
    if isPedInVehicle(elthen return end
    setElementInterior(el0)
    setElementDimension(el0)
    setElementPosition(el1099.92, -1836.0516.60)
end)
createBlip(1112.52, -1835.8716.6036,2,0,0,0,0,0,275)

local text=createElement("text")
setElementPosition(text,1112.52, -1835.8716.60+0.8)
setElementData(m"text","Wej?cie Prawo jazdy\nLos Santos")

local text=createElement("text")
setElementPosition(text,-2026.88, -103.601035.18+0.8)
setElementData(text,"name","Wyj?cie z prawa jazdy \nLos Santos")
setElementInterior(text3)
setElementDimension(text1)

wejscie createMarker (1112.52, -1835.8716.60+0.8"arrow"1.02551360255)
setElementData(wejscie'typ''drzwi')

wyjscie2 createMarker (-2026.88, -103.601034.90+1"arrow"125513605255)
setElementData(wyjscie2'typ''drzwi')
setElementInterior(wyjscie23)
setElementDimension(wyjscie21)

addEventHandler("onMarkerHit"wejscie, function(elmd)
    if getElementType(el) ~= "player" then return end
    if isPedInVehicle(elthen return end
    setElementInterior(el3)
    setElementDimension(el1)
    setElementPosition(el, -2029.72, -106.901035.17)
end)

addEventHandler("onMarkerHit"wyjscie2, function(elmd)
    if isPedInVehicle(elthen return end
    setElementInterior(el0)
    setElementDimension(el0)
    setElementPosition(el1099.92, -1836.0516.60)
end


Postaw piwo autorowi tego posta
 

 
Wysłany: 2020-07-04, 18:18


Patryk545







Wiek: 25
Na forum: 2224 dni
Posty: 36
Nick w MP: Patryk545

Piwa: 1

Respekt: 50

Nie dzia?a :(

[ Dodano: 2020-07-04, 18:28 ]
W debugscript jest jaki? b??d ERROR:[mapy]/[hYDRA]/community-int_prawko/Interior.lua:5 Bad argument @ 'setElementData’ [Expenced element ta argument 1, got string 'text’

Ostatnio zmieniony przez Patryk545 2020-07-04, 18:30, w całości zmieniany 1 raz  
Postaw piwo autorowi tego posta
 

 
Wysłany: 2020-07-04, 18:29


NotPaladyn







Wiek: 23
Na forum: 2790 dni
Posty: 866
Nick w MP: NotPaladyn

Piwa: 3135

Respekt: 690
Respekt: 690Respekt: 690


   Vice Admin: Jeśli potrzebujesz pomocy w sprawach organizacyjnych lub technicznych - skontaktuj się ze mną.
Mhm, to dziwne bo u mnie blip pokazuj? si? na mapie.
Na pewno chodzi Ci o blip? Przypominam, ?e blip to ikonka, kt?ra pokazuj? si? na mapie F11

Postaw piwo autorowi tego posta
 

 
Wysłany: 2020-07-04, 18:31


Patryk545







Wiek: 25
Na forum: 2224 dni
Posty: 36
Nick w MP: Patryk545

Piwa: 1

Respekt: 50

Aha to ?le troch? napisa?em chodzi mi o ten ?? ?ty co ci? przenosi do interioru.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2020-07-04, 18:33


NotPaladyn







Wiek: 23
Na forum: 2790 dni
Posty: 866
Nick w MP: NotPaladyn

Piwa: 3135

Respekt: 690
Respekt: 690Respekt: 690


   Vice Admin: Jeśli potrzebujesz pomocy w sprawach organizacyjnych lub technicznych - skontaktuj się ze mną.
Teraz ju? dzia?a

local text=createElement("text")
setElementPosition(text,1112.52, -1835.8716.60+0.8)
setElementData(text"text","Wej?cie Prawo jazdy\nLos Santos")

local text=createElement("text")
setElementPosition(text,-2026.88, -103.601035.18+0.8)
setElementData(text,"name","Wyj?cie z prawa jazdy \nLos Santos")
setElementInterior(text3)
setElementDimension(text1)

wejscie createMarker (1112.52, -1835.8716.60+0.8"arrow"1.02551360255)
setElementData(wejscie'typ''drzwi')

wyjscie2 createMarker (-2026.88, -103.601034.90+1"arrow"125513605255)
setElementData(wyjscie2'typ''drzwi')
setElementInterior(wyjscie23)
setElementDimension(wyjscie21)

addEventHandler("onMarkerHit"wejscie, function(elmd)
    if getElementType(el) ~= "player" then return end
    if isPedInVehicle(elthen return end
    setElementInterior(el3)
    setElementDimension(el1)
    setElementPosition(el, -2029.72, -106.901035.17)
end)

addEventHandler("onMarkerHit"wyjscie2, function(elmd)
    if isPedInVehicle(elthen return end
    setElementInterior(el0)
    setElementDimension(el0)
    setElementPosition(el1099.92, -1836.0516.60)
end)
createBlip(1112.52, -1835.8716.6036,2,0,0,0,0,0,275)

local text=createElement("text")
setElementPosition(text,1112.52, -1835.8716.60+0.8)
setElementData(text"text","Wej?cie Prawo jazdy\nLos Santos")

local text=createElement("text")
setElementPosition(text,-2026.88, -103.601035.18+0.8)
setElementData(text,"name","Wyj?cie z prawa jazdy \nLos Santos")
setElementInterior(text3)
setElementDimension(text1)

wejscie createMarker (1112.52, -1835.8716.60+0.8"arrow"1.02551360255)
setElementData(wejscie'typ''drzwi')


Postaw piwo autorowi tego posta
 

 
Wysłany: 2020-07-04, 18:35


Patryk545







Wiek: 25
Na forum: 2224 dni
Posty: 36
Nick w MP: Patryk545

Piwa: 1

Respekt: 50

Mog? wiedzie? co by?o w tym ?le?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2020-07-04, 18:36


NotPaladyn







Wiek: 23
Na forum: 2790 dni
Posty: 866
Nick w MP: NotPaladyn

Piwa: 3135

Respekt: 690
Respekt: 690Respekt: 690


   Vice Admin: Jeśli potrzebujesz pomocy w sprawach organizacyjnych lub technicznych - skontaktuj się ze mną.
?le zdefiniowana zmienna dla tego textu przez co w kodzie w 5 linijce wywala?o b??d co spowodowa?o, ?e dalszy kod si? nie wykonuj? jak przysta?o przy errorze.
Zamiast "m" trzeba by?o da? "text"

Postaw piwo autorowi tego posta
 

 
Wysłany: 2020-07-04, 18:37


Patryk545







Wiek: 25
Na forum: 2224 dni
Posty: 36
Nick w MP: Patryk545

Piwa: 1

Respekt: 50

Okej rozumiem dzi?ki za pomoc

Postaw piwo autorowi tego posta
 

 
Tagi: prawo :: jazdy :: nie :: działa
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






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