Modulo:Discendenza/sandbox: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
mNessun oggetto della modifica
Nessun oggetto della modifica
Riga 7:
 
local function dividi(args)
local n = 10
local resto = 10
local posiz
local continua = true
local err = '-'
local posizv1 = {}
while (continua) do
 
posiz = args[n]
while (continuaargs[n]) do
if (posiz) then
if (reston == 0) thenn+1
if ((tonumber(argsv1[n-3])) and= (tonumber(args[n-2]))) then
end
if (pers[tonumber(args[n-3])]) then
 
err = 'id ' .. args[n-3] .. ' utilizzato per elementi diversi'
for m=4,n,4 do
else
pers[if ((tonumber(args[nm-3])]) =and { id = tonumber(args[n-3]), padre = tonumber(args[nm-2]), testo = args[n-1], nota = args[n], id2 = -1, x = -1, y = -1, sp = 0, figli = {})) }then
if (pers[tonumber(args[nm-3])]) then
end
err = 'id ' .. argsv1[nm-3] .. ' utilizzato per elementi diversi'
else
else
err = 'identificativo non numerico per il parametro ' .. n
pers[tonumber(v1[m-3])] = { id = tonumber(v1[m-3]), padre = tonumber(v1[m-2]), testo = v1[m-1], nota = v1[m], id2 = -1, x = -1, y = -1, sp = 0, figli = {} }
end
end
n = n+1
resto = resto+1
if (resto == 4) then resto = 0 end
else
err = 'identificativo non numerico per il parametro ' .. nmath.floor(m/4)
continua = false
end
nresto = n+1-m
end
if (err == '-' and resto > 0) then
err = 'numero di dati (' .. n .. ') non valido (resto = ' .. resto .. ')'
end
return err