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

Wysłany: 2015-12-06, 16:27


#404







Wiek: 26
Na forum: 4771 dni
Posty: 1438

Piwa: 2512

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

Ostrzeżeń: 60%

local tablica = {
{},
{},
{},
{},
{},
{},
{},
{},
{},
{}
}


function WMarker(hemd)
if not md then return edn
if he ~= localPlayer then return end
if not getElementData(source"Egzamin"then return end

if not getPedOccupiedVehicle(localPlayerthen return end

if postep == #tablica then
if getElementType(he) == "vehicle" then
destroyElement(he)
end
destroyElement(marker)
return end

destroyElement(source)
postep postep 1
local x,y,tablica[postep1][1], tablica[postep][2], tablica[postep][3]
local marker createMarker(x,y,z"checkpoint"325500)
setElementData(marker"Egzamin"true)
end)

function start()
local x,y,tablica[1][1], tablica[1][2], tablica[1][3]
local marker createMarker(x,y,z"checkpoint"325500)
setElementData(marker"Egzamin"true)
postep 1
addEventHandler("onClientMarkerHit"resourceRootWMarker)
end
addEvent("start"true)
addEventHandler("start"getRootElement(), start)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-12-06, 16:31


serek123

Lua, MySql, Sql






Wiek: 27
Na forum: 4334 dni
Posty: 217
Nick w MP: Serek.

Piwa: 374

Respekt: 70

do tej linijki

destroyElement(marker)

jest db
Bad argument @ 'destoryElement' [Expected element at argument 1, got nil]

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-12-06, 16:33


#404







Wiek: 26
Na forum: 4771 dni
Posty: 1438

Piwa: 2512

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

Ostrzeżeń: 60%
serek123, podmie? marker na source.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-12-06, 16:35


serek123

Lua, MySql, Sql






Wiek: 27
Na forum: 4334 dni
Posty: 217
Nick w MP: Serek.

Piwa: 374

Respekt: 70

Marker znika ale pojazd nie db czyste

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-12-06, 16:37


#404







Wiek: 26
Na forum: 4771 dni
Posty: 1438

Piwa: 2512

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

Ostrzeżeń: 60%

if postep == #tablica then
if getElementType(he) == "player" then
destroyElement(getPedOccupiedVehicle(he))
end
destroyElement(source)
return end


Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-12-06, 16:40


serek123

Lua, MySql, Sql






Wiek: 27
Na forum: 4334 dni
Posty: 217
Nick w MP: Serek.

Piwa: 374

Respekt: 70

Nadal nie znika

[ Dodano: 2015-12-07, 15:07 ]
Jak zrobi? to ?eby auto znika?o po wje?dzie w ostatni marker

Postaw piwo autorowi tego posta
 

 
Tagi: tablice
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






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