Jump to content

مششكلة


Recommended Posts

GUIEditor = { 
    gridlist = {}, 
    window = {}, 
    button = {} 
} 
  
songs = { 
    {"Sound","http://cdn.top4top.net/d_11668d4a9b1.mp3"}, 
} 
  
addEventHandler ( "onClientResourceStart", resourceRoot, function ( ) 
    GUIEditor.window[1] = guiCreateWindow(282, 130, 236, 396, "Window", false) 
    guiWindowSetSizable(GUIEditor.window[1], false) 
    guiSetAlpha(GUIEditor.window[1], 1.00) 
    GUIEditor.button[1] = guiCreateButton(9, 345, 217, 37, "Stop / آيقاف", false, GUIEditor.window[1]) 
    guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") 
    GUIEditor.button[2] = guiCreateButton(9, 308, 217, 37, "Start / تشغيل", false, GUIEditor.window[1]) 
    guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA") 
    GUIEditor.gridlist[1] = guiCreateGridList(9, 19, 217, 285, false, GUIEditor.window[1]) 
    guiGridListAddColumn(GUIEditor.gridlist[1], "#", 0.9)     
    -- Sound's 
    for _,song in ipairs(songs) do 
        local row = guiGridListAddRow(GUIEditor.gridlist[1]) 
        guiGridListSetItemText(GUIEditor.gridlist[1],row,1,song[1],false,false) 
        guiGridListSetItemData(GUIEditor.gridlist[1],row,1,song[2]) 
    end 
end) 
  
addEventHandler( "onClientGUIClick", resourceRoot, function (   ) 
    if ( source == GUIEditor.button[2] ) then 
        if ( guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) ~= -1 ) then 
            if ( guiGridListGetItemData ( GUIEditor.gridlist[1], guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ), 1 ) ~= "" ) then 
                    if ( isElement ( SoundURL ) ) then destroyElement ( SoundURL ) end 
                    SoundURL = playSound ( tostring ( guiGridListGetItemData ( GUIEditor.gridlist[1], guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ), 1 ) ) ) 
            end 
        end 
    elseif ( source == GUIEditor.button[1] )then 
        if ( isElement ( SoundURL ) ) then 
            destroyElement ( SoundURL ) 
        end 
    end 
end) 

Link to comment

up.top4top.net

انا ارفع المقاطع الصوتيه الي بسيرفري على موقع توب &

يعطيك رابط مباشر

+

رابط html

#EDIT

الرابط مباشر و الموقع الي رفع الملف الصوتي عليه

نفس الموقع الي طرحته :lol::lol:

Edited by Guest
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...