Wysłany: 2015-01-04, 10:50
Bilguun
Wiek: 26 Na forum: 5071 dni Posty: 133
Nick w MP: Bilguun
Piwa : 4
Co? mi nie ten teges z tabel? i wywala mi b??d nie wiem dlaczego.
local itemsSorted = {}
itemsSorted [ 1 ][ 1 ] = { "bla" , "bla" , "bla" }
DB3: attempt to index field '?' (a nil value)
Wysłany: 2015-01-04, 10:55
dudeks
Wiek: 31 Na forum: 6576 dni Posty: 171
Piwa : 89
local itemsSorted = {}
itemsSorted[1] = { }
itemsSorted[1][1] = { "bla" , "bla" , "bla" }
Wysłany: 2015-01-04, 11:08
Bilguun
Wiek: 26 Na forum: 5071 dni Posty: 133
Nick w MP: Bilguun
Piwa : 4
dok?adnie to jest to kod taki, jakbym to m?g? przerobi? ?
local savedClientItems = {}
local itemsSorted = {}
function refreshClientItems ( itemTable )
savedClientItems = itemTable
local page = 1
for i , v in ipairs ( itemTable ) do
if i == 6 or i == 12 or i == 18 then page = page + 1 end
itemsSorted [ i ][ page ] = { v [ 1 ] , v [ 2 ] , v [ 3 ] }
end
end
Tagi: tabela :: nie :: chce :: się :: wpisać
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: