Jump to content

X[مساعده]X مشكلة


Recommended Posts

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

:ايش المشكلة في ذا الكود 

الكود كامل


SETTING = {
["تجربة1"] = "1",
["1"] = AddContact.window[1],
}



AddContact = {
    window = {}
}
GUIEditor = {
    button = {},
    combobox = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
    function()
        wndrnk = guiCreateWindow(340, 108, 262, 288, "", false)
		guiSetVisible(wndrnk,false)
        guiWindowSetSizable(wndrnk, false)

        GUIEditor.combobox[1] = guiCreateComboBox(9, 21, 243, 215, "خيارات", false, wndrnk)
		guiComboBoxAddItem(GUIEditor.combobox[1], "تجربة1")
        GUIEditor.button[1] = guiCreateButton(17, 248, 235, 30, "تنفيذ", false, wndrnk)


        AddContact.window[1] = guiCreateWindow(884, 181, 376, 366, "تجربة", false)
		guiSetVisible(AddContact.window[1],false)
        guiWindowSetSizable(AddContact.window[1], false)    
	end
)



if (source == GUIEditor.button[1]) then
local getStinng = tostring( guiComboBoxGetItemText (GUIEditor.combobox[1], guiComboBoxGetSelected ( GUIEditor.combobox[1] ) ) )
if not ( getStinng ~= "خيارات" ) then
end
end

 

Link to comment
SETTING = {
["تجربة1"] = "1",
["1"] = AddContact.window[1],
}

if (source == GUIEditor.button[1]) then
local getStinng = tostring( guiComboBoxGetItemText (GUIEditor.combobox[1], guiComboBoxGetSelected ( GUIEditor.combobox[1] ) ) )
if not ( getStinng ~= "خيارات" ) then
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...