Wysłany: 2020-09-13, 23:53
vostezpl
Wiek: 22 Na forum: 2092 dni Posty: 9
Nick w MP: lewak
Witam, nie tworzy mi markeru do budynku prawa jazdy, czy wszystko tu jest dobrze napisane? Jezeli tak to jaki mo?e by? pow?d?
////////////////////////////////////////////////
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 , 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 )
Ostatnio zmieniony przez Wilq 2020-09-14, 10:04, w całości zmieniany 1 raz
Wysłany: 2020-09-14, 10:06
Wilq
Wiek: 24 Na forum: 4428 dni Posty: 3410
Piwa : 739
Pozycja dobra? Mo?e jest za nisko i pod ziemi?? Kod po stronie servera? Jakie? b??dy DB3?
Wysłany: 2020-09-14, 12:07
vostezpl
Wiek: 22 Na forum: 2092 dni Posty: 9
Nick w MP: lewak
Pozycja jest dobra, jeden b??d z db3 :
ERROR: [mapy]/[hydra]/community-int_prawko/Interior.lua:5: Bad argument @ 'setElementData' [Expected element at argument 1, got nil]
Wysłany: 2020-09-14, 13:16
Maniekxx
Amator
Wiek: 24 Na forum: 2894 dni Posty: 232
Nick w MP: Maniekxx
Piwa : 225
setElementData ( text , "text" , "Wej?cie Prawo jazdy\nLos Santos" )
Wysłany: 2020-09-14, 14:00
vostezpl
Wiek: 22 Na forum: 2092 dni Posty: 9
Nick w MP: lewak
Tagi: nie :: tworzy :: markeru :: budynku :: prawa :: jazdy
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: