Inserts element value at position pos in table, shifting up other elements to open space, if necessary. The default value for pos is n+1, where n is the length of the table (see §2.5.5), so that a call table.insert(t,x) inserts x at the end of table t.
بإختصار يضيف قيم في الجدول , مثال,
?
local Table = {1,2,'four'}
addCommandHandler('insert',function(plr)
table.insert(Table, 3, 'three')
outputChatBox('Values number : '..#Table..' Texts : '..table.concat(Table,' , '),plr,255,200,25,true)
end
)
لو تلاحظ الجدول ,
?
local Table = {1,2,'four'}
في واحد واثنين واربعه مافي 3
وانا ابي اضيفها للجدول ,
?
table.insert(Table, 3, 'three')
^ طبعا اول ارقومنت حق الجدول ثاني ارقومنت مكان القيمه يعني مثلا بعد 1 او 4 ثالث ارقومنت القيمه
طبعا تقدر تسويها كذا,
?
table.insert(Table, 'three')
وحبيت اقول انه يمكن لأي احد يشارك في المسآعده , ممكن اغيب من المنتدى ...
صاحب الشرح : Sha67