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

Wysłany: 2020-03-31, 12:21


AmLotte







Wiek: 42
Na forum: 2478 dni
Posty: 43
Nick w MP: AmLotte

Piwa: 381

Respekt: 50

Ostrzeżeń: 100%
Po ustawieniu kord?w oraz id auta wyskakuje mi b??d z ==

Kod:

local SpawnujePojazd = createMarker(x,y,z,"cylinder")

function vehicleSpawner(hitElement,matchingDimension)
then getElementType(hitElement) == "player" then
if getPedOccupiedVehicle(hitElement) == false then
local x,y,z = getElementPosition(hitElement)
local veh = createVehicle(Id auta tu trzeba, x,y,z)
warpPedIntoVehicle(hitElement,veh)
setTimer ( function()
outputChatBox ( "Za 30 sekund usunie si? tw?j pojazd testowy" )
end, 30000, 1 )
destroyElement(veh)
end
addEventHandler("onMarkerHit",SpawnujePojazd,vehicleSpawner)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2020-03-31, 12:27


PatryKK.

Emeryt LUA






Wiek: 26
Na forum: 3061 dni
Posty: 1060
Nick w MP: PatryKK.

Piwa: 2322

Respekt: 331,5
Respekt: 331,5Respekt: 331,5Respekt: 331,5

bledy z db3?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2020-03-31, 12:32


AmLotte







Wiek: 42
Na forum: 2478 dni
Posty: 43
Nick w MP: AmLotte

Piwa: 381

Respekt: 50

Ostrzeżeń: 100%
jak ju? pisa?em
then getElementType(hitElement) == "player" then
if getPedOccupiedVehicle(hitElement) == false then
te " == " mi wywala b??d

Postaw piwo autorowi tego posta
 

 
Wysłany: 2020-03-31, 13:47


Wilq







Wiek: 24
Na forum: 4429 dni
Posty: 3410

Piwa: 739

Respekt: 1225,8
Respekt: 1225,8

Poprawna linijka:
if getElementType(hitElement) == "player" then 


BTW. Ilo?? end?w si? nie zgadza co do ilo?ci otwartych warunk?w sprawdzaj?cych.

Postaw piwo autorowi tego posta
 

 
Tagi: jest :: nie :: tak?
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA Odpowiedz do tematu

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