Jump to content

مساعدة


FAHD+18

Recommended Posts

Posted

سوال انا الان اسوي مثلا لوحة قوانين واسوي بها combobox

تمام عايز لما اضغط عليها يجيلي اختيارات ولما اضغط علي اختيار يجيلي لوحه

شكرا 

Posted
addEventHandler("onClientGUIClick",root,function() 
if  guiCheckBoxGetSelected(GUIEditor.checkbox[1]) == true then 
guiSetVisible( GUIEditor.window[1], true)
end 
end) 

 

  • Like 1

- Hashemite Kingdom Of Jordan -

Posted (edited)
--------لو عندك ازرار تغيير اللغة استخدم هذا الكود
addEventHandler("onClientGUIClick",root,function()
    if source == Arabic then
     guiSetText(YourButtonOrLabelName,"Register")
      elseif source == English then
      guiSetText(YourButtonOrLabelName,"انشاء حساب")
      end
    end
  )
----- YourButtonOrLabelName = حط اسم النافذة او  اسم الزرار او اسم الليبل اللي تبي كلامه يتغير ! انا سويتلك مثال بسيط فوق

واذا تبيه اول ما يضغط علي الـ 

CheckBox 

addEventHandler("onClientGUIClick",root,function() 
if  guiCheckBoxGetSelected(GUIEditor.checkbox[1]) == true then 
guiSetText(YourButtonOrLabelName,"حياكم الله في السيرفر")
elseif guiCheckBoxGetSelected(GUIEditor.checkbox[2] == true then
guiSetText(YourButtonOrLabelName,"Welcome to the server")
end 
end) 

 

+ انت حاط موضوعك في القسم الغلط

لازم يكون في قسم البرمج @

Edited by Abu-Solo
  • Like 1

 

721195519.png

595770773.png

 

76561198277320954.pngAddFriend.png

خلك احسن من غيرك,

لا تقول عندهم اشياء ماهي عندي

انت عندك اشياء ماهي عند غيرك #

Posted

I think he said something about comboBox no checkBox ^

أعتقد هو قال عن الكومبو بوكس مو التشيك بوكس :P

  • Like 1

 My new GCSS Script : Go 
حصريا : مود الدردشة بين السيرفرات : الذهاب

LUA progress = -100%

Join us :

 Multi Theft Auto Arab 

I'm not the best but, i'm different

Skype : kamel1234128

Someone in this world needs to remember my love .

Posted (edited)
guiComboBoxGetSelected
guiComboBoxGetItemText
guiSetVisible

 

Edited by Abu-Solo

 

721195519.png

595770773.png

 

76561198277320954.pngAddFriend.png

خلك احسن من غيرك,

لا تقول عندهم اشياء ماهي عندي

انت عندك اشياء ماهي عند غيرك #

Posted

انتا تبي لوحة قوانين مثل الي كانت في 

Gta-Ws

؟

الي هي كومبو بوكس فيه اختيار اللغة و جريد لست فيه المحتويات و لما يدوس علي الجريد لست يحط المعلومات في لابل ؟

Chillin' with some demons, satans and vamps

Posted
3 hours ago, #Skrillex said:

انتا تبي لوحة قوانين مثل الي كانت في 

Gta-Ws

؟

الي هي كومبو بوكس فيه اختيار اللغة و جريد لست فيه المحتويات و لما يدوس علي الجريد لست يحط المعلومات في لابل ؟

يب هذا قصده

يبي اول ما يختار شئ من الكومبو بوكس يجيه لوحة ثانية 

 

721195519.png

595770773.png

 

76561198277320954.pngAddFriend.png

خلك احسن من غيرك,

لا تقول عندهم اشياء ماهي عندي

انت عندك اشياء ماهي عند غيرك #

Posted


window = guiCreateWindow(...);
combobox = guiCreateComboBox(...);
Button = guiCreateButton(...);
guiComboBoxAddItem(combobox, "الخيار رقم1");
guiComboBoxAddItem(combobox, "الخيار رقم 2");

addEventHandler("onClientGUIClick", resourceRoot,
function ()
    if source == Button then
        local comboboxxx = guiComboBoxGetSelected(combobox);
        if cubox == 1 then
        guiSetVisible(window,true)
    end
end
end
 );

 

  • Like 1
p_482ruz1.png
Posted
On ٢٦‏/٣‏/١٤٣٨ هـ at 5:34 PM, Kara said:


window = guiCreateWindow(...);
combobox = guiCreateComboBox(...);
Button = guiCreateButton(...);
guiComboBoxAddItem(combobox, "الخيار رقم1");
guiComboBoxAddItem(combobox, "الخيار رقم 2");

addEventHandler("onClientGUIClick", resourceRoot,
function ()
    if source == Button then
        local comboboxxx = guiComboBoxGetSelected(combobox);
        if cubox == 1 then
        guiSetVisible(window,true)
    end
end
end
 );

 

عندك خطأ ,..

هذا التصحيح

addEventHandler("onClientGUIClick", resourceRoot,
function ()
    if source == Button then
        local comboboxxx = guiComboBoxGetSelected(combobox);
        if comboboxxx == 1 then
        guiSetVisible(window,true)
    end
end
end
 );

 

#Edit:

On ٢٦‏/٣‏/١٤٣٨ هـ at 5:34 PM, Kara said:


window = guiCreateWindow(...);
combobox = guiCreateComboBox(...);
Button = guiCreateButton(...);
guiComboBoxAddItem(combobox, "الخيار رقم1");
guiComboBoxAddItem(combobox, "الخيار رقم 2");

addEventHandler("onClientGUIClick", resourceRoot,
function ()
    if source == Button then
        local comboboxxx = guiComboBoxGetSelected(combobox);
        if cubox == 1 then
        guiSetVisible(window,true)
    end
end
end
 );

 

 

 

721195519.png

595770773.png

 

76561198277320954.pngAddFriend.png

خلك احسن من غيرك,

لا تقول عندهم اشياء ماهي عندي

انت عندك اشياء ماهي عند غيرك #

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