RdX Posted May 20, 2014 Share Posted May 20, 2014 السلام عليكم ورحمة الله وبركاته وشو الغلط هون ؟ local screenWidth, screenHeight = guiGetScreenSize ( ) -- Get the screen resolution (width and height) function createText ( ) local hi = helo dxDrawText(hi,600, screenHeight - 43, screenWidth, screenHeight, tocolor ( 255, 255, 255, 255 ), 1, "default-bold" ) end addEventHandler ( "onClientRender", root, createText ) local hi = helo dxDrawText(hi,600, screenHeight - 43, screenWidth, screenHeight, tocolor ( 255, 255, 255, 255 ), 1, "default-bold" ) local hi = hello < i think here problem and. dxDrawText(hi, << that shortcut please help me Link to comment
acount deleted Posted May 20, 2014 Share Posted May 20, 2014 local screenWidth, screenHeight = guiGetScreenSize ( ) -- Get the screen resolution (width and height) function createText ( ) local hi = helo dxDrawText("hi",600, screenHeight - 43, screenWidth, screenHeight, tocolor ( 255, 255, 255, 255 ), 1, "default-bold" ) end addEventHandler ( "onClientRender", root, createText ) Link to comment
AboShanab Posted May 20, 2014 Share Posted May 20, 2014 local screenWidth, screenHeight = guiGetScreenSize ( ) function createText ( ) local hi = "helo" dxDrawText(hi,600, screenHeight - 43, screenWidth, screenHeight, tocolor ( 255, 255, 255, 255 ), 1, "default-bold" ) end addEventHandler ( "onClientRender", root, createText ) Link to comment
RdX Posted May 20, 2014 Author Share Posted May 20, 2014 طيب كيف اخلي اللوحة تفتح و تقفل بزر ؟ Link to comment
</Mr.Tn6eL> Posted May 20, 2014 Share Posted May 20, 2014 مثال على فتح الللوحة بال dx local screenWidth, screenHeight = guiGetScreenSize ( ) Visible = false function createText ( ) if Visible == true then local hi = "helo" dxDrawText(hi,600, screenHeight - 43, screenWidth, screenHeight, tocolor ( 255, 255, 255, 255 ), 1, "default-bold" ) end end addEventHandler ( "onClientRender", root, createText ) bindKey("f1", "down", function( ) Visible = not Visible end ) Link to comment
#DRAGON!FIRE Posted May 21, 2014 Share Posted May 21, 2014 مثال على فتح الللوحة بال dx local screenWidth, screenHeight = guiGetScreenSize ( ) Visible = false function createText ( ) if Visible == true then local hi = "helo" dxDrawText(hi,600, screenHeight - 43, screenWidth, screenHeight, tocolor ( 255, 255, 255, 255 ), 1, "default-bold" ) end end addEventHandler ( "onClientRender", root, createText ) bindKey("f1", "down", function( ) Visible = not Visible end ) مثالكـ خأطء ي اخ تقصد لوحة يوم يضغط ع زر ؟ ولا بيند Link to comment
3NAD Posted May 21, 2014 Share Posted May 21, 2014 مثال على فتح الللوحة بال dx local screenWidth, screenHeight = guiGetScreenSize ( ) Visible = false function createText ( ) if Visible == true then local hi = "helo" dxDrawText(hi,600, screenHeight - 43, screenWidth, screenHeight, tocolor ( 255, 255, 255, 255 ), 1, "default-bold" ) end end addEventHandler ( "onClientRender", root, createText ) bindKey("f1", "down", function( ) Visible = not Visible end ) مثالكـ خأطء وين الخطأ ؟ Link to comment
#DRAGON!FIRE Posted May 21, 2014 Share Posted May 21, 2014 مثال على فتح الللوحة بال dx local screenWidth, screenHeight = guiGetScreenSize ( ) Visible = false function createText ( ) if Visible == true then local hi = "helo" dxDrawText(hi,600, screenHeight - 43, screenWidth, screenHeight, tocolor ( 255, 255, 255, 255 ), 1, "default-bold" ) end end addEventHandler ( "onClientRender", root, createText ) bindKey("f1", "down", function( ) Visible = not Visible end ) مثالكـ خأطء وين الخطأ ؟ removeEventHandler الخطأ مو الكود ما يشتغل .. بس الافضل يستخدم onClientClick : بعدين صاحب الطلب قصده ع الاغلب زر دي اكس ولو كذا المفروض يستخدم Link to comment
3NAD Posted May 22, 2014 Share Posted May 22, 2014 ^ انت اتهمت الرجال أن كوده خطأ ما قلت افضل ما افضل -_-" Link to comment
Rm-Dj Posted May 22, 2014 Share Posted May 22, 2014 ^ انت اتهمت الرجال أن كوده خطأ ما قلت افضل ما افضل -_-" +11111 Link to comment
#DRAGON!FIRE Posted May 22, 2014 Share Posted May 22, 2014 ^ انت اتهمت الرجال أن كوده خطأ ما قلت افضل ما افضل -_-" صحيح كلامكـ كان المفروض اقوله الافضل استخدم ريموف بس يوم يكون الكود تركيبته او الاستخدام فيه خطاء تقول انه كود خطأ بـ كل جزء من الثانية visble لانه بالطريقة حقه جالس يتحقق من المتغير Link to comment
</Mr.Tn6eL> Posted May 22, 2014 Share Posted May 22, 2014 اصلا انا ساكت عشان كودي صح واذ قلت له صح راح ينقلب الموضوع والسكوت من ذهب Link to comment
#DRAGON!FIRE Posted May 23, 2014 Share Posted May 23, 2014 اصلا انا ساكت عشان كودي صح واذ قلت له صح راح ينقلب الموضوع والسكوت من ذهب كودكـ صحيح .. بس الطريقة حقه غلط انا كذا كنت اقصد .. بس ما وضحت كلامي ذذ 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