#kAsR Posted July 3, 2016 Share Posted July 3, 2016 سلام عليكم ورحمة الله وبركاته شباب انا ابغى مثلأ Hello World تطلع لي من اول شيء لـ اخر شيء يعني H e l l o W o r l d وكذا ماعليش كثرت مواضيعي Link to comment
#kAsR Posted July 3, 2016 Author Share Posted July 3, 2016 اوسكار انا بدي مثل هيك شوف كيف يطلع الكلام Link to comment
` Allawi Posted July 3, 2016 Share Posted July 3, 2016 :استخدم الوظيفة التالية setTimer مع المتغيرات Link to comment
#kAsR Posted July 3, 2016 Author Share Posted July 3, 2016 اكيد راح استخدمها بس ماعندي طريقة عشان اسويها بالمتغيرات Link to comment
|Mr|-Talal07-| Posted July 4, 2016 Share Posted July 4, 2016 local text = "Hello World" local num = 1 local all = string.len(text) local label = "" addEventHandler("onClientResourceStart",resourceRoot, function () time = setTimer(function () if num > all then killTimer(time) else label = string.sub(text,1,num) num = num + 1 end end,250,0) end ) addEventHandler("onClientRender",root, function () local x,y = guiGetScreenSize() dxDrawText(label,0,0,x,y,tocolor(255,255,255,255),2,"default-bold","center","center") end ) مجرب و شغال لكن اذا عندك خبره تقدر تعدل عليه و تضيفه في قيم في مود اي شي Link to comment
#kAsR Posted July 4, 2016 Author Share Posted July 4, 2016 local text = "Hello World" local num = 1 local all = string.len(text) local label = "" addEventHandler("onClientResourceStart",resourceRoot, function () time = setTimer(function () if num > all then killTimer(time) else label = string.sub(text,1,num) num = num + 1 end end,250,0) end ) addEventHandler("onClientRender",root, function () local x,y = guiGetScreenSize() dxDrawText(label,0,0,x,y,tocolor(255,255,255,255),2,"default-bold","center","center") 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