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

Wysłany: 2016-01-06, 13:44


BlackTen

LUA Dev.






Wiek: 28
Na forum: 4330 dni
Posty: 698

Piwa: 2080

Respekt: 157
Respekt: 157Respekt: 157

Witam mam problem ;(
if nazwa == "Zielony" then
local veh getElementsWithinColShape(strefa,'vehicle')
setVehicleHeadLightColor(veh0,255,0)
takePlayerMoney(source,8000)
end

end)

B??d jest z setVehicleHead... (expand vehicle at arg. 1 got table)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-01-06, 13:47


#404







Wiek: 26
Na forum: 4772 dni
Posty: 1438

Piwa: 2512

Respekt: 833,5
Respekt: 833,5Respekt: 833,5

Ostrzeżeń: 60%
BlackTen, pr?bujesz ustawi? dla element?w znajduj?cych si? w tabeli pod zmienn? veh, nie dla pojazdu.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-01-06, 13:50


BlackTen

LUA Dev.






Wiek: 28
Na forum: 4330 dni
Posty: 698

Piwa: 2080

Respekt: 157
Respekt: 157Respekt: 157

Nie ogarniam..

Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-01-06, 13:53


#404







Wiek: 26
Na forum: 4772 dni
Posty: 1438

Piwa: 2512

Respekt: 833,5
Respekt: 833,5Respekt: 833,5

Ostrzeżeń: 60%
Powinno dzia?a?


if nazwa == "Zielony" then
local veh getElementsWithinColShape(strefa,'vehicle')
if #veh ~= 1 then return
outputChatBox("Za du?o lub za ma?o pojzd?w"source)
end
setVehicleHeadLightColor(veh[1], 0,255,0)
takePlayerMoney(source,8000)
end

end)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-01-06, 13:57


BlackTen

LUA Dev.






Wiek: 28
Na forum: 4330 dni
Posty: 698

Piwa: 2080

Respekt: 157
Respekt: 157Respekt: 157

Dzi?ki dzia?a :D Close the subject :d

[ Komentarz dodany przez: DestroY: 2016-01-06, 13:58 ]
Topic* xD

Postaw piwo autorowi tego posta
 

 
Tagi: setvehicleheadlightcolor
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






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