برستيج شوف بعد التعديل
خطاء
مدري مني الخطاء ولا كيف
local GridList = gridlist1
local Button = StartSound
local Sound = {
-- { String Text,String URL },
{ 'Test','URL Test' },
}
for _,v in next,Sound do
MyRow = guiGridListAddRow ( GridList )
guiGridListSetItemText ( GridList,MyRow,1,v[1],false,false )
guiGridListSetItemData ( GridList,MyRow,1,v[2] )
end
addEventHandler('onClientGUIClick',StartSound,
function ( )
if guiGridListGetSelectedItem ( GridList ) ~= -1 then
if isElement ( sound ) then
destroyElement ( sound )
end
sound = playSound ( guiGridListGetItemData ( GridList,MyRow,1 ) )
outputChatBox(' Sound Loading ...')
end
end,false
)