Jump to content

وشو الغلط


Recommended Posts

السلام عليكم ورحمة الله وبركاته

وشو الغلط هون ؟

  
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
      
    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
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

مثال على فتح الللوحة بال 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
مثال على فتح الللوحة بال 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
مثال على فتح الللوحة بال 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
مثال على فتح الللوحة بال 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
^ انت اتهمت الرجال أن كوده خطأ ما قلت افضل ما افضل -_-"

صحيح كلامكـ كان المفروض اقوله الافضل استخدم ريموف

بس يوم يكون الكود تركيبته او الاستخدام فيه خطاء تقول انه كود خطأ

بـ كل جزء من الثانية visble لانه بالطريقة حقه جالس يتحقق من المتغير

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...