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

Wysłany: 2014-10-01, 18:28


BlackTen

LUA Dev.






Wiek: 28
Na forum: 4470 dni
Posty: 698

Piwa: 2080

Respekt: 157
Respekt: 157Respekt: 157

meta


<meta>

<script type="server" src="dorywcza.lua"/>

</meta>

kod

marker = createMarker(,12.455548286438, 1229.2377929688, 19.34250831604, 'arrow', 2.0, 255, 255, 255, 150) 

function praca ( thePlayer )
if isElementWithinMarker(thePlayer, marker) then 
setElementModel ( thePlayer, 275 ) 
else 
outputChatBox("Nie jeste? w markerze , wpisz /zacznij-prace aby rozpocz??!", 255, 0, 0) 
end 
end 
addCommandHandler("zacznij-prace", skrypt)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-10-01, 18:33


Artysta

Lua, Lua, Czekolada






Wiek: 28
Na forum: 4607 dni
Posty: 240
Nick w MP: Artysta/Koojot

Piwa: 1427

Respekt: 205,8
Respekt: 205,8Respekt: 205,8

W jedno miejsce wpad? Ci przecinek a w inne nie ustali?e? komu ma si? pokazywa? ten komunikat :)


marker = createMarker(12.455548286438, 1229.2377929688, 19.34250831604, 'arrow', 2.0, 255, 255, 255, 150) 

function praca ( thePlayer )
if isElementWithinMarker(thePlayer, marker) then 
setElementModel ( thePlayer, 275 ) 
else 
outputChatBox("Nie jeste? w markerze , wpisz /zacznij-prace aby rozpocz??!",source, 255, 0, 0) 
end 
end 
addCommandHandler("zacznij-prace", praca )


Podpis
Something is coming..
Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-10-01, 18:38


BlackTen

LUA Dev.






Wiek: 28
Na forum: 4470 dni
Posty: 698

Piwa: 2080

Respekt: 157
Respekt: 157Respekt: 157

no ok, ale nie dziala komeda

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-10-01, 18:43


Artysta

Lua, Lua, Czekolada






Wiek: 28
Na forum: 4607 dni
Posty: 240
Nick w MP: Artysta/Koojot

Piwa: 1427

Respekt: 205,8
Respekt: 205,8Respekt: 205,8

Jak to nie dzia?a ? Co? w db3 ?

Podpis
Something is coming..
Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-10-01, 18:46


BlackTen

LUA Dev.






Wiek: 28
Na forum: 4470 dni
Posty: 698

Piwa: 2080

Respekt: 157
Respekt: 157Respekt: 157

juz pacze czek

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-10-01, 18:47


KukiX







Wiek: 34
Na forum: 6859 dni
Posty: 567

Piwa: 17560

Respekt: 160
Respekt: 160Respekt: 160

"Artysta" napisał/a:

W jedno miejsce wpad? Ci przecinek a w inne nie ustali?e? komu ma si? pokazywa? ten komunikat :)


marker = createMarker(12.455548286438, 1229.2377929688, 19.34250831604, 'arrow', 2.0, 255, 255, 255, 150) 

function praca ( thePlayer )
if isElementWithinMarker(thePlayer, marker) then 
setElementModel ( thePlayer, 275 ) 
else 
outputChatBox("Nie jeste? w markerze , wpisz /zacznij-prace aby rozpocz??!",source, 255, 0, 0) 
end 
end 
addCommandHandler("zacznij-prace", praca )


Gdzie ty tam masz source?
Powinno by?:

outputChatBox("Nie jeste? w markerze , wpisz /zacznij-prace aby rozpocz??!",thePlayer, 255, 0, 0) 


Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-10-01, 18:49


BlackTen

LUA Dev.






Wiek: 28
Na forum: 4470 dni
Posty: 698

Piwa: 2080

Respekt: 157
Respekt: 157Respekt: 157

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-10-01, 18:55


Artysta

Lua, Lua, Czekolada






Wiek: 28
Na forum: 4607 dni
Posty: 240
Nick w MP: Artysta/Koojot

Piwa: 1427

Respekt: 205,8
Respekt: 205,8Respekt: 205,8

Oj, source mi si? odruchowo wpisa?o :D

Podpis
Something is coming..
Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-10-01, 18:59


BlackTen

LUA Dev.






Wiek: 28
Na forum: 4470 dni
Posty: 698

Piwa: 2080

Respekt: 157
Respekt: 157Respekt: 157

dalej nie dziala

[ Dodano: 2014-10-01, 19:59 ]
pomocy mam tu drugi kod i nie dziala
marker = createMarker(12.455548286438, 1229.2377929688, 19.34250831604, 'cylinder', 2.0, 255, 255, 255, 150) 

function createvehicle()
        local 1.7536542415619, 1232.6398925781, 19.350032806396 = getElementPosition(localPlayer)
        veh = createVehicle(533, 1.7536542415619, 1232.6398925781, 19.350032806396 )
    end
end

addEventHandler ( "onMarkerHit", root(), MarkerHit )



marker sie nie tworzy !!

Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-10-02, 02:51


Piorun







Wiek: 33
Na forum: 6853 dni
Posty: 1837
Nick w MP: Piorun

Piwa: 516

Respekt: 480,7
Respekt: 480,7

AstroStudio, ten kod z komend? - interpreter go bierze jak ze strony klienta wi?c sprawd? raz jeszcze met? i nie wiem czy to ma jaki? sens ale przed "/>" daj spacj?.

Co do drugiego - root bez nawias?w.

Podpis
Możesz mnie znaleźć na: Facebook
Postaw piwo autorowi tego posta
 

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


MeeShuffle

Programista/Grafik






Wiek: 33
Na forum: 4535 dni
Posty: 2758
Nick w MP: Shuffle

Piwa: 8578

Respekt: 535,3
Respekt: 535,3

local 1.7536542415619, 1232.6398925781, 19.350032806396 = getElementPosition(localPlayer)


WAAAT?

Podpis

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

 
Wysłany: 2014-10-02, 07:42


Maximerr

Programmer PHP, LUA






Wiek: 25
Na forum: 4568 dni
Posty: 548

Piwa: 1051

Respekt: 365,3
Respekt: 365,3Respekt: 365,3Respekt: 365,3Respekt: 365,3


marker = createMarker( 12.455548286438, 1229.2377929688, 19.34250831604, 'cylinder', 2.0, 255, 255, 255, 150 ) 
function markerHit()
veh = createVehicle( 533, 1.7536542415619, 1232.6398925781, 19.350032806396 ) end end 

addEventHandler ( "onMarkerHit", root, markerHit )


[ Dodano: 2014-10-02, 07:47 ]
I wyt?umacz nam co to ma by??
local 1.7536542415619, 1232.6398925781, 19.350032806396 = getElementPosition(localPlayer)



Postaw piwo autorowi tego posta
 

 
Wysłany: 2014-10-02, 15:03


Dixers

No-Life






Wiek: 26
Na forum: 4453 dni
Posty: 549
Nick w MP: Dixers

Piwa: 412

Respekt: 56,8

A nie powinno by? tak?

marker = createMarker( 12.455548286438, 1229.2377929688, 19.34250831604, 'cylinder', 2.0, 255, 255, 255, 150 ) 
function markerHit()
veh = createVehicle( 533, 1.7536542415619, 1232.6398925781, 19.350032806396 ) end end 

addEventHandler ( "onMarkerHit", root(marker), markerHit )



Postaw piwo autorowi tego posta
 

 
Tagi: nie :: dziala
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






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