سلام عليكم
ودي اعرف وش الغلاط في هذى الكود مع علم لوحه فيها لمن تكبس يطلع صوت
GUIEditor_Window = {}
GUIEditor_Button = {}
GUIEditor_Label = {}
GUIEditor_Image = {}
GUIEditor_Window[1] = guiCreateWindow(235,62,356,296,"sond by yaZan",false)
GUIEditor_Button[1] = guiCreateButton(38,93,92,42,"B",false,GUIEditor_Window[1])
GUIEditor_Button[2] = guiCreateButton(232,95,92,42,"A",false,GUIEditor_Window[1])
GUIEditor_Button[3] = guiCreateButton(35,174,92,42,"D",false,GUIEditor_Window[1])
GUIEditor_Button[4] = guiCreateButton(236,180,92,42,"C",false,GUIEditor_Window[1])
GUIEditor_Button[5] = guiCreateButton(134,141,100,38,"PLAY\STOP",false,GUIEditor_Window[1])
GUIEditor_Label[1] = guiCreateLabel(9,258,121,32,"by yaZan",false,GUIEditor_Window[1])
GUIEditor_Image[1] = guiCreateStaticImage(9,19,338,73,"yazan/jo.png",false,GUIEditor_Window[1])
function open()
guiSetVisible(GUIEditor_Window[1],not guiGetVisible(GUIEditor_Window[1]))
showCursor(guiGetVisible(GUIEditor_Window[1]))
guiSetInputEnabled(guiGetVisible(GUIEditor_Window[1]))
end
bindKey("F5","down",open)
isOn = true
addEventHandler( "onClientGUIClick",
function ()
if ( source == GUIEditor_Button[1] ) then
function
local sound = playSound("sounds/A.mp3")
if ( source == GUIEditor_Button[2] ) then
function
local sound = playSound("sounds/B.mp3")
if ( source == GUIEditor_Button[3] ) then
function
local sound = playSound("sounds/C.mp3")
if ( source == GUIEditor_Button[4] ) then
function
local sound = playSound("sounds/D.mp3")
if ( source == GUIEditor_Button[5 ) then
function
local sound = playSound or stopSound
end
end)