Jump to content

فهموني وش الغلط


Recommended Posts

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

اليوم حاولت اسوي سكربت وسويت اكثر من 5 سكربتات ولا واجهتني نفس المشكلة في هذا السكربت

وملاحضة الديبوق مايطلع شيء

الكود

addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(0, 5, 1024, 768, "المتصفح", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
  
        btn = guiCreateButton(893, 24, 45, 37, "", false, GUIEditor.window[1]) 
        edt = guiCreateEdit(16, 31, 851, 30, "", false, GUIEditor.window[1]) 
        browser  = guiCreateBrowser(17, 73, 997, 685, "", false, GUIEditor.window[1])   
        local theBrowser = guiGetBrowser(browser)    
    end 
) 
  
addEventHandler ( "onClientGUIClick", resourceRoot, 
    function (     ) 
        if ( source == btn ) then 
        local get = guiGetText ( edt ) 
  
    end 
end ) 
  
addEventHandler("onClientBrowserCreated", theBrowser, get 
    function() 
        loadBrowserURL(source, "get") 
    end 
) 

Link to comment
addEventHandler ( "onClientGUIClick", root, 
function () 
    if ( source == btn ) then 
        local URL = guiGetText ( edt ) 
    if ( URL ~= "" ) and not ( string.find( URL, " " ) ) then 
            loadBrowserURL( theBrowser, URL ) 
        end 
    end 
end) 
      
addEventHandler( "onClientBrowserCreated", theBrowser, 
function() 
    loadBrowserURL( source, "http://www.google.com" ) 
end) 

Link to comment
  #CroSs said:
addEventHandler ( "onClientGUIClick", root, 
function () 
    if ( source == btn ) then 
        local URL = guiGetText ( edt ) 
    if ( URL ~= "" ) and not ( string.find( URL, " " ) ) then 
            loadBrowserURL( theBrowser, URL ) 
        end 
    end 
end) 
      
addEventHandler( "onClientBrowserCreated", theBrowser, 
function() 
    loadBrowserURL( source, "http://www.google.com" ) 
end) 

اخوي انا ابي اذا انضغط زر ياخذ الي بالادت ويوديه بالرابط المكتوب بالادت

Link to comment
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        BrowserWindow = guiCreateWindow(0, 5, 1024, 768, "المتصفح", false) 
        guiWindowSetSizable(BrowserWindow, false) 
  
        btn = guiCreateButton(893, 24, 45, 37, "", false, BrowserWindow) 
        edt = guiCreateEdit(16, 31, 851, 30, "", false, BrowserWindow) 
        browser  = guiCreateBrowser(17, 73, 997, 685, "", false, BrowserWindow)   
        theBrowser = guiGetBrowser(browser)    
    end 
) 
  
addEventHandler("onClientGUIClick", root, 
function () 
    if (source == btn) then 
        local URL = guiGetText(edt) 
        if (URL ~= "") then 
            loadBrowserURL(theBrowser, URL) 
        end 
    end 
end 
) 
      
addEventHandler( "onClientBrowserCreated", theBrowser, 
function() 
    loadBrowserURL( source, "http://www.google.com" ) 
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...