Jump to content

~#[ طلب كؤود بسيط ]#~


Recommended Posts

# آلسسلأم عليكم ورحمهةة آلله وبركآتهةة

آخبآركم شباب عسآكم طيبين #

آليوم بغيت كودد ضروري وآلله :)

#EditBox جآ بالـ Row لاهنتم آبي كود لآحد حدد ع آلـ :)

يآليت آلي يقدر يسآعدني يسآعدني ولآ يطنش :lol:

#< آلسلأم خير آلختام >#

وآلسسلأم عليكم ورحمهةة آلله وبركآتهةة # :fadein:

Link to comment
gridlist = guiCreateGridList(...) 
edit = guiCreateEdit(...) 
  
addEventHandler("onClientGUIClick",gridlist, 
    function () 
        local sel = guiGridListGetSelectedItem(gridlist) 
        if sel ~= -1 then 
            local text = guiGridListGetItemText(gridlist,sel,0) 
            guiSetText(edit,text) 
        else 
            guiSetText(edit,"") 
        end 
    end 
,false) 
  

Edited by Guest
Link to comment
gridlist = guiCreateGridList(...) 
edit = guiCreateEdit(...) 
  
addEventHandler("onClientGUIClick",gridlist, 
    function () 
        if guiGridListGetSelectedItem(gridlist) ~= -1 then 
            local text = guiGridListGetItemText(gridlist,sel,0) 
            guiSetText(edit,text) 
        else 
            guiSetText(edit,"") 
        end 
    end 
,false) 
  

------

--

آخوي طلال ..

كودكك مآضبط :\

آسم آلمود = Clon2

آلديبق ( debugscript ) =

WARNING: Clon2/Client2.lua:10: Bad argument @ 'guiSetText' [Expected string at argument 2, got boolean]

WARNING: Clon2/Client2.lua:9: Bad argument @ 'guiGridListitemText' [Expected number at argument 2, got nil]

--------------------- ملف آلكلينت 2

gridlist = GUIEditor.gridlist[1]

edit = GUIEditor.edit[1]

addEventHandler("onClientGUIClick",gridlist,

function ()

if guiGridListGetSelectedItem(gridlist) ~= -1 then

local text = guiGridListGetItemText(gridlist,sel,0)

guiSetText(edit,text)

else

guiSetText(edit,"")

end

end

,false)

---------------------

addEventHandler ("onClientGUIClick", getRootElement(),

function()

if ( source == GUIEditor.button[1] ) then

local text = guiGetText ( GUIEditor.edit[1] )

setClipboard( text )

end

end

)

Link to comment
gridlist = guiCreateGridList(...) 
edit = guiCreateEdit(...) 
  
addEventHandler("onClientGUIClick",gridlist, 
    function () 
        if guiGridListGetSelectedItem(gridlist) ~= -1 then 
            local text = guiGridListGetItemText(gridlist,sel,0) 
            guiSetText(edit,text) 
        else 
            guiSetText(edit,"") 
        end 
    end 
,false) 
  

sel غير معرف

Link to comment
gridlist = guiCreateGridList(...) 
edit = guiCreateEdit(...) 
  
addEventHandler("onClientGUIClick",gridlist, 
    function () 
        if guiGridListGetSelectedItem(gridlist) ~= -1 then 
            local text = guiGridListGetItemText(gridlist,sel,0) 
            guiSetText(edit,text) 
        else 
            guiSetText(edit,"") 
        end 
    end 
,false) 
  

!!!! سطر 7

sel مو معرفه

مع الاند false وممكن تقولي ليه حطيت

sell ورقم 0 جنب :roll:

Link to comment
gridlist = guiCreateGridList(...) 
edit = guiCreateEdit(...) 
  
addEventHandler("onClientGUIClick",gridlist, 
    function () 
        local sel = guiGridListGetSelectedItem(gridlist) 
        if sel ~= -1 then 
            local text = guiGridListGetItemText(gridlist,sel,0) 
            guiSetText(edit,text) 
        else 
            guiSetText(edit,"") 
        end 
    end 
,false) 
  

جرب كوده عدله لك

Link to comment
gridlist = guiCreateGridList(...) 
edit = guiCreateEdit(...) 
  
addEventHandler("onClientGUIClick",gridlist, 
    function () 
        local sel = guiGridListGetSelectedItem(gridlist) 
        if sel ~= -1 then 
            local text = guiGridListGetItemText(gridlist,sel,0) 
            guiSetText(edit,text) 
        else 
            guiSetText(edit,"") 
        end 
    end 
,false) 
جرب كوده عدله لك 
  

-------------

مآضبط آلكود =(

:(

Edited by Guest
Link to comment

سويت للاخ جدول يضيف فيها الكلمات الي يبي

وبالنسبة للكود حق طلال فيه غلط بسيط

وتم تعديلة ..

هذا الشكل النهائي للكود

addEventHandler("onClientGUIClick", resourceRoot, function()  
    if source == GUIEditor.gridlist[1] then  
    if guiGridListGetSelectedItem (GUIEditor.gridlist[1]) ~= -1 then 
        local text = guiGridListGetItemText(GUIEditor.gridlist[1],guiGridListGetSelectedItem(GUIEditor.gridlist[1]),1) 
        guiSetText(GUIEditor.edit[1],text) 
            else 
        guiSetText(GUIEditor.edit[1],"") 
    end 
    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...