Adham Posted June 10, 2016 Share Posted June 10, 2016 سلام عليكم انا ابي فكشنات. اذا حددت علي لاعب في القريد لست , وضعط علي button اسمهه remove يتحذف اسمه في القريد لستمب كل الاسامي ! الاسم المحدهه فقط وبعدين فكشن تاني - ابي فكشن اذا حدد اسم وضعط علي زر اسمه Set الوحه مقفوله عادي لما يحدد اسن الاعب ويضعط علي الزر يتفعل له الوحه من حرف ه اعتقد bindKey Link to comment
' A F . Posted June 10, 2016 Share Posted June 10, 2016 الطلب الاول guiGridListGetSelectedItem guiGridListRemoveRow الطلب الثاني guiGridListGetSelectedItem guiGridListGetItemText getPlayerFromName setElementData getElementData bindKey Link to comment
Adham Posted June 10, 2016 Author Share Posted June 10, 2016 addEventHandler("onClientGUIClick",root, function () if ( source == remove1 ) then local sel = guiGridListGetSelectedItem(GUIEditor.gridlist[1]) local player = getPlayerFromName (sel) local remove1 = guiGridListRemoveRow ( GUIEditor.gridlist[1], player ) end end ) شو الخطا هنا؟ + انا ابي لو حدد اسمه وضعط علي ال button يتحذف اسم التحدد مب كل الاسامي البقريد لست Link to comment
' A F . Posted June 10, 2016 Share Posted June 10, 2016 تفضل addEventHandler("onClientGUIClick",root, function () if ( source == remove1 ) then if ( guiGridListGetSelectedItem(GUIEditor.gridlist[1]) ~= -1 ) then guiGridListRemoveRow ( GUIEditor.gridlist[1], guiGridListGetSelectedItem(GUIEditor.gridlist[1]) ) end end end ) Link to comment
Adham Posted June 10, 2016 Author Share Posted June 10, 2016 معلش تعتبك معي + دا ما عرفت اسويه يمكن لغبط فيه شوي addEventHandler("onClientGUIClick",root, function ( openWin ) if ( source == remove1 ) then if ( guiGridListGetSelectedItem(GUIEditor.gridlist[1]) ~= -1 ) local PlayerName = getPlayerFromName (localPlayer) setElementData (localPlayer,'open',false) getElementData(source,"open") bindKey("F10", "down", OpenWin) end end end ) Link to comment
' A F . Posted June 10, 2016 Share Posted June 10, 2016 لا مو مشكلة + أطرح اكواد اللوحة .. Link to comment
Adham Posted June 10, 2016 Author Share Posted June 10, 2016 انا لسا ما سويت الوحه بس الكود ذا صحيح؟ Link to comment
' A F . Posted June 10, 2016 Share Posted June 10, 2016 لأ , جرب ذا ماجربته addEventHandler("onClientGUIClick",root,function ( ) if ( source == remove1 ) then if ( guiGridListGetSelectedItem(GUIEditor.gridlist[1]) ~= -1 ) then local PlayerName = getPlayerFromName (guiGridListGetItemText(GUIEditor.gridlist[1],guiGridListGetSelectedItem(GUIEditor.gridlist[1]),1)) if ( PlayerName ) then if ( getElementData ( PlayerName , "open" ) == true ) then setElementData (PlayerName,'open',false) else setElementData (PlayerName,'open',true) end end end end end ) bindKey("F10","down", function ( ) local Data = getElementData ( localPlayer , "open" ) if ( Data == true ) then -- Code Here end end) Link to comment
Adham Posted June 10, 2016 Author Share Posted June 10, 2016 بجربه بكره وبقول لك لو ما اشتغل بقلك تشكر علي المساعده Link to comment
' A F . Posted June 10, 2016 Share Posted June 10, 2016 اوك خذ رآحتك , العفو حيأك الله Link to comment
Adham Posted June 10, 2016 Author Share Posted June 10, 2016 كذا؟ addEventHandler("onClientGUIClick",root, function () if ( source == button) then local item = guiComboBoxGetSelected(comboBox) guiGridListSetItemText (grid,row,Column2,item,false,false) end end ) Link to comment
Mr.CoR Posted June 10, 2016 Share Posted June 10, 2016 كذا؟ addEventHandler("onClientGUIClick",root, function () if ( source == button) then local item = guiComboBoxGetSelected(comboBox) guiGridListSetItemText (grid,row,Column2,item,false,false) end end ) اعتقد ذا الكود مكانه مو هنا مكانه بموضوع ثاني كنت اساعدك فيه انا و ذابيست " شاطح " ء 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