Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2015-01-06, 12:22


polskianimal

Skrypter






Wiek: 24
Na forum: 4198 dni
Posty: 77
Nick w MP: polskianimal

Piwa: 1

Respekt: 50

Witam wszystkich, mam problem z destroyElement. Chodzi mi o to ?e gdy gracz wejdzie w marker to ten sie nie usuwa.

Kod:

Kod:

start = createMarker(-2532.5,-616.09997558594,131.60000610352,"cylinder",2,254,0,0,255,getRootElement())

function ladowanie (hitElement)
outputChatBox ( "Podje?e? prace reportera, jedz do miejsca oznaczonego blipem na mapie",hitElement)
local yolo = createMarker(-2142.1000976563,-221.69999694824,34.299999237061,"cylinder",2,255,0,0,255,getRootElement())
local blip = createBlip ( -2142.1000976563, -221.69999694824, 34.299999237061, 41, 0, 0, 0, 255, myPlayer )
end
addEventHandler("onMarkerHit",start,ladowanie)

function koniec (hitElement,thePlayer,amount)
if yolo then
if isElement( yolo ) then
destroyElement( yolo )
givePlayerMoney ( thePlayer, 75 )
outputChatBox ( "Zako?czy?e? prace.Zarobek: +75 euro",hitElement)
end
end
end
addEventHandler("onMarkerHit",getRootElement(),koniec)

PS: Ostatni patrzy?em sobie na inne kody i tam by?o napisane destroyElement w client. Czy to nie jest w tym problem bo ca?y kod jest po stronie serwera. Za wszelk? pomoc bardzo dzi?kuje :roll:


Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-01-06, 12:40


Bingwin

LUA MTA






Wiek: 27
Na forum: 4191 dni
Posty: 95
Nick w MP: Bingwin

Piwa: 2070

Respekt: 98

Ostrzeżeń: 40%
Spr?buj tym sposobem .

  if source == marker2 then 
destroyElement marker2 )
 marker3 createMarker ( -1920.17089843751180.3554687543.954963684082"cylinder"3.025500100)
end
  if source == marker3 then 
destroyElement marker3 )
 marker4 createMarker ( -2146.363281251179.424804687554.236248016357"cylinder"3.025500100)
end


Podpis


RolePlayGaming - KLIKNIJ (ZEBRAKI)
Numer GG: 49514852|Skype: parabol235
Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-01-06, 12:54


MeeShuffle

Programista/Grafik






Wiek: 32
Na forum: 4395 dni
Posty: 2758
Nick w MP: Shuffle

Piwa: 8575

Respekt: 535,3
Respekt: 535,3

Kod jest zasyfiony ale spr?buj :


start createMarker(-2532.5,-616.09997558594,131.60000610352,"cylinder",2,254,0,0,255,getRootElement()) 

function ladowanie (hitElementoutputChatBox "Podje?e? prace reportera, jedz do miejsca oznaczonego blipem na mapie",hitElementlocal yolo createMarker(-2142.1000976563,-221.69999694824,34.299999237061,"cylinder",2,255,0,0,255,getRootElement()) 
local blip createBlip ( -2142.1000976563, -221.6999969482434.29999923706141000255myPlayer end 
addEventHandler("onMarkerHit",start,ladowanie) 

function koniec (hitElement,thePlayer,amount) 
if source == yolo then
destroyElementyolo givePlayerMoney thePlayer75 outputChatBox "Zako?czy?e? prace.Zarobek: +75 euro",hitElementend 
end 
addEventHandler("onMarkerHit",getRootElement(),koniec


Podpis

https://shufflecode.pl
Static Codes and Graphics - Join our discord!
Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-01-06, 13:01


polskianimal

Skrypter






Wiek: 24
Na forum: 4198 dni
Posty: 77
Nick w MP: polskianimal

Piwa: 1

Respekt: 50

Shuffle,

Tak wiem ?e jest zasyfiony ,ale pr?ba nic nie da?a

Postaw piwo autorowi tego posta
 

 
Tagi: niszczenie :: markera
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » Niszczenie markera Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku