Wysłany: 2020-07-04, 18:07
Patryk545
Wiek: 25 Na forum: 2224 dni Posty: 36
Nick w MP: Patryk545
Piwa : 1
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.87 , 16.60 , 36 , 2 , 0 , 0 , 0 , 0 , 0 , 275 )
local text = createElement ( "text" )
setElementPosition ( text , 1112.52 , - 1835.87 , 16.60 + 0.8 )
setElementData ( m , "text" , "Wej?cie Prawo jazdy\nLos Santos" )
local text = createElement ( "text" )
setElementPosition ( text ,- 2026.88 , - 103.60 , 1035.18 + 0.8 )
setElementData ( text , "name" , "Wyj?cie z prawa jazdy \nLos Santos" )
setElementInterior ( text , 3 )
setElementDimension ( text , 1 )
wejscie = createMarker ( 1112.52 , - 1835.87 , 16.60 + 0.8 , "arrow" , 1.0 , 255 , 136 , 0 , 255 )
setElementData ( wejscie , 'typ' , 'drzwi' )
wyjscie2 = createMarker (- 2026.88 , - 103.60 , 1034.90 + 1 , "arrow" , 1 , 255 , 136 , 05 , 255 )
setElementData ( wyjscie2 , 'typ' , 'drzwi' )
setElementInterior ( wyjscie2 , 3 )
setElementDimension ( wyjscie2 , 1 )
addEventHandler ( "onMarkerHit" , wejscie , function( el , md )
if getElementType ( el ) ~= "player" then return end
if isPedInVehicle ( el ) then return end
setElementInterior ( el , 3 )
setElementDimension ( el , 1 )
setElementPosition ( el , - 2029.72 , - 106.90 , 1035.17 )
end )
addEventHandler ( "onMarkerHit" , wyjscie2 , function( el , md )
if isPedInVehicle ( el ) then return end
setElementInterior ( el , 0 )
setElementDimension ( el , 0 )
setElementPosition ( el , 1099.92 , - 1836.05 , 16.60 )
end )
createBlip ( 1112.52 , - 1835.87 , 16.60 , 36 , 2 , 0 , 0 , 0 , 0 , 0 , 275 )
local text = createElement ( "text" )
setElementPosition ( text , 1112.52 , - 1835.87 , 16.60 + 0.8 )
setElementData ( m , "text" , "Wej?cie Prawo jazdy\nLos Santos" )
local text = createElement ( "text" )
setElementPosition ( text ,- 2026.88 , - 103.60 , 1035.18 + 0.8 )
setElementData ( text , "name" , "Wyj?cie z prawa jazdy \nLos Santos" )
setElementInterior ( text , 3 )
setElementDimension ( text , 1 )
wejscie = createMarker ( 1112.52 , - 1835.87 , 16.60 + 0.8 , "arrow" , 1.0 , 255 , 136 , 0 , 255 )
setElementData ( wejscie , 'typ' , 'drzwi' )
wyjscie2 = createMarker (- 2026.88 , - 103.60 , 1034.90 + 1 , "arrow" , 1 , 255 , 136 , 05 , 255 )
setElementData ( wyjscie2 , 'typ' , 'drzwi' )
setElementInterior ( wyjscie2 , 3 )
setElementDimension ( wyjscie2 , 1 )
addEventHandler ( "onMarkerHit" , wejscie , function( el , md )
if getElementType ( el ) ~= "player" then return end
if isPedInVehicle ( el ) then return end
setElementInterior ( el , 3 )
setElementDimension ( el , 1 )
setElementPosition ( el , - 2029.72 , - 106.90 , 1035.17 )
end )
addEventHandler ( "onMarkerHit" , wyjscie2 , function( el , md )
if isPedInVehicle ( el ) then return end
setElementInterior ( el , 0 )
setElementDimension ( el , 0 )
setElementPosition ( el , 1099.92 , - 1836.05 , 16.60 )
end )
Ostatnio zmieniony przez NotPaladyn 2020-07-04, 18:12, w całości zmieniany 1 raz
Wysłany: 2020-07-04, 18:14
NotPaladyn
Wiek: 23 Na forum: 2790 dni Posty: 866
Nick w MP: NotPaladyn
Piwa : 3135
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.87 , 16.60 , 36 , 2 , 0 , 0 , 0 , 0 , 0 , 275 )
local text = createElement ( "text" )
setElementPosition ( text , 1112.52 , - 1835.87 , 16.60 + 0.8 )
setElementData ( m , "text" , "Wej?cie Prawo jazdy\nLos Santos" )
local text = createElement ( "text" )
setElementPosition ( text ,- 2026.88 , - 103.60 , 1035.18 + 0.8 )
setElementData ( text , "name" , "Wyj?cie z prawa jazdy \nLos Santos" )
setElementInterior ( text , 3 )
setElementDimension ( text , 1 )
wejscie = createMarker ( 1112.52 , - 1835.87 , 16.60 + 0.8 , "arrow" , 1.0 , 255 , 136 , 0 , 255 )
setElementData ( wejscie , 'typ' , 'drzwi' )
wyjscie2 = createMarker (- 2026.88 , - 103.60 , 1034.90 + 1 , "arrow" , 1 , 255 , 136 , 05 , 255 )
setElementData ( wyjscie2 , 'typ' , 'drzwi' )
setElementInterior ( wyjscie2 , 3 )
setElementDimension ( wyjscie2 , 1 )
addEventHandler ( "onMarkerHit" , wejscie , function( el , md )
if getElementType ( el ) ~= "player" then return end
if isPedInVehicle ( el ) then return end
setElementInterior ( el , 3 )
setElementDimension ( el , 1 )
setElementPosition ( el , - 2029.72 , - 106.90 , 1035.17 )
end )
addEventHandler ( "onMarkerHit" , wyjscie2 , function( el , md )
if isPedInVehicle ( el ) then return end
setElementInterior ( el , 0 )
setElementDimension ( el , 0 )
setElementPosition ( el , 1099.92 , - 1836.05 , 16.60 )
end )
createBlip ( 1112.52 , - 1835.87 , 16.60 , 36 , 2 , 0 , 0 , 0 , 0 , 0 , 275 )
local text = createElement ( "text" )
setElementPosition ( text , 1112.52 , - 1835.87 , 16.60 + 0.8 )
setElementData ( m , "text" , "Wej?cie Prawo jazdy\nLos Santos" )
local text = createElement ( "text" )
setElementPosition ( text ,- 2026.88 , - 103.60 , 1035.18 + 0.8 )
setElementData ( text , "name" , "Wyj?cie z prawa jazdy \nLos Santos" )
setElementInterior ( text , 3 )
setElementDimension ( text , 1 )
wejscie = createMarker ( 1112.52 , - 1835.87 , 16.60 + 0.8 , "arrow" , 1.0 , 255 , 136 , 0 , 255 )
setElementData ( wejscie , 'typ' , 'drzwi' )
wyjscie2 = createMarker (- 2026.88 , - 103.60 , 1034.90 + 1 , "arrow" , 1 , 255 , 136 , 05 , 255 )
setElementData ( wyjscie2 , 'typ' , 'drzwi' )
setElementInterior ( wyjscie2 , 3 )
setElementDimension ( wyjscie2 , 1 )
addEventHandler ( "onMarkerHit" , wejscie , function( el , md )
if getElementType ( el ) ~= "player" then return end
if isPedInVehicle ( el ) then return end
setElementInterior ( el , 3 )
setElementDimension ( el , 1 )
setElementPosition ( el , - 2029.72 , - 106.90 , 1035.17 )
end )
addEventHandler ( "onMarkerHit" , wyjscie2 , function( el , md )
if isPedInVehicle ( el ) then return end
setElementInterior ( el , 0 )
setElementDimension ( el , 0 )
setElementPosition ( el , 1099.92 , - 1836.05 , 16.60 )
end )
Wysłany: 2020-07-04, 18:18
Patryk545
Wiek: 25 Na forum: 2224 dni Posty: 36
Nick w MP: Patryk545
Piwa : 1
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
Wysłany: 2020-07-04, 18:29
NotPaladyn
Wiek: 23 Na forum: 2790 dni Posty: 866
Nick w MP: NotPaladyn
Piwa : 3135
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
Wysłany: 2020-07-04, 18:31
Patryk545
Wiek: 25 Na forum: 2224 dni Posty: 36
Nick w MP: Patryk545
Piwa : 1
Aha to ?le troch? napisa?em chodzi mi o ten ?ty co ci? przenosi do interioru.
Wysłany: 2020-07-04, 18:33
NotPaladyn
Wiek: 23 Na forum: 2790 dni Posty: 866
Nick w MP: NotPaladyn
Piwa : 3135
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.87 , 16.60 + 0.8 )
setElementData ( text , "text" , "Wej?cie Prawo jazdy\nLos Santos" )
local text = createElement ( "text" )
setElementPosition ( text ,- 2026.88 , - 103.60 , 1035.18 + 0.8 )
setElementData ( text , "name" , "Wyj?cie z prawa jazdy \nLos Santos" )
setElementInterior ( text , 3 )
setElementDimension ( text , 1 )
wejscie = createMarker ( 1112.52 , - 1835.87 , 16.60 + 0.8 , "arrow" , 1.0 , 255 , 136 , 0 , 255 )
setElementData ( wejscie , 'typ' , 'drzwi' )
wyjscie2 = createMarker (- 2026.88 , - 103.60 , 1034.90 + 1 , "arrow" , 1 , 255 , 136 , 05 , 255 )
setElementData ( wyjscie2 , 'typ' , 'drzwi' )
setElementInterior ( wyjscie2 , 3 )
setElementDimension ( wyjscie2 , 1 )
addEventHandler ( "onMarkerHit" , wejscie , function( el , md )
if getElementType ( el ) ~= "player" then return end
if isPedInVehicle ( el ) then return end
setElementInterior ( el , 3 )
setElementDimension ( el , 1 )
setElementPosition ( el , - 2029.72 , - 106.90 , 1035.17 )
end )
addEventHandler ( "onMarkerHit" , wyjscie2 , function( el , md )
if isPedInVehicle ( el ) then return end
setElementInterior ( el , 0 )
setElementDimension ( el , 0 )
setElementPosition ( el , 1099.92 , - 1836.05 , 16.60 )
end )
createBlip ( 1112.52 , - 1835.87 , 16.60 , 36 , 2 , 0 , 0 , 0 , 0 , 0 , 275 )
local text = createElement ( "text" )
setElementPosition ( text , 1112.52 , - 1835.87 , 16.60 + 0.8 )
setElementData ( text , "text" , "Wej?cie Prawo jazdy\nLos Santos" )
local text = createElement ( "text" )
setElementPosition ( text ,- 2026.88 , - 103.60 , 1035.18 + 0.8 )
setElementData ( text , "name" , "Wyj?cie z prawa jazdy \nLos Santos" )
setElementInterior ( text , 3 )
setElementDimension ( text , 1 )
wejscie = createMarker ( 1112.52 , - 1835.87 , 16.60 + 0.8 , "arrow" , 1.0 , 255 , 136 , 0 , 255 )
setElementData ( wejscie , 'typ' , 'drzwi' )
Wysłany: 2020-07-04, 18:35
Patryk545
Wiek: 25 Na forum: 2224 dni Posty: 36
Nick w MP: Patryk545
Piwa : 1
Mog? wiedzie? co by?o w tym ?le?
Wysłany: 2020-07-04, 18:36
NotPaladyn
Wiek: 23 Na forum: 2790 dni Posty: 866
Nick w MP: NotPaladyn
Piwa : 3135
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"
Wysłany: 2020-07-04, 18:37
Patryk545
Wiek: 25 Na forum: 2224 dni Posty: 36
Nick w MP: Patryk545
Piwa : 1
Okej rozumiem dzi?ki za pomoc
Tagi: prawo :: jazdy :: nie :: działa
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: