Wysłany: 2015-08-15, 20:59
NoNi3zle
Uczeń LUA
Wiek: 24 Na forum: 4179 dni Posty: 42
Nick w MP: NoNi3zle
Piwa : 78
po wpisaniu komendy np /swiatla 190 189 127 wyskakuje Nie uda?o si? zmieni? koloru ?wiate? . Nie wiem jak to naprawi?.
PS. obojetni? gdzie wpisze to wyskakuje a chcia?bym aby ?wiat?a mo?na by?o zmienia? tylko w markerze i ?eby zabiera?o kase
Kod: Marker = createMarker( -1998.81176, 175.89739, 26.50, 'cylinder', 2.0, 255, 0, 0, 150 )-- marker
function changeCarLightsColor ( thePlayer, hitPlayer, command, red, green, blue )
local theVehicle = getPedOccupiedVehicle ( thePlayer )
if ( not theVehicle ) then
return outputChatBox ( "Nie jeste? w poje?dzie!" )
end
red = tonumber ( red )
green = tonumber ( green )
blue = tonumber ( blue )
if red and green and blue then
local color = setVehicleHeadLightColor ( theVehicle, red, green, blue )
if(not color) then
outpotChatBox ( "Nie uda?o si? zmieni? koloru ?wiate?" )
else
outputChatBox ( "?wiat?a samochodowe zosta?e zmienione pomy?lnie" )
end
else
outputChatBox ( "Nie uda?o si? zmieni? koloru ?wiate?" )
end
end
addCommandHandler ("swiatla", changeCarLightsColor )
Więcej szczegółów
Wystawiono 1 piw(a):dominx_yt
Wysłany: 2015-08-15, 21:07
jg2aviva1
Rusek :D
Wiek: 25 Na forum: 4134 dni Posty: 445
Nick w MP: _Wolfenstei[N]^.^
Piwa : 1033
Sprobuj nawiasy usun?? z funkcji sprawdzaj?cej, czy gracz jest w poje?dzie
[ Dodano : 2015-08-15, 21:08 ]
A jakies bledy w db3?
Podpis
GTAO Member: 2015-08-23, 14:26
Wysłany: 2015-08-15, 21:16
NoNi3zle
Uczeń LUA
Wiek: 24 Na forum: 4179 dni Posty: 42
Nick w MP: NoNi3zle
Piwa : 78
s? b??dy ale nie s? zwiazane z tym skryptem
Wysłany: 2015-08-15, 21:19
jg2aviva1
Rusek :D
Wiek: 25 Na forum: 4134 dni Posty: 445
Nick w MP: _Wolfenstei[N]^.^
Piwa : 1033
Wysłany: 2015-08-16, 01:59
#404
Wiek: 26 Na forum: 4771 dni Posty: 1438
Piwa : 2512
B??d jest powi?zany z addCommandHandler, polecam zapozna? si? z zwracanymi przez niego parametrami.
Wysłany: 2015-08-17, 20:43
sebik2303
Mapper :)
Wiek: 25 Na forum: 4160 dni Posty: 298
Nick w MP: sebik2303
Piwa : 899
NoNi3zle , a mo?e spr?buj tak?
Marker = createMarker ( - 1998.81176 , 175.89739 , 26.50 , 'cylinder' , 2.0 , 255 , 0 , 0 , 150 )-- marker
function changeCarLightsColor ( thePlayer , hitPlayer , command , red , green , blue )
if isElementWithinMarker ( sourcePlayer , Marker ) then
local theVehicle = getPedOccupiedVehicle ( thePlayer )
if ( not theVehicle ) then
return outputChatBox ( "Nie jeste? w poje?dzie!" )
end
end
red = tonumber ( red )
green = tonumber ( green )
blue = tonumber ( blue )
if red and green and blue then
local color = setVehicleHeadLightColor ( theVehicle , red , green , blue )
if( not color ) then
outpotChatBox ( "Nie uda?o si? zmieni? koloru ?wiate?" )
else
outputChatBox ( "?wiat?a samochodowe zosta?e zmienione pomy?lnie" )
end
else
outputChatBox ( "Nie uda?o si? zmieni? koloru ?wiate?" )
end
end
addCommandHandler ( "swiatla" , changeCarLightsColor )
Wysłany: 2015-08-17, 21:27
Tostuch
Wiek: 27 Na forum: 4931 dni Posty: 483
Nick w MP: Tost
Piwa : 137
function changeCarLightsColor ( thePlayer , command , red , green , blue )
Podmie? za to, powinno by? ok.
Tagi: skrypt :: tuningowane :: światła
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: