Jump to content

مساعدة


FAHD+18

Recommended Posts

--------لو عندك ازرار تغيير اللغة استخدم هذا الكود
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
Link to comment

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

Gta-Ws

؟

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

Link to comment
3 hours ago, #Skrillex said:

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

Gta-Ws

؟

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

يب هذا قصده

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

Link to comment


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
Link to comment
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
 );

 

 

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