The moVer Posted July 4, 2015 Posted July 4, 2015 السلام عليكم يا شباب في عندي مشكله ولي هي ان addEventHandler ("onClientGUIClick", resourceRoot, function () if (source == GUIEditor.button[4]) then get = guiGetText ( GUIEditor.edit[1] ) x, y, z = getElementPosition () set = table.insert(table2,get,x, y, z, lx, ly, lz) if (set) then outputDebugString ( "Done" ) end end end) ادري انه فنكشن table.insert بس ارقيومينت 1 وش الحل
' A F . Posted July 4, 2015 Posted July 4, 2015 addEventHandler ("onClientGUIClick", resourceRoot, function () table2 = {} if (source == GUIEditor.button[4]) then get = guiGetText ( GUIEditor.edit[1] ) x, y, z = getElementPosition () set = table.insert(table2,get,x, y, z, lx, ly, lz) if (set) then outputDebugString ( "Done" ) end end end)
TAPL Posted July 4, 2015 Posted July 4, 2015 السلام عليكميا شباب في عندي مشكله ولي هي ان addEventHandler ("onClientGUIClick", resourceRoot, function () if (source == GUIEditor.button[4]) then get = guiGetText ( GUIEditor.edit[1] ) x, y, z = getElementPosition () set = table.insert(table2,get,x, y, z, lx, ly, lz) if (set) then outputDebugString ( "Done" ) end end end) ادري انه فنكشن table.insert بس ارقيومينت 1 وش الحل getElementPosition مو حاط المنت في lx, ly, lz مو معرفين get + set + x + y + z استخدم لوكل للمتغيرات حطهم في جدول داخل الجدول table.insert(table2, {get, x, y, z, lx, ly, lz}) table2 ولا تنسى تعريف الجدول
N3xT Posted July 4, 2015 Posted July 4, 2015 addEventHandler ("onClientGUIClick", resourceRoot, function () if (source == GUIEditor.button[4]) then get = guiGetText ( GUIEditor.edit[1] ) x, y, z = getElementPosition () set = table.insert(table2,get,x, y, z, lx, ly, lz) if (set) then outputDebugString ( "Done" ) end end end) ! , حاط أكواد سيرفر مع كلينت
The moVer Posted July 5, 2015 Author Posted July 5, 2015 addEventHandler ("onClientGUIClick", resourceRoot, function () if (source == GUIEditor.button[4]) then get = guiGetText ( GUIEditor.edit[1] ) x, y, z = getElementPosition () set = table.insert(table2,get,x, y, z, lx, ly, lz) if (set) then outputDebugString ( "Done" ) end end end) ! , حاط أكواد سيرفر مع كلينت كنت عاملهم متغيرات غيرتهم
The moVer Posted July 5, 2015 Author Posted July 5, 2015 انت ما وضحت وش الي تبي تسويه بضيف الاسم والاحداثيات بالجدول ويجو بالقريد ليست
iMr.Dawix~# Posted July 5, 2015 Posted July 5, 2015 انت ما وضحت وش الي تبي تسويه بضيف الاسم والاحداثيات بالجدول ويجو بالقريد ليست جرب table2 = {} addEventHandler ("onClientGUIClick", resourceRoot, function () if source == GUIEditor.button[4] then gText = guiGetText (GUIEditor.edit[1]) x, y, z = getElementPosition(localPlayer) insText = table.insert(table2,gText,x,y,z) end end ) اذا تبي تضيفه بالقريد ليست استخدم guiGridListAddRow guiGridListSetItemText
Mr.R Posted July 6, 2015 Posted July 6, 2015 هذا هو اللوب , مثال على قريد ليست local table = { { "سبحان الله وبحمدهـ" }, } GridList = guiCreateGridList ( ... ) guiGridListAddColumn ( ... ) for k,v in ipairs ( table ) do -- نسوي لوب للجدول local Row = guiGridListAddRow ( GridList ) -- نضيف رو بالقريد ليست guiGridListSetItemText ( GridList, Row, 1, v[1], false, false, ) -- نجلب القيمه الاولى من الجدول ونحطها بالقريد ليست end -- for اند الـ تجلب قيم الجدول منه , وتقدر تسوي لوب لكل الاعبين وله استخدامات كثيرهـ
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now