Jump to content

x[طلب | جريد ليست و ايديت]x


Recommended Posts

function selectAdmin ( ) 
    if ( guiGridListGetSelectedItem ( AdminsList ) ) then 
        local theAdminName = guiGridListGetSelectedItemText ( AdminsList ) 
        guiSetText(AdminNameEdit,theAdminName) 
    end  
end 
addEventHandler ( 'onClientDoubleGUIClick', root, selectAdmin ) 

ممكن تصحيح ؟

Link to comment
function selectAdmin ( ) 
    if ( guiGridListGetSelectedItem ( AdminsList ) ) then 
        local theAdminName = guiGridListGetSelectedItemText ( AdminsList ) 
        guiSetText(AdminNameEdit,theAdminName) 
    end  
end 
addEventHandler ( 'onClientDoubleGUIClick', root, selectAdmin ) 

ممكن تصحيح ؟

function selectAdmin ( ) 
    if ( guiGridListGetSelectedItem ( AdminsList ) ) then 
        local theAdminName = guiGridListGetItemText ( AdminsList ) 
        guiSetText(AdminNameEdit,theAdminName) 
    end  
end 
addEventHandler ( 'onClientDoubleGUIClick', root, selectAdmin ) 

جرب هيك

Link to comment
function selectAdmin() 
    if (guiGridListGetSelectedItem ( AdminsList ) ~= -1) then 
        local theAdminName = guiGridListGetItemText(AdminsList, guiGridListGetSelectedItem ( AdminsList ), 1) 
        if theAdminName and theAdminName ~= '' and theAdminName ~= ' ' then 
            guiSetText(AdminNameEdit,theAdminName) 
        end 
    end 
end 
addEventHandler ( 'onClientDoubleGUIClick', root, selectAdmin ) 

سطر 3 تأكد أن الكولمن هو رقم واحد اذا ماكان رقم واحد بدل الرقم

Link to comment

  addEventHandler( "onClientGUIClick", resourceRoot, function(   ) 
  
    if source == Grid then 
    
    local Sel_ = guiGridListGetSelectedItem ( source ) 
    
    if Sel_ and Sel_ ~= -1 and Sel_ ~= "" then  
  
    local Text = guiGridListGetItemText ( source, Sel_ , 1 ) -- بدل رقم 1  بالكولمن الي تبي تجيب التكست حقه 
  
    guiSetText ( YourEdit , Text ) 
  
        end 
    end 
end  
    ) 
     
Edited by Guest
Link to comment
addEventHandler("onClientGUIClick",resourceRoot, 
function ( ) 
if ( source == YourGridlist ) then  
if ( guiGridListGetSelectedItem ( YourGridlist ) ~= -1 ) then  
guiSetText ( YourEdit , tostring ( guiGridListGetItemText (YourGridlist,guiGridListGetSelectedItem(YourGridlist),1) ) ) 
else 
guiSetText ( YourEdit , "" ) 
end 
end 
end 
) 
     

بدل الـ

YourGridlist = متغير القريد ليست الي عندك

YourEdit = متغير الايديت الي عندك

Link to comment
addEventHandler("onClientGUIClick",resourceRoot, 
function ( ) 
if ( source == YourGridlist ) then  
if ( guiGridListGetSelectedItem ( YourGridlist ) ~= -1 ) then  
guiSetText ( YourEdit , tostring ( guiGridListGetItemText (YourGridlist,guiGridListGetSelectedItem(YourGridlist),1) ) ) 
else 
guiSetText ( YourEdit , "" ) 
end 
end 
end 
) 
     

بدل الـ

YourGridlist = متغير القريد ليست الي عندك

YourEdit = متغير الايديت الي عندك

مشكووور :)

Link to comment
addEventHandler("onClientGUIClick",resourceRoot, 
function ( ) 
if ( source == YourGridlist ) then  
if ( guiGridListGetSelectedItem ( YourGridlist ) ~= -1 ) then  
guiSetText ( YourEdit , tostring ( guiGridListGetItemText (YourGridlist,guiGridListGetSelectedItem(YourGridlist),1) ) ) 
else 
guiSetText ( YourEdit , "" ) 
end 
end 
end 
) 
     

بدل الـ

YourGridlist = متغير القريد ليست الي عندك

YourEdit = متغير الايديت الي عندك

مشكووور :)

العفو حياك الله :wink:

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...