Wysłany: 2021-01-16, 20:57
Panasonic_PL_
Wiek: 25 Na forum: 2025 dni Posty: 16
Nick w MP: Tolek
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" , "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 , 0 )
wejscie = createMarker ( 1112.52 , - 1835.87 , 16.60 + 0.8 , "arrow" , 1.0 , 0 , 122 , 255 , 255 )
setElementData ( wejscie , 'typ' , 'drzwi' )
wyjscie2 = createMarker (- 2026.88 , - 103.60 , 1034.90 + 1 , "arrow" , 1 , 0 , 122 , 255 , 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 )
B??d Jaki Wyskakuje: Bad argument @'setElementData' [Expected element at argument 1, got nil]
Ostatnio zmieniony przez NotPaladyn 2021-01-17, 17:39, w całości zmieniany 1 raz
Wysłany: 2021-01-17, 17:44
Wilq
Wiek: 24 Na forum: 4428 dni Posty: 3410
Piwa : 739
W tej linijce:
setElementData ( "text" , "Wej?cie Prawo jazdy\nLos Santos" )
w 1 argumencie musisz wstawi? zmienn? elementu, a nie "text" (po prostu usu? cudzys??w, pewnie da?e? je przez przypadek).
Wysłany: 2021-01-17, 18:32
_jvneczek
Wiek: 22 Na forum: 4325 dni Posty: 1513
Nick w MP: _jvneczek
Piwa : 3949
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 , "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 , 0 )
wejscie = createMarker ( 1112.52 , - 1835.87 , 16.60 + 0.8 , "arrow" , 1.0 , 0 , 122 , 255 , 255 )
setElementData ( wejscie , 'typ' , 'drzwi' )
wyjscie2 = createMarker (- 2026.88 , - 103.60 , 1034.90 + 1 , "arrow" , 1 , 0 , 122 , 255 , 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 )
Tagi: skrypt :: prawo :: jazdy
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: