Jump to content

طلب فكشنات


Recommended Posts

سلام عليكم انا ابي فكشنات.

اذا حددت علي لاعب في القريد لست ,

وضعط علي button

اسمهه remove

يتحذف اسمه في القريد لستمب كل الاسامي !

الاسم المحدهه فقط

وبعدين فكشن تاني -

ابي فكشن اذا حدد اسم وضعط علي زر

اسمه Set

الوحه مقفوله عادي لما يحدد اسن الاعب ويضعط علي الزر يتفعل له الوحه من حرف ه

اعتقد

bindKey 
Link to comment

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

تفضل

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

معلش تعتبك معي + دا ما عرفت اسويه

يمكن لغبط فيه شوي

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

لأ ,

جرب ذا ماجربته

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

كذا؟

addEventHandler("onClientGUIClick",root, 
    function () 
        if ( source == button) then 
        local item = guiComboBoxGetSelected(comboBox) 
        guiGridListSetItemText (grid,row,Column2,item,false,false) 
      end 
    end 
) 
  
Link to comment
كذا؟

addEventHandler("onClientGUIClick",root, 
    function () 
        if ( source == button) then 
        local item = guiComboBoxGetSelected(comboBox) 
        guiGridListSetItemText (grid,row,Column2,item,false,false) 
      end 
    end 
) 
  

اعتقد ذا الكود مكانه مو هنا

مكانه بموضوع ثاني كنت اساعدك فيه انا و ذابيست " شاطح " ء

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...