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

Wysłany: 2013-01-17, 16:25


Bilguun







Wiek: 26
Na forum: 5071 dni
Posty: 133
Nick w MP: Bilguun

Piwa: 4

Respekt: 50

Ostrzeżeń: 20%
Witam mam skrypt na teleporty z innego serwera i co? nie dzia?a. Mo?ecie powiedziec gdzie co wpisac ? Chce zrobic nowy teleport i nie wiem gdzie wpisac koordynaty. Prosz? o napisanie komentarzy (--) przy tym co mam tam wpisac

Kod:

marker2 = createMarker(609.169921875, -74.11328125, 997.9921875, "arrow", 0, 20, 2, 2)
setElementInterior ( marker2, 2)
setElementDimension ( marker2, 243 )
function teleport(hitElement, dim)
if getElementType(hitElement)=="player" and source == marker2 then
local vehicle = getPedOccupiedVehicle(hitElement)
if vehicle then
local seat = getPedOccupiedVehicleSeat(hitElement)
setElementDimension ( hitElement, 0 )
setElementDimension ( vehicle, 0 )
setElementInterior ( hitElement, 0, 1272.46484375, -1811.8994140625, 13.385084152222 )
setElementInterior ( vehicle, 0, 1272.46484375, -1811.8994140625, 13.385084152222 )
setElementPosition(hitElement, 1272.46484375, -1811.8994140625, 13.385084152222, 0)
setElementPosition(vehicle, 1272.46484375, -1811.8994140625, 13.385084152222, 243, 0)
warpPedIntoVehicle(hitElement, vehicle, seat)
end
end
end
addEventHandler("onMarkerHit", getRootElement(), teleport)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-01-17, 17:37


pidbulxd







Wiek: 28
Na forum: 5230 dni
Posty: 135
Nick w MP: Word

Piwa: 540

Respekt: 60

Bilguun, jak glosi polityka tego forum, nie pomagamy przy nie swoich skryptach.

Radze ci zrobi? to samemu, to nauczysz si? jak. Poszukaj wytlumaczen funkcji na wiki.
Pomoge ci zacz??:


markertele createMarker(xy"arrow"koloralpha) 

function telpnij (hitElement)
if getElementType(hitElement)=="player" and source == markertele then 
setElementPositon hitElementxy)
setElementInterior hitElementid)
setElementDimension hitElementdimension )
outputChatBox ("Tre?? Wiadomo??i"hitElementkolo)
end
end
addEventHandler("onMarkerHit"getRootElement(), tepnij)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-01-17, 18:31


Bilguun







Wiek: 26
Na forum: 5071 dni
Posty: 133
Nick w MP: Bilguun

Piwa: 4

Respekt: 50

Ostrzeżeń: 20%
Ehh, teraz mi pisz?:
Kod:

ERROR: Teleporty\tel.lua:7: attempt to call global 'setElementPositon' (a nil value)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2013-01-17, 18:56


pidbulxd







Wiek: 28
Na forum: 5230 dni
Posty: 135
Nick w MP: Word

Piwa: 540

Respekt: 60

Zamie?

setElementPositon 


na


setElementPosition


Przepraszam, m?j b??d.

Postaw piwo autorowi tego posta
 

 
Tagi: teleporty
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