Wysłany: 2014-10-06, 16:46
maxerxxl
Wiek: 30 Na forum: 5068 dni Posty: 285
Nick w MP: MaXI
Piwa : 38
Witam, kolejny mam problem a tym razem z markerami, po wej?ciu w marker pojawiaj? si? bad argumenty z destroyElement...
A powinien si? tworzy? kolejny marker ale si? nie tworzy.
addEventHandler ( "onMarkerHit" , startMarker , function( el , md )
if not md or getElementType ( el )~= "player" or getPedOccupiedVehicle ( el ) then return end
local losuj = math . random ( 1 , #Punkty)
local cel = createMarker ( Punkty [ losuj ][ 1 ], Punkty [ losuj ][ 2 ], Punkty [ losuj ][ 3 ], "cylinder" , 1 , 255 , 255 , 255 )
local blip = createBlipAttachedTo ( cel , 41 )
addEventHandler ( "onMarkerHit" , cel , function( el , md )
destroyElement ( cel )
destroyElement ( blip )
end )
end )
Wysłany: 2014-10-06, 17:18
Tostuch
Wiek: 27 Na forum: 4931 dni Posty: 483
Nick w MP: Tost
Piwa : 137
cel = createMarker ( Punkty [ losuj ][ 1 ], Punkty [ losuj ][ 2 ], Punkty [ losuj ][ 3 ], "cylinder" , 1 , 255 , 255 , 255 )
blip = createBlipAttachedTo ( cel , 41 )
Wysłany: 2014-10-06, 22:19
MeeShuffle
Programista/Grafik
Wiek: 32 Na forum: 4395 dni Posty: 2758
Nick w MP: Shuffle
Piwa : 8575
addEventHandler ( "onMarkerHit" , startMarker , function( el , md )
if not md or getElementType ( el )~= "player" or getPedOccupiedVehicle ( el ) then return end
local losuj = math . random ( 1 , #Punkty)
destroyElement ( source )
local cel = createMarker ( Punkty [ losuj ][ 1 ], Punkty [ losuj ][ 2 ], Punkty [ losuj ][ 3 ], "cylinder" , 1 , 255 , 255 , 255 )
local blip = createBlipAttachedTo ( cel , 41 )
end )
Nie pro?ciej?
Tagi: markery
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: