كذا الكود صح ؟
function ChangeMyButtonEnabled ( )
if ( guiGetEnabled ( MyButton ) == true ) then
guiSetEnabled ( MyButton, false )
else
guiSetEnabled ( MyButton, true )
end
end
MyGuiWindow = guiCreateWindow(125,121,549,374,"Shop Weapons",false)
MyButton[1]= guiCreateButton(41,72,99,60,"",false,GUIEditor_Window[1])
MyButton[2] = guiCreateButton(41,72,99,60,"",false,GUIEditor_Window[1])
MyButton[3] = guiCreateButton(164,72,99,60,"",false,GUIEditor_Window[1])
MyButton[4] = guiCreateButton(285,72,99,60,"",false,GUIEditor_Window[1])
MyButton[5] = guiCreateButton(407,72,99,60,"",false,GUIEditor_Window[1])
MyButton[6] = guiCreateButton(41,166,99,60,"",false,GUIEditor_Window[1])
MyButton[7] = guiCreateButton(164,165,99,60,"",false,GUIEditor_Window[1])
MyButton[8] = guiCreateButton(285,164,99,60,"",false,GUIEditor_Window[1])
MyButton[9] = guiCreateButton(407,163,99,60,"",false,GUIEditor_Window[1])
MyButton[10] = guiCreateButton(41,257,99,60,"",false,GUIEditor_Window[1])
MyButton[11] = guiCreateButton(164,256,99,60,"",false,GUIEditor_Window[1])
MyButton[12] = guiCreateButton(285,255,99,60,"",false,GUIEditor_Window[1])
MyButton[13] = guiCreateButton(407,253,99,60,"",false,GUIEditor_Window[1])
MyButton[14] = guiCreateButton(237,328,80,35,"Close",false,GUIEditor_Window[1])
وزر الفتح والاغلاق حق النافذه كيف ؟