Modulo:Discendenza/sandbox: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
Nessun oggetto della modifica |
mNessun oggetto della modifica |
||
Riga 31:
if (px) then
if (pers[nx]) then
error(string.format('Inserito id =
else
pers[nx] = { padre = px, testo = dati[m-1], nota = dati[m], id = -1, x = -1, y = -1, sp = 0, figli = {} }
end
else
error(string.format('Inserito id genitore =
end
else
error(string.format('Inserito id =
end
resto = n-m
Riga 332:
capo = i
else
error(string.format('Inseriti più elementi come capostipite (id =
end
else
if (v.padre == i) then
error(string.format('Inserito elemento come figlio di se stesso (id =
elseif (pers[v.padre]) then
table.insert(pers[v.padre].figli,i)
else
error(string.format('Inserito id genitore =
end
end
|