Wysłany: 2020-09-26, 22:52
Pyrek24
Wiek: 25 Na forum: 3438 dni Posty: 546
Nick w MP: Pyrek
Piwa : 10
Witam pom?g?by kto? z b??dem ?
DB3:
Kod:
Bad Argument @ 'isElementWithinMarker' [Expected marker at argument 2, got nill]
kod
function cnmarker ()
cmarker = createMarker (- 1500.94 , 744.48 , 7.19 , "cylinder" , 1.2 , 255 , 0 , 0 )
addEventHandler ( "onClientMarkerHit" , cmarker , function( el22 )
if el22 ~= localPlayer then return end
triggerEvent ( "onClientAddNotification" , localPlayer , "git !" , "info" )
end )
end
addEventHandler ( "onClientKey" , root , function( button , state )
if isElementWithinMarker ( localPlayer , cmarker ) then
if state then
los = math . random ( 1 , #klawisze)
outputChatBox ( "Kliknij " .. klawisze [ los ][ 1 ].. " " )
if button == klawisze [ los ][ 1 ] then
outputChatBox ( "PRAWID?OWY WYNIK" )
else
outputChatBox ( "B??DNY WYNIK" )
end
end
end
end )
B??d le?y tutaj
if isElementWithinMarker ( localPlayer , cmarker ) then
Wysłany: 2020-09-26, 23:25
Wilq
Wiek: 24 Na forum: 4428 dni Posty: 3410
Piwa : 739
Marker tworzysz w funkcji cnmarker, kt?rej nigdy nie wykonujesz - w momencie wykonania si? eventu onClientKey nie ma tego markera. Musisz go stworzy? poza funkcj? albo wywo?a? funkcj?.
Więcej szczegółów
Wystawiono 1 piw(a):Pyrek24
Wysłany: 2020-09-26, 23:30
Pyrek24
Wiek: 25 Na forum: 3438 dni Posty: 546
Nick w MP: Pyrek
Piwa : 10
Tagi: nie :: można :: określić :: wartości :: markera
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: