Jump to content

طلب كود تبديل صور (تمت الافادة)ا


Recommended Posts

addEventHandler ( "onClientGUIClick", root, 
    function ( ) 
        if source == ButtonChange then 
            if Image then 
                guiStaticImageLoadImage ( Images, "English.png" ) 
                Image = false 
            else 
                guiStaticImageLoadImage ( Images, "Arabic.png" ) 
                Image = true 
            end 
        end 
    end 
) 

Link to comment
addEventHandler ( "onClientGUIClick", root, 
    function ( ) 
        if source == ButtonChange then 
            if Image then 
                guiStaticImageLoadImage ( Images, "English.png" ) 
                Image = false 
            else 
                guiStaticImageLoadImage ( Images, "Arabic.png" ) 
                Image = true 
            end 
        end 
    end 
) 

3NAD Copy right's?

Link to comment
addEventHandler ( "onClientGUIClick", root, 
    function ( ) 
        if source == ButtonChange then 
            if Image then 
                guiStaticImageLoadImage ( Images, "English.png" ) 
                Image = false 
            else 
                guiStaticImageLoadImage ( Images, "Arabic.png" ) 
                Image = true 
            end 
        end 
    end 
) 

خخخخخخ ما يحتاج لازم نعتمد على نفسنا

Link to comment
addEventHandler ( "onClientGUIClick", root, 
    function ( ) 
        if source == ButtonChange then 
            if Image then 
                guiStaticImageLoadImage ( Images, "English.png" ) 
                Image = false 
            else 
                guiStaticImageLoadImage ( Images, "Arabic.png" ) 
                Image = true 
            end 
        end 
    end 
) 

3NAD Copy right's?

آنآ ما قلت عناد ما سواه لي

+ من بعد ما سواه لي صرت اعرف اسويه

+ ما نسخته اصلا مدري وين الموضوع الي عطاني فيه الكود

Link to comment

عموما كودك غلط :

Button = guiCreateButton(....); 
Pic = guiCreateStaticImage(....); 
local load = load 
addEventHandler("onClientGUIClick",Button, 
    function ( ) 
    if not ( load ) then 
                guiStaticImageLoadImage ( Pic, "1.png" ); 
                load = not load; 
        else 
                guiStaticImageLoadImage ( Pic, "2.png" ); 
                load = not load; 
        end; 
    end,false 
); 
         
         
Link to comment
عموما كودك غلط :

Button = guiCreateButton(....); 
Pic = guiCreateStaticImage(....); 
local load = load 
addEventHandler("onClientGUIClick",Button, 
    function ( ) 
    if not ( load ) then 
                guiStaticImageLoadImage ( Pic, "1.png" ); 
                load = not load; 
        else 
                guiStaticImageLoadImage ( Pic, "2.png" ); 
                load = not load; 
        end; 
    end,false 
); 
         
         

جربه وبعدين قول خطأ :lol:

انا مجربه شغال,,

Link to comment
GUIEditor_Image[1] = guiCreateStaticImage(444,125,256,306,"images/1.png",false) 
GUIEditor_Image[2] = guiCreateStaticImage(444,125,256,306,"images/2.png",false) 
  
addEventHandler( "onClientGUIClick", root, 
 function ( ) 
         if ( source == GUIEditor_Image[1] ) then 
         guiSetVisible(GUIEditor_Image[1],false) 
         guiSetVisible(GUIEditor_Image[2],true) 
elseif ( source == GUIEditor_Image[2] ) then 
 guiSetVisible(GUIEditor_Image[2],false) 
         guiSetVisible(GUIEditor_Image[1],true) 
  
end 
  end) 

:mrgreen:

Edited by Guest
Link to comment
GUIEditor_Image[1] = guiCreateStaticImage(444,125,256,306,"images/1.png",false)

GUIEditor_Image[1] = guiCreateStaticImage(444,125,256,306,"images/2.png",false)

addEventHandler( "onClientGUIClick", root,

function ( )

if ( source == GUIEditor_Image[1] ) then

guiSetVisible(GUIEditor_Image[1],false)

guiSetVisible(GUIEditor_Image[2],true)

elseif ( source == GUIEditor_Image[2] ) then

guiSetVisible(GUIEditor_Image[2],false)

guiSetVisible(GUIEditor_Image[1],true)

end

end)


-_-

Link to comment
GUIEditor_Image[1] = guiCreateStaticImage(444,125,256,306,"images/1.png",false)

GUIEditor_Image[2] = guiCreateStaticImage(444,125,256,306,"images/2.png",false)

addEventHandler( "onClientGUIClick", root,

function ( )

if ( source == GUIEditor_Image[1] ) then

guiSetVisible(GUIEditor_Image[1],false)

guiSetVisible(GUIEditor_Image[2],true)

elseif ( source == GUIEditor_Image[2] ) then

guiSetVisible(GUIEditor_Image[2],false)

guiSetVisible(GUIEditor_Image[1],true)

end

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...