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

Wysłany: 2014-07-24, 02:00


Maciąg







Wiek: 26
Na forum: 4376 dni
Posty: 211
Nick w MP: Dawirzo

Piwa: 149

Respekt: 31

Jak podawali?cie mi tamten kod, znaczy ten wilk jak mi podawa? no to ok, ale teraz wyskakuje mi taki bl?d '=' expected near '<eof>'. Pomo?ecie :P
A o to kod:

function karetki()
local karetka1 createVeh(416, -1834.599609375, -10.59960937515.39999961853)
removeVehicleSirens(karetka1)
addVehicleSirens(karetka162falsefalsetruefalse)
setVehicleSirens(karetka11, -10.41.625500191.3191.3)
setVehicleSirens(karetka121.10.41.625500191.3191.3)
setVehicleSirens(karetka130.61.11.125500191.3191.3)
setVehicleSirens(karetka14, -0.71.11.125500191.3191.3)
setVehicleSirens(karetka151.1, -3.51.6255255255191.3191.3)
setVehicleSirens(karetka16, -1, -3.51.6255255255191.3191.3)
--skopiuj tak dalej i zmieniaj z karetka1 na karetka2 potem 3 itd--
end
addEventHandler('onResourceStart',getResourceRootElement(getThisResource()),karetki)inni


Podpis
Status prac nad Time to play RPG 25%
Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-07-24, 02:04


krydianero

Samotny Wilk






Wiek: 33
Na forum: 4782 dni
Posty: 395
Nick w MP: Yoshida

Piwa: 1798

Respekt: 117,3
Respekt: 117,3

"Maci?g" napisał/a:

Jak podawali?cie mi tamten kod, znaczy ten wilk jak mi podawa? no to ok, ale teraz wyskakuje mi taki bl?d '=' expected near '<eof>'. Pomo?ecie :P
A o to kod:


function karetki()
local karetka1 createVeh(416, -1834.599609375, -10.59960937515.39999961853)
removeVehicleSirens(karetka1)
addVehicleSirens(karetka162falsefalsetruefalse)
setVehicleSirens(karetka11, -10.41.625500191.3191.3)
setVehicleSirens(karetka121.10.41.625500191.3191.3)
setVehicleSirens(karetka130.61.11.125500191.3191.3)
setVehicleSirens(karetka14, -0.71.11.125500191.3191.3)
setVehicleSirens(karetka151.1, -3.51.6255255255191.3191.3)
setVehicleSirens(karetka16, -1, -3.51.6255255255191.3191.3)
--skopiuj tak dalej i zmieniaj z karetka1 na karetka2 potem 3 itd--
end
addEventHandler('onResourceStart',getResourceRootElement(getThisResource()),karetki)


Gotowe :)

Podpis

Multi Drive Unlimited:Nowy projekt już wkrótce

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-07-24, 02:07


MeeShuffle

Programista/Grafik






Wiek: 32
Na forum: 4394 dni
Posty: 2758
Nick w MP: Shuffle

Piwa: 8575

Respekt: 535,3
Respekt: 535,3

local karetka1 createVeh(416, -1834.599609375, -10.59960937515.39999961853)


Nie widzisz tu nic ?

Podpis

https://shufflecode.pl
Static Codes and Graphics - Join our discord!
Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-07-24, 02:11


krydianero

Samotny Wilk






Wiek: 33
Na forum: 4782 dni
Posty: 395
Nick w MP: Yoshida

Piwa: 1798

Respekt: 117,3
Respekt: 117,3

Maci?g, kordynaty z?e, usu? minus w pierwszym (tworz sie ale gdzie indziej)

Podpis

Multi Drive Unlimited:Nowy projekt już wkrótce

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-07-24, 02:22


Maciąg







Wiek: 26
Na forum: 4376 dni
Posty: 211
Nick w MP: Dawirzo

Piwa: 149

Respekt: 31

N niestety nie wyskakuj?, wyskakuj? warring ale do innego skryptu, jak chcesz podam ss'y
http://zapodaj.net/b31007492a4c6.png.html

Podpis
Status prac nad Time to play RPG 25%
Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-07-24, 02:25


krydianero

Samotny Wilk






Wiek: 33
Na forum: 4782 dni
Posty: 395
Nick w MP: Yoshida

Piwa: 1798

Respekt: 117,3
Respekt: 117,3

Sory nie wklei?o ca?o?ci:

function createVeh(model,x,y,z)
if model and and and z then
createVehicle(model,x,y,z)
end
end

function karetki()
local karetka1 createVeh(416, -1834.599609375, -10.59960937515.39999961853)
removeVehicleSirens(karetka1)
addVehicleSirens(karetka162falsefalsetruefalse)
setVehicleSirens(karetka11, -10.41.625500191.3191.3)
setVehicleSirens(karetka121.10.41.625500191.3191.3)
setVehicleSirens(karetka130.61.11.125500191.3191.3)
setVehicleSirens(karetka14, -0.71.11.125500191.3191.3)
setVehicleSirens(karetka151.1, -3.51.6255255255191.3191.3)
setVehicleSirens(karetka16, -1, -3.51.6255255255191.3191.3)
--skopiuj tak dalej i zmieniaj z karetka1 na karetka2 potem 3 itd--
end
addEventHandler('onResourceStart',getResourceRootElement(getThisResource()),karetki)


Podpis

Multi Drive Unlimited:Nowy projekt już wkrótce

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-07-24, 02:26


Maciąg







Wiek: 26
Na forum: 4376 dni
Posty: 211
Nick w MP: Dawirzo

Piwa: 149

Respekt: 31

Hoho, jaka riposta maszyna :P Dzi?ki za pomoc, dzia?a. Tylko gdzie zmieni? ob?r karetki?

[ Dodano: 2014-07-24, 02:26 ]
obr?t, w kt?r? stron? ma by? odwr?cona..****

[ Dodano: 2014-07-24, 02:27 ]
A i czy mo?na ustawi? jaki ma mie? kolor?

Podpis
Status prac nad Time to play RPG 25%
Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-07-24, 02:29


krydianero

Samotny Wilk






Wiek: 33
Na forum: 4782 dni
Posty: 395
Nick w MP: Yoshida

Piwa: 1798

Respekt: 117,3
Respekt: 117,3

Masz z obrotem + kolor

function createVeh(model,x,y,zrx,ry,rz)
if model and and and and rx and ry and rz then
createVehicle(model,x,y,zrxryrz)
end
end

function karetki()
local karetka1 createVeh(416, -1834.599609375, -10.59960937515.39999961853rxryrz)
removeVehicleSirens(karetka1)
setVehicleColor(karetka1,255,0,50)--kolory rgb
addVehicleSirens(karetka162falsefalsetruefalse)
setVehicleSirens(karetka11, -10.41.625500191.3191.3)
setVehicleSirens(karetka121.10.41.625500191.3191.3)
setVehicleSirens(karetka130.61.11.125500191.3191.3)
setVehicleSirens(karetka14, -0.71.11.125500191.3191.3)
setVehicleSirens(karetka151.1, -3.51.6255255255191.3191.3)
setVehicleSirens(karetka16, -1, -3.51.6255255255191.3191.3)
--skopiuj tak dalej i zmieniaj z karetka1 na karetka2 potem 3 itd--
end
addEventHandler('onResourceStart',getResourceRootElement(getThisResource()),karetki)


Podpis

Multi Drive Unlimited:Nowy projekt już wkrótce

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-07-24, 02:34


MeeShuffle

Programista/Grafik






Wiek: 32
Na forum: 4394 dni
Posty: 2758
Nick w MP: Shuffle

Piwa: 8575

Respekt: 535,3
Respekt: 535,3

Je?li chodzi Ci o obr?t wzgl?dem postaci czyli, ?e musi ona sta? naprzeciwko postaci do tego b?d? Ci potrzebne funkcje math.cos i math.sin.

Podpis

https://shufflecode.pl
Static Codes and Graphics - Join our discord!
Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-07-24, 02:39


krydianero

Samotny Wilk






Wiek: 33
Na forum: 4782 dni
Posty: 395
Nick w MP: Yoshida

Piwa: 1798

Respekt: 117,3
Respekt: 117,3

PanMaszyna, jemu chodzi, ?e sam poda rotacje...

Podpis

Multi Drive Unlimited:Nowy projekt już wkrótce

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-07-24, 02:40


MeeShuffle

Programista/Grafik






Wiek: 32
Na forum: 4394 dni
Posty: 2758
Nick w MP: Shuffle

Piwa: 8575

Respekt: 535,3
Respekt: 535,3

Ale ja go poinformowa?em tylko o tej?e mo?liwo?ci.

Podpis

https://shufflecode.pl
Static Codes and Graphics - Join our discord!
Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-07-24, 02:46


krydianero

Samotny Wilk






Wiek: 33
Na forum: 4782 dni
Posty: 395
Nick w MP: Yoshida

Piwa: 1798

Respekt: 117,3
Respekt: 117,3

PanMaszyna, tylko tak napisa?em przecie? nie bij?

Podpis

Multi Drive Unlimited:Nowy projekt już wkrótce

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-07-24, 06:43


Maciąg







Wiek: 26
Na forum: 4376 dni
Posty: 211
Nick w MP: Dawirzo

Piwa: 149

Respekt: 31

Czy to tak?e trzeba przepisa? do kodu?

function createVeh(model,x,y,zrx,ry,rz)
if model and and and and rx and ry and rz then
createVehicle(model,x,y,zrxryrz)
end
end


[ Dodano: 2014-07-24, 06:44 ]
A i czy mam tam wpisywa? te rotacje itp.

[ Dodano: 2014-07-24, 07:10 ]
Nie rozumiem, nie dzia?a, mam taki kod, wczoraj dzia?a?o, ale koloru nie dawa?o, a teraz?

function createVeh(model,x,y,zrx,ry,rz)
if model and and and and rx and ry and rz then
createVehicle(model,x,y,zrxryrz)
end
end

function karetki()
local karetka1 createVeh(416, -1834.599609375, -10.59960937515.3999996185300270.25)
removeVehicleSirens(karetka1)
setVehicleColor(karetka1,255,0,0)--kolory rgb
addVehicleSirens(karetka162falsefalsetruefalse)
setVehicleSirens(karetka11, -10.41.625500191.3191.3)
setVehicleSirens(karetka121.10.41.625500191.3191.3)
setVehicleSirens(karetka130.61.11.125500191.3191.3)
setVehicleSirens(karetka14, -0.71.11.125500191.3191.3)
setVehicleSirens(karetka151.1, -3.51.6255255255191.3191.3)
setVehicleSirens(karetka16, -1, -3.51.6255255255191.3191.3)
--skopiuj tak dalej i zmieniaj z karetka1 na karetka2 potem 3 itd--
end
addEventHandler('onResourceStart',getResourceRootElement(getThisResource()),karetki)


[ Dodano: 2014-07-24, 08:37 ]
Znaczy karetka si? respi, ale kolor si? nie zmienia, ani nie ma moich syren :(

Podpis
Status prac nad Time to play RPG 25%
Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-07-24, 09:50


krydianero

Samotny Wilk






Wiek: 33
Na forum: 4782 dni
Posty: 395
Nick w MP: Yoshida

Piwa: 1798

Respekt: 117,3
Respekt: 117,3

"Maci?g" napisał/a:

Czy to tak?e trzeba przepisa? do kodu?

Tak to jest ca?o??.
Wypr?buj teraz

function createVeh(model,x,y,zrx,ry,rz)
if model and and and and rx and ry and rz then
local karetka1 createVehicle(model,x,y,zrxryrz)
setVehicleColor(karetka1,255,50,50)
removeVehicleSirens(karetka1)
addVehicleSirens(karetka162falsefalsetruefalse)
setVehicleSirens(karetka11, -10.41.625500191.3191.3)
setVehicleSirens(karetka121.10.41.625500191.3191.3)
setVehicleSirens(karetka130.61.11.125500191.3191.3)
setVehicleSirens(karetka14, -0.71.11.125500191.3191.3)
setVehicleSirens(karetka151.1, -3.51.6255255255191.3191.3)
setVehicleSirens(karetka16, -1, -3.51.6255255255191.3191.3)end
end

function karetki()
createVeh(416, -1834.599609375, -10.59960937515.3999996185300270.25)
createVeh(416, -1844.599609375, -10.59960937515.3999996185300270.25)
--teraz tylko dopisuj createVeh(416x,y,z,rx,ry,rzi zmieniaj koordynatykod b?dzie wygodniejszy.
end
addEventHandler('onResourceStart',getResourceRootElement(getThisResource()),karetki)


Podpis

Multi Drive Unlimited:Nowy projekt już wkrótce

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-07-24, 12:17


Maciąg







Wiek: 26
Na forum: 4376 dni
Posty: 211
Nick w MP: Dawirzo

Piwa: 149

Respekt: 31

Czy tutaj tez mam wpisywa? x/y/z ?

function createVeh(model,x,y,zrx,ry,rz)


[ Dodano: 2014-07-24, 12:18 ]
A czy tutaj x/y/z te??

local karetka1 createVehicle(model,x,y,zrxryrz)

Bo skoro na dole jest to chyba nie :P

[ Dodano: 2014-07-24, 12:19 ]
Dlaczego to jest podw?jnie? Tak ma by??

function karetki()
createVeh(416, -1834.599609375, -10.59960937515.3999996185300270.25)
createVeh(416, -1844.599609375, -10.59960937515.3999996185300270.25)


Podpis
Status prac nad Time to play RPG 25%
Postaw piwo autorowi tego posta
 

 
Tagi: wracając :: syren
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