xXProXxMta Posted July 12, 2015 Share Posted July 12, 2015 السلام عليكم شباب بعد اذنكم ابي كود بسيط عن تغيير صور لوحة التسجيل كل ثواني يعني لو اللوحه فيها صور تتغير كل ثواني ارجو الافادة Link to comment
; Mr.T76eM # Posted July 12, 2015 Share Posted July 12, 2015 يعني تبي صورة كل وقت معين تتغير لصورة ثانية ؟ Link to comment
#DRAGON!FIRE Posted July 12, 2015 Share Posted July 12, 2015 setTimer guiStaticImageLoadImage Link to comment
xXProXxMta Posted July 12, 2015 Author Share Posted July 12, 2015 (edited) يعني تبي صورة كل وقت معين تتغير لصورة ثانية ؟ يب ابي كل وقت صورة اللوحه تتغير يعني تفضل تعرضها مثلا 3 صور يتعرضو كل 10 ثواني صورة تتغير بعدين يرجعو تاني يفضلو 3صور يتعرضو ويتغيرو Edited July 12, 2015 by Guest Link to comment
xXProXxMta Posted July 12, 2015 Author Share Posted July 12, 2015 setTimer guiStaticImageLoadImage ابي الكود جاهز لو سمحت Link to comment
i S6O Posted July 12, 2015 Share Posted July 12, 2015 فيه مواضيع مطوره نفس طلبك , روح ابحث عنها + حنا نساعدك مانعطيك جاهزهـ Link to comment
xXProXxMta Posted July 13, 2015 Author Share Posted July 13, 2015 فيه مواضيع مطوره نفس طلبك , روح ابحث عنها + حنا نساعدك مانعطيك جاهزهـ طيب بس حتي الان ما فيه مساعدة بأي شي + بحثت وما لقيت اي موضوع ثاني Link to comment
Ac[T]ioN Posted July 13, 2015 Share Posted July 13, 2015 فيه مواضيع مطوره نفس طلبك , روح ابحث عنها + حنا نساعدك مانعطيك جاهزهـ طيب بس حتي الان ما فيه مساعدة بأي شي + بحثت وما لقيت اي موضوع ثاني guiStaticImageLoadImage تدري لو إنت فتحت فنكشن يعني جاهز setTimer هتلاقي الكود بوجهك علي طول في المثال بـ الـ وبعد كذا لاتقول مافي أحد ساعدك يعني اللي ججاب لك الفنكشنات ماساعدك ؟!! Link to comment
terreus Posted July 13, 2015 Share Posted July 13, 2015 متعرف للويكي ذذ كو مثال من ويكي local myImage = guiCreateStaticImage ( 0.45, 0.48, 0.2, 0.5, "myimage.png", true ) setTimer ( guiStaticImageLoadImage, 10000, 1, myImage, "otherimage.png" ) Link to comment
Ac[T]ioN Posted July 13, 2015 Share Posted July 13, 2015 متعرف للويكي ذذ كو مثال من ويكي local myImage = guiCreateStaticImage ( 0.45, 0.48, 0.2, 0.5, "myimage.png", true ) setTimer ( guiStaticImageLoadImage, 10000, 1, myImage, "otherimage.png" ) الكود واضح وضوح الشمس ويقولك محدش ساعدني Link to comment
terreus Posted July 13, 2015 Share Posted July 13, 2015 متعرف للويكي ذذ كو مثال من ويكي local myImage = guiCreateStaticImage ( 0.45, 0.48, 0.2, 0.5, "myimage.png", true ) setTimer ( guiStaticImageLoadImage, 10000, 1, myImage, "otherimage.png" ) الكود واضح وضوح الشمس ويقولك محدش ساعدني يخخخخخخخخخخ Link to comment
' A F . Posted July 13, 2015 Share Posted July 13, 2015 تفضل اذا تبي آكثر من صوره local Images = { { "Image.png" }, { "Pro.png" }, } addEventHandler ('onClientResourceStart',resourceRoot , function ( ) for i,v in ipairs ( Images ) do myImage = guiCreateStaticImage ( 0.45, 0.48, 0.2, 0.5, "myimage.png", true ) setTimer ( guiStaticImageLoadImage, 10000, 1, myImage, v[1] ) end end ) Link to comment
xXProXxMta Posted July 14, 2015 Author Share Posted July 14, 2015 متعرف للويكي ذذ كو مثال من ويكي local myImage = guiCreateStaticImage ( 0.45, 0.48, 0.2, 0.5, "myimage.png", true ) setTimer ( guiStaticImageLoadImage, 10000, 1, myImage, "otherimage.png" ) الكود واضح وضوح الشمس ويقولك محدش ساعدني انا بعرف بالفنكشنات انا قصدي يعني الصورتين يتبادلو مع بعض كل 5 ثواني الصورة تتغير للي قبلها ان شاء الله تكونو فهمتو Link to comment
terreus Posted July 14, 2015 Share Posted July 14, 2015 تفضل اذا تبي آكثر من صوره local Images = { { "Image.png" }, { "Pro.png" }, } addEventHandler ('onClientResourceStart',resourceRoot , function ( ) for i,v in ipairs ( Images ) do myImage = guiCreateStaticImage ( 0.45, 0.48, 0.2, 0.5, "myimage.png", true ) setTimer ( guiStaticImageLoadImage, 10000, 1, myImage, v[1] ) end end ) ذذ وش سوي لك + لا تقول فاهم كود تستهبل ذذ كود حق تغير :@ Link to comment
!#NssoR_) Posted July 14, 2015 Share Posted July 14, 2015 تفضل اذا تبي آكثر من صوره local Images = { { "Image.png" }, { "Pro.png" }, } addEventHandler ('onClientResourceStart',resourceRoot , function ( ) for i,v in ipairs ( Images ) do myImage = guiCreateStaticImage ( 0.45, 0.48, 0.2, 0.5, "myimage.png", true ) setTimer ( guiStaticImageLoadImage, 10000, 1, myImage, v[1] ) end end ) تصحيح الكود : local Images = { "images/NssoR.png" , "images/button.png" , "images/panel.png", } addEventHandler ('onClientResourceStart',resourceRoot , function ( ) myImage = guiCreateStaticImage ( 0.45, 0.48, 0.2, 0.5, "images/NssoR.png", true ) setTimer (function (myImage) guiStaticImageLoadImage( myImage, Images[math.random(#Images)] ) end,2000,0,myImage) 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