coNolel Posted June 6, 2017 Share Posted June 6, 2017 سلام عليكم ورحمة الله اليوم يا جماعة كنت اجرب كم فنكشن ، ولقيت fetchRemote وجات على بالي فكرة كويسة بس المشكلة انو ما يبي يشتغل المثا اللي بالويكي عشان اعدل عليه وكذا و من ثم أفهم الفنكشن -- server side function startImageDownload( playerToReceive ) fetchRemote ( "http://a.top4top.net/p_52221hhc1.jpg", myCallback, "", false, playerToReceive ) end function myCallback( responseData, errno, playerToReceive ) if errno == 0 then triggerClientEvent( playerToReceive, "onClientGotImage", resourceRoot, responseData ) end end -- client side addEvent( "onClientGotImage", true ) addEventHandler( "onClientGotImage", resourceRoot, function( pixels ) if myTexture then destroyElement( myTexture ) end myTexture = dxCreateTexture( pixels ) end ) addEventHandler("onClientRender", root, function() if myTexture then local w,h = dxGetMaterialSize( myTexture ) dxDrawImage( 200, 100, w, h, myTexture ) end end ) يا ريت ما تبخلو علينا بالمساعدة وسلام عليكم ورحمة الله Link to comment
Abdul KariM Posted June 6, 2017 Share Posted June 6, 2017 استبدل السيرفر بهذا fetchRemote("http://a.top4top.net/p_52221hhc1.jpg", function ( response ) if response ~= "ERROR" then triggerClientEvent("onClientGotImage", root, responseData ) end end ) 1 Link to comment
' A F . Posted June 6, 2017 Share Posted June 6, 2017 @Abdul KariM سطر 6 responseData مو معرفة . 1 Link to comment
Abdul KariM Posted June 6, 2017 Share Posted June 6, 2017 @Default يب يب يعطيك العافية fetchRemote("http://a.top4top.net/p_52221hhc1.jpg", function ( response ) if response ~= "ERROR" then triggerClientEvent("onClientGotImage", root, response ) end end ) 2 Link to comment
coNolel Posted June 7, 2017 Author Share Posted June 7, 2017 2 hours ago, Abdul KariM said: @Default يب يب يعطيك العافية fetchRemote("http://a.top4top.net/p_52221hhc1.jpg", function ( response ) if response ~= "ERROR" then triggerClientEvent("onClientGotImage", root, response ) end end ) 2 hours ago, Default said: @Abdul KariM سطر 6 responseData مو معرفة . لبى قلوبكم يا شيخ ، تم حل المشكل # 1 Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now