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

Wysłany: 2014-11-22, 17:27


LordKamis







Wiek: 26
Na forum: 4340 dni
Posty: 107

Piwa: 190

Respekt: 60

Witam chcia?em zrobi? teleport z interioru "3" do "0" lecz po wej?ciu w marker teleportuje mnie na kordynaty ale jestem nadal w interiorze "3"




local marker1 createMarker 238.599139.3451002.0"cylinder"1.52552550170 )
setElementInterior marker1local x,y,2290.162102430.98779.920


function interiorsource) 
    setElementInterior source)
    setElementPosition sourcex,y,)
end
addEventHandler"onMarkerHit"marker1interiorfalse 


Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-11-22, 18:02


Dixers

No-Life






Wiek: 26
Na forum: 4312 dni
Posty: 549
Nick w MP: Dixers

Piwa: 412

Respekt: 56,8


function interiorsource) 
    setElementInterior source)
    setElementPosition sourcex,y,)
end
addEventHandler"onMarkerHit"marker1interiorfalse 


Po co ci to false na ko?cu?

Daj:

function interiorsource) 
    setElementInterior source)
    setElementPosition sourcex,y,)
end
addEventHandler"onMarkerHit"marker1interior


Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-11-22, 18:10


LordKamis







Wiek: 26
Na forum: 4340 dni
Posty: 107

Piwa: 190

Respekt: 60

Nadal teleportuje mnie na kordynaty ale ci?gle w tym samym interiorze

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-11-22, 18:17


Dixers

No-Life






Wiek: 26
Na forum: 4312 dni
Posty: 549
Nick w MP: Dixers

Piwa: 412

Respekt: 56,8

LordKamis, a ju? wiem.

Jak teleportujesz si? na interior 0 nie musisz go wpisywa? w funkcj?...

Czyli tak:

function interiorsource) 
    setElementPosition sourcex,y,)
end
addEventHandler"onMarkerHit"marker1interior)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-11-22, 19:17


Jeey

Lua, Grafik






Wiek: 27
Na forum: 4339 dni
Posty: 98
Nick w MP: Jeey

Piwa: 383

Respekt: 80

Ostrzeżeń: 100%

local marker1 createMarker 238.599139.3451002.0"cylinder"1.52552550170 )
setElementInterior marker1) 

function interiorthePlayer) 
    setElementInterior thePlayer)
    setElementPosition thePlayer2290.162102430.98779.920)
end
addEventHandler"onMarkerHit"marker1interior


jezu

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-11-22, 19:36


Dixers

No-Life






Wiek: 26
Na forum: 4312 dni
Posty: 549
Nick w MP: Dixers

Piwa: 412

Respekt: 56,8

Milo_, o w?a?nie. Dzi?ki za poprawk?. Dzi? w og?le nie my?l? :(

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-11-22, 19:52


LordKamis







Wiek: 26
Na forum: 4340 dni
Posty: 107

Piwa: 190

Respekt: 60

Nadal teleportuje mnie na dobre kordynaty ale nadal nadal jestem w interiorze 3 a nie w 0

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-11-22, 20:23


Jeey

Lua, Grafik






Wiek: 27
Na forum: 4339 dni
Posty: 98
Nick w MP: Jeey

Piwa: 383

Respekt: 80

Ostrzeżeń: 100%


local mar_wejscie createMarker (  xyz"arrow"1.500222170 )

local mar_wyjscie createMarker xyz"arrow"1.500222170 )
setElementInterior mar_wyjscie 3)

function u_w(thePlayersetElementPosition thePlayer,  xy)
setElementInterior thePlayer)
end 
addEventHandler"onMarkerHit"mar_wejscie u_w ) 

function u_wy(thePlayersetElementPosition thePlayer,  xy)
setElementInterior thePlayer)

end 
addEventHandler"onMarkerHit"mar_wyjscie u_wy 


Masz ca?y kod na wejscie i wyjscie po stronie s-side

[ Dodano: 2014-11-22, 20:24 ]
te x ,y ,z ustaw swoje

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-11-22, 20:50


LordKamis







Wiek: 26
Na forum: 4340 dni
Posty: 107

Piwa: 190

Respekt: 60

Dzi?ki ten kod dzia?a masz ode mnie browara :piwo:

Postaw piwo autorowi tego posta
 

 
Tagi: interioru
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA 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