Jump to content

مشكله


Recommended Posts

  
local component = { "weapon", "ammo", "health", "clock", "money", "breath", "armour", "wanted" } 
  
function OpenWin() 
    for _, component in ipairs( component ) do 
    setPlayerHudComponentVisible( component, false ) 
    else 
    setPlayerHudComponentVisible( component, true ) 
  end 
  end 
) 
bindKey("M","down", OpenWin) 
  

وش الخطاء الدي بوق يقول الخطا ب السطر 7

Link to comment
  
local component = { "weapon", "ammo", "health", "clock", "money", "breath", "armour", "wanted" } 
  
function OpenWin() 
    for _, component in ipairs( component ) do 
    setPlayerHudComponentVisible( component, false ) 
    else 
    setPlayerHudComponentVisible( component, true ) 
  end 
  end 
) 
bindKey("M","down", OpenWin) 
  

وش الخطاء الدي بوق يقول الخطا ب السطر 7

ما ينفع تحط else بدون وجود if

Link to comment
  
local component = { "weapon", "ammo", "health", "clock", "money", "breath", "armour", "wanted" } 
  
function OpenWin() 
    for _, component in ipairs( component ) do 
    setPlayerHudComponentVisible( component, false ) 
    else 
    setPlayerHudComponentVisible( component, true ) 
  end 
  end 
) 
bindKey("M","down", OpenWin) 
  

وش الخطاء الدي بوق يقول الخطا ب السطر 7

ايه هي فكرة الكود ؟

في قوس مالوش لازمة اصلاً في الآخر

Link to comment
  
local component = { "weapon", "ammo", "health", "clock", "money", "breath", "armour", "wanted" } 
  
function OpenWin() 
    for _, component in ipairs( component ) do 
    setPlayerHudComponentVisible( component, false ) 
    else 
    setPlayerHudComponentVisible( component, true ) 
  end 
  end 
) 
bindKey("M","down", OpenWin) 
  

وش الخطاء الدي بوق يقول الخطا ب السطر 7

ايه هي فكرة الكود ؟

هو يبي يسوي حسب الذي فهمته

عند الضغط على حرف m

يخفي الهيد وان ضغط مرة اخرى يظهره

Link to comment

تفضل

  
local component = { "weapon", "ammo", "health", "clock", "money", "breath", "armour", "wanted" } 
  
function OpenWin() 
    for _, component in ipairs( component ) do 
    if isPlayerHudComponentVisible( component ) then 
    setPlayerHudComponentVisible( component, false ) 
    else 
    setPlayerHudComponentVisible( component, true ) 
        end 
    end 
  end 
bindKey("M","down", OpenWin) 
  

Link to comment
تفضل
  
local component = { "weapon", "ammo", "health", "clock", "money", "breath", "armour", "wanted" } 
  
function OpenWin() 
    for _, component in ipairs( component ) do 
    if isPlayerHudComponentVisible( component ) then 
    setPlayerHudComponentVisible( component, false ) 
    else 
    setPlayerHudComponentVisible( component, true ) 
        end 
    end 
  end 
bindKey("M","down", OpenWin) 
  

تتسلمون كلكم + م انبهت ل if ض1

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