الجدول قبل وبعد
CarsTable = {
{"1-","Vehicle (1)"},
{"2-","Vehicle (2)"},
{"3-","Vehicle (3)"},
{"4-","Vehicle (4)"}
}
CarsTable = {
{ "Vehicle (1)" },
{ "Vehicle (2)" },
{ "Vehicle (3)" },
{ "Vehicle (4)" }
}
=======================
@ Rm-Dj :
GUIEditor_Grid = {}
Vehicle = guiCreateWindow(453,218,302,379,"x[ Vehicle Systm ]x",false)
guiSetAlpha (Vehicle, 1)
set = guiCreateButton (0.0795,0.8575,0.4007,0.1135,"x[ set ]x",true,Vehicle)
close = guiCreateButton (0.5166,0.8602,0.4007,0.1135,"x[ close ]x",true,Vehicle)
GUIEditor_Grid[1] = guiCreateGridList(0.106,0.1214,0.7583,0.6887,true,Vehicle)
guiGridListSetSelectionMode(GUIEditor_Grid[1],2)
guiGridListAddColumn(GUIEditor_Grid[1],"Vehicle ",0.2)
guiSetAlpha(GUIEditor_Grid[1],0.89999997615814)
CarsTable = {
{ "Sultan" },
{ "Banshee" },
{ "Cheetah" },
{ "Admiral" },
}
for i, v in ipairs ( CarsTable ) do
local row = guiGridListAddRow ( GUIEditor_Grid[1] )
guiGridListSetItemText ( GUIEditor_Grid[1], row, 1, v[1], false, true )
end
عدل على الجدول ذذذ
@ 3NAD
قصدي الترتيب بـ العمود الاول ماراح يرتب الارقام تلقائيا ~ عارف انةة راح يرتب السيارات تلقائيا او المضاف في الجدول ~ بس الارقام اضافية مثل ماتقول ~