needswzarh Posted May 9, 2016 Share Posted May 9, 2016 نبي نختار شيء من القريد ليست يظهر في الاديت بوكس لكن القريد ليست مايظهر فيها اشياء ارجو المساعده ذا الكود for i,GR in ipairs(Questions_AnswerS) do local row = guiGridListAddRow(System_grid) guiGridListSetItemText(System_grid,row,1,GR[1],false,false) guiGridListSetItemData(System_grid,row,1, GR[2]) guiGridListSetItemColor(System_grid,row,1,math.random(1,255),math.random(2,255),math.random(3,255)) end addEventHandler("onClientGUIClick",root, function () if source == close then if ( guiGetVisible(Wind) == false ) then end guiSetVisible ( Wind, false ) showCursor(false) guiSetInputEnabled(false) end end ) function click () if source == GUIEditor.edit[2] then guiSetText (GUIEditor.edit[2], "اختر السيريال من لوحة السيريالات" ) end local row,col = guiGridListGetSelectedItem(System_grid) if ( row and col and row = -1 and col = -1 ) then local Answers = guiGridListGetItemData ( System_grid, guiGridListGetSelectedItem ( System_grid ), 1 ) guiSetText (GUIEditor.edit[2], Answers ) end end addEventHandler("onClientGUIClick", root, click ) Link to comment
#|_oskar_|# Posted May 9, 2016 Share Posted May 9, 2016 استخدم guiGridListGetItemText عشان تجيب الكلام اللى بالقريد وتحطه بالايديت Link to comment
MR.GRAND Posted May 9, 2016 Share Posted May 9, 2016 استخدم guiGridListGetItemText عشان تجيب الكلام اللى بالقريد وتحطه بالايديت هو يبي يجيب الكلام المقابل للي بالقريد لست اي بمعنى ثاني هو نده جدول Table = { {'value1', 'value2} } وهو يبغى انه لوحدد على شي بالقريد لست اللي اسم الايتيم حقها هو value1 يبي لما يحدد يجي value2 بالقريد لست + ماشوف اخطاء بكودك ^ أطرح لنا الديبوق لو في خطأ + Link to comment
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