Wysłany: 2020-03-31, 12:21
AmLotte
Wiek: 42 Na forum: 2478 dni Posty: 43
Nick w MP: AmLotte
Piwa : 381
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)
Wysłany: 2020-03-31, 12:27
PatryKK.
Emeryt LUA
Wiek: 26 Na forum: 3061 dni Posty: 1060
Nick w MP: PatryKK.
Piwa : 2322
Wysłany: 2020-03-31, 12:32
AmLotte
Wiek: 42 Na forum: 2478 dni Posty: 43
Nick w MP: AmLotte
Piwa : 381
jak ju? pisa?em
then getElementType(hitElement) == "player" then
if getPedOccupiedVehicle(hitElement) == false then
te " == " mi wywala b??d
Wysłany: 2020-03-31, 13:47
Wilq
Wiek: 24 Na forum: 4428 dni Posty: 3410
Piwa : 739
Poprawna linijka:
if getElementType ( hitElement ) == "player" then
BTW. Ilo?? end?w si? nie zgadza co do ilo?ci otwartych warunk?w sprawdzaj?cych.
Tagi: jest :: nie :: tak?
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: