#StrOnG_,) Posted June 24, 2015 Share Posted June 24, 2015 السلام عليكم ورحمه الله وبركآته كيفكم ؟؟ .. أان شاء الله بخير . ابي حل لمشكلة القريد ليست , طبعآ بالموضوع الي قبل , كآن الخطأا أني ما ضفت كولمن آلحين سويت واحد جديد وسويت كولمن , بس ما تظهر السورة فيه أكواد أللوحة GUIEditor = { gridlist = {} } addEventHandler("onClientResourceStart", resourceRoot, function() wnd = guiCreateWindow(364, 204, 295, 393, "x[ تجربةة ]x", false) guiWindowSetSizable(wnd, false) GUIEditor.gridlist[1] = guiCreateGridList(9, 15, 276, 321, false, wnd) guiGridListAddColumn(GUIEditor.gridlist[1], "List", 0.9) Start = guiCreateButton(60, 346, 75, 37, "x[ تشغيل ]x", false, wnd) guiSetProperty(Start, "NormalTextColour", "FFAAAAAA") Stop = guiCreateButton(173, 346, 75, 37, "x[ أيقاف ]x", false, wnd) guiSetProperty(Stop, "NormalTextColour", "FFAAAAAA") guiSetVisible ( wnd ,false ) end ) bindKey("F3", "down", function () guiSetVisible(wnd, not guiGetVisible (wnd)) showCursor(guiGetVisible(wnd)) end ) --------------------------------- List = { {" الفاتحة ","http://server11.mp3quran.net/sds/001.mp3"}, } for _,v in ipairs ( List ) do local row = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText ( GUIEditor.gridlist[1], row, 1, tostring ( v [ 1 ] ), false, false) guiGridListSetItemData ( GUIEditor.gridlist[1], row, 1, tostring ( v [ 2 ] )) guiGridListSetItemColor(GUIEditor.gridlist[1],row,1,math.random(0,255),math.random(0,255),math.random(0,255)) end addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == Start ) then if ( isElement ( sound ) ) then destroyElement ( sound ) end if ( guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) ~= -1 ) then local Link = guiGridListGetItemData ( GUIEditor.gridlist[1], guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ), 1 ) sound = playSound ( tostring ( Link ), true ) end end end ) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == Stop ) then if ( isElement ( sound ) ) then destroyElement ( sound ) end end end ) Link to comment
TAPL Posted June 24, 2015 Share Posted June 24, 2015 GUIEditor = { gridlist = {} } wnd = guiCreateWindow(364, 204, 295, 393, "x[ تجربةة ]x", false) guiWindowSetSizable(wnd, false) GUIEditor.gridlist[1] = guiCreateGridList(9, 15, 276, 321, false, wnd) guiGridListAddColumn(GUIEditor.gridlist[1], "List", 0.9) Start = guiCreateButton(60, 346, 75, 37, "x[ تشغيل ]x", false, wnd) guiSetProperty(Start, "NormalTextColour", "FFAAAAAA") Stop = guiCreateButton(173, 346, 75, 37, "x[ أيقاف ]x", false, wnd) guiSetProperty(Stop, "NormalTextColour", "FFAAAAAA") guiSetVisible ( wnd ,false ) bindKey("F3", "down", function () guiSetVisible(wnd, not guiGetVisible (wnd)) showCursor(guiGetVisible(wnd)) end ) --------------------------------- List = { {" الفاتحة ","http://server11.mp3quran.net/sds/001.mp3"}, } for _,v in ipairs ( List ) do local row = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText ( GUIEditor.gridlist[1], row, 1, tostring ( v [ 1 ] ), false, false) guiGridListSetItemData ( GUIEditor.gridlist[1], row, 1, tostring ( v [ 2 ] )) guiGridListSetItemColor(GUIEditor.gridlist[1],row,1,math.random(0,255),math.random(0,255),math.random(0,255)) end addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == Start ) then if ( isElement ( sound ) ) then destroyElement ( sound ) end if ( guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) ~= -1 ) then local Link = guiGridListGetItemData ( GUIEditor.gridlist[1], guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ), 1 ) sound = playSound ( tostring ( Link ), true ) end end end ) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == Stop ) then if ( isElement ( sound ) ) then destroyElement ( sound ) end end end ) Link to comment
#StrOnG_,) Posted June 24, 2015 Author Share Posted June 24, 2015 GUIEditor = { gridlist = {} } wnd = guiCreateWindow(364, 204, 295, 393, "x[ تجربةة ]x", false) guiWindowSetSizable(wnd, false) GUIEditor.gridlist[1] = guiCreateGridList(9, 15, 276, 321, false, wnd) guiGridListAddColumn(GUIEditor.gridlist[1], "List", 0.9) Start = guiCreateButton(60, 346, 75, 37, "x[ تشغيل ]x", false, wnd) guiSetProperty(Start, "NormalTextColour", "FFAAAAAA") Stop = guiCreateButton(173, 346, 75, 37, "x[ أيقاف ]x", false, wnd) guiSetProperty(Stop, "NormalTextColour", "FFAAAAAA") guiSetVisible ( wnd ,false ) bindKey("F3", "down", function () guiSetVisible(wnd, not guiGetVisible (wnd)) showCursor(guiGetVisible(wnd)) end ) --------------------------------- List = { {" الفاتحة ","http://server11.mp3quran.net/sds/001.mp3"}, } for _,v in ipairs ( List ) do local row = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText ( GUIEditor.gridlist[1], row, 1, tostring ( v [ 1 ] ), false, false) guiGridListSetItemData ( GUIEditor.gridlist[1], row, 1, tostring ( v [ 2 ] )) guiGridListSetItemColor(GUIEditor.gridlist[1],row,1,math.random(0,255),math.random(0,255),math.random(0,255)) end addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == Start ) then if ( isElement ( sound ) ) then destroyElement ( sound ) end if ( guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) ~= -1 ) then local Link = guiGridListGetItemData ( GUIEditor.gridlist[1], guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ), 1 ) sound = playSound ( tostring ( Link ), true ) end end end ) addEventHandler ( "onClientGUIClick", resourceRoot, function ( ) if ( source == Stop ) then if ( isElement ( sound ) ) then destroyElement ( sound ) end end end ) تمامم آشتغل بس وش سويت وآشتغل ؟ , ممكن تقولي ؟ , عشآن لو صآرت معي , آحلهآ بنفسي Link to comment
#StrOnG_,) Posted June 24, 2015 Author Share Posted June 24, 2015 خلاص عرفت , يعطيك العآفيةة , تمت الإفادة Link to comment
' A F . Posted June 25, 2015 Share Posted June 25, 2015 حذف addEventHandler("onClientResourceStart",resourceRoot, function ( ) 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