Wysłany: 2015-12-07, 17:30
serek123
Lua, MySql, Sql
Wiek: 27 Na forum: 4334 dni Posty: 217
Nick w MP: Serek.
Piwa : 374
Witam pisa?em ju? temat ale nie uzyska?em mojej odpowiedzi na ten problem ot?? polega on na tym ?e po wje?dzie pojazdem w ostatni marker nie usuwa si? on kod:
function WMarker ( he , md )
if not md then return end
if he ~= localPlayer then return end
if not getElementData ( source , "Egzamin" ) then return end
if not getPedOccupiedVehicle ( localPlayer ) then return end
if postep == #tablica then
if getElementType ( he ) == "player" then
local auto = getPedOccupiedVehicle ( he )
destroyElement ( auto )
end
destroyElement ( source )
return end
destroyElement ( source )
postep = postep + 1
local x , y , z = tablica [ postep ][ 1 ], tablica [ postep ][ 2 ], tablica [ postep ][ 3 ]
local marker = createMarker ( x , y , z , "checkpoint" , 3 , 255 , 0 , 0 , source )
setElementData ( marker , "Egzamin" , true )
end
Wysłany: 2015-12-08, 15:22
DamianGames
Wiek: 23 Na forum: 3946 dni Posty: 75
Piwa : 521
Wysłany: 2015-12-08, 16:45
Fanciak
BOT
Wiek: 25 Na forum: 4446 dni Posty: 728
Nick w MP: Fanciak
Piwa : 1572
A na co Ci ca?y kod? Ukra?? chcesz?
Podaj nazw?, jak nazywa si? Twoja zmienna odno?nie tworzenia markeru.
destroyElement(nazwa tego markeru)
Wysłany: 2015-12-08, 20:59
serek123
Lua, MySql, Sql
Wiek: 27 Na forum: 4334 dni Posty: 217
Nick w MP: Serek.
Piwa : 374
On nazywa si? marker ja pobieram x,y,z z tablicy
[ Dodano : 2015-12-09, 20:41 ]
Pomo?e kto???????
[ Dodano : 2015-12-09, 20:53 ]
pomo?e ktos
Tagi: destoryelement
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: