#StrOnG_,) Posted June 22, 2015 Share Posted June 22, 2015 السلام عليكم ورحمه آلله وبركاته كيفكم شبآب ؟ آنا سويت لوحة وفيهآ قريد ليست وزرين آلاول تشغيل والثآني آيقاف المشكلة مآ تظهر سورة الفآتحة بالقريد ليست اكوآد اللوحة GUIEditor = { gridlist = {} } addEventHandler("onClientResourceStart", resourceRoot, function() wnd = guiCreateWindow(181, 150, 381, 325, "=[ تجربةة , ]= ", false) guiWindowSetSizable(wnd, false) GUIEditor.gridlist[1] = guiCreateGridList(9, 18, 362, 244, false, wnd) Start = guiCreateButton(54, 276, 62, 39, "Start", false, wnd) guiSetProperty(Start, "NormalTextColour", "FFAAAAAA") Stop = guiCreateButton(225, 276, 62, 39, "Stop", false, wnd) guiSetProperty(Stop, "NormalTextColour", "FFAAAAAA") guiSetVisible ( wnd ,false ) end ) ---------------- bindKey("F6", "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
terreus Posted June 22, 2015 Share Posted June 22, 2015 GUIEditor = { gridlist = {} } addEventHandler("onClientResourceStart", resourceRoot, function() wnd = guiCreateWindow(181, 150, 381, 325, "=[ تجربةة , ]= ", false) guiWindowSetSizable(wnd, false) GUIEditor.gridlist[1] = guiCreateGridList(9, 18, 362, 244, false, wnd) guiGridListAddColumn(GUIEditor.gridlist[1], "List", 0.2) guiGridListAddColumn(GUIEditor.gridlist[1], "", 0.7) Start = guiCreateButton(54, 276, 62, 39, "Start", false, wnd) guiSetProperty(Start, "NormalTextColour", "FFAAAAAA") Stop = guiCreateButton(225, 276, 62, 39, "Stop", false, wnd) guiSetProperty(Stop, "NormalTextColour", "FFAAAAAA") guiSetVisible ( wnd ,false ) end ) ---------------- bindKey("F6", "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
i S6O Posted June 22, 2015 Share Posted June 22, 2015 (edited) نسيت تسوي كولمن جربته شغال عندي .. ! GUIEditor = { gridlist = {}, } wnd = guiCreateWindow(181, 150, 381, 325, "=[ تجربةة , ]= ", false) GUIEditor.gridlist[1] = guiCreateGridList(9, 18, 362, 244, false, wnd) guiGridListAddColumn(GUIEditor.gridlist[1], "لسته", 0.9) Start = guiCreateButton(54, 276, 62, 39, "Start", false, wnd) Stop = guiCreateButton(225, 276, 62, 39, "Stop", false, wnd) guiSetVisible ( wnd ,false ) ---------------- bindKey("F6", "down", function () guiSetVisible(wnd, not guiGetVisible (wnd)) showCursor(guiGetVisible(wnd)) end ) --------------------------------- list = { {" الفاتحة ","http://server11.mp3quran.net/sds/001.mp3"}, } for i,v in ipairs ( list ) do 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 ) Edited June 22, 2015 by Guest Link to comment
#StrOnG_,) Posted June 22, 2015 Author Share Posted June 22, 2015 GUIEditor = { gridlist = {} } addEventHandler("onClientResourceStart", resourceRoot, function() wnd = guiCreateWindow(181, 150, 381, 325, "=[ تجربةة , ]= ", false) guiWindowSetSizable(wnd, false) GUIEditor.gridlist[1] = guiCreateGridList(9, 18, 362, 244, false, wnd) guiGridListAddColumn(GUIEditor.gridlist[1], "List", 0.2) guiGridListAddColumn(GUIEditor.gridlist[1], "", 0.7) Start = guiCreateButton(54, 276, 62, 39, "Start", false, wnd) guiSetProperty(Start, "NormalTextColour", "FFAAAAAA") Stop = guiCreateButton(225, 276, 62, 39, "Stop", false, wnd) guiSetProperty(Stop, "NormalTextColour", "FFAAAAAA") guiSetVisible ( wnd ,false ) end ) ---------------- bindKey("F6", "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 22, 2015 Author Share Posted June 22, 2015 نسيت تسوي كولمن GUIEditor = { gridlist = {}, } wnd = guiCreateWindow(181, 150, 381, 325, "=[ تجربةة , ]= ", false) GUIEditor.gridlist[1] = guiCreateGridList(9, 18, 362, 244, false, wnd) guiGridListAddColumn(GUIEditor.gridlist[1], "لسته", 0.9) Start = guiCreateButton(54, 276, 62, 39, "Start", false, wnd) Stop = guiCreateButton(225, 276, 62, 39, "Stop", false, wnd) guiSetVisible ( wnd ,false ) ---------------- bindKey("F6", "down", function () guiSetVisible(wnd, not guiGetVisible (wnd)) showCursor(guiGetVisible(wnd)) end ) --------------------------------- list = { {" الفاتحة ","http://server11.mp3quran.net/sds/001.mp3"}, } for i,v in ipairs ( list ) do 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
terreus Posted June 22, 2015 Share Posted June 22, 2015 GUIEditor = { gridlist = {} } addEventHandler("onClientResourceStart", resourceRoot, function() wnd = guiCreateWindow(181, 150, 381, 325, "=[ تجربةة , ]= ", false) guiWindowSetSizable(wnd, false) GUIEditor.gridlist[1] = guiCreateGridList(9, 18, 362, 244, false, wnd) guiGridListAddColumn(GUIEditor.gridlist[1], "List", 0.2) guiGridListAddColumn(GUIEditor.gridlist[1], "", 0.7) Start = guiCreateButton(54, 276, 62, 39, "Start", false, wnd) guiSetProperty(Start, "NormalTextColour", "FFAAAAAA") Stop = guiCreateButton(225, 276, 62, 39, "Stop", false, wnd) guiSetProperty(Stop, "NormalTextColour", "FFAAAAAA") guiSetVisible ( wnd ,false ) end ) ---------------- bindKey("F6", "down", function () guiSetVisible(wnd, not guiGetVisible (wnd)) showCursor(guiGetVisible(wnd)) end ) --------------------------------- list = { {" الفاتحة ","http://server11.mp3quran.net/sds/001.mp3"}, } for i,v in ipairs(list) do row = guiGridListAddRow( GUIEditor.gridlist[1]) guiGridListSetItemText( GUIEditor.gridlist[1],row,1,''..i..'-',false,false) guiGridListSetItemText( GUIEditor.gridlist[1],row,2,"-"..v,false,false) guiGridListSetItemData( GUIEditor.gridlist[1],row,1,v[2]) guiGridListSetItemColor( GUIEditor.gridlist[1],row,2,math.random(0,255),math.random(0,255),math.random(0,155)) guiGridListSetItemColor( GUIEditor.gridlist[1],row,1,math.random(0,255),math.random(0,255),math.random(0,155)) 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 22, 2015 Author Share Posted June 22, 2015 يعطيكم العآفيةة ي عيآل مآ قصرتوو , Link to comment
terreus Posted June 22, 2015 Share Posted June 22, 2015 يعطيكم العآفيةة ي عيآل مآ قصرتوو , العفو , يسلمو في الخدمةة Link to comment
i S6O Posted June 22, 2015 Share Posted June 22, 2015 في الخدمه .. صيام مقبول وافطائر شهي 6:59 ساعه عندي شوي وياذن عندنا Link to comment
#StrOnG_,) Posted June 22, 2015 Author Share Posted June 22, 2015 يعطيكم العآفيةة ي عيآل مآ قصرتوو , العفو , يسلمو في الخدمةة في الخدمه .. صيام مقبول وافطائر شهي6:59 ساعه عندي شوي وياذن عندنا آمين ويآك .. يب آنا زيك , :] Link to comment
Mr.R Posted June 23, 2015 Share Posted June 23, 2015 استعمل stopSound عشان توقف الصوت فنكشن افضل ^ 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