Sign in to follow this  
JustP

سؤال

Recommended Posts

addEventHandler('onClientGUIDoubleClick',root,
function() 
if source == g12  then
    if guiGridListGetSelectedItem ( g12 ) then
        local Data = guiGridListGetItemData( g12, guiGridListGetSelectedItem ( g12 ), 1 )
        setWeather(Data)
        guiSetVisible(w12, false)
        showCursor(false)
    else
        outputChatBox('يجب ان تختار الجو المُحدد')
        end
    end
end )

معي ذي الاكواد لكن مشكلتي يوم اضغط عالقريد لست حتى لو مامختار ايتم تختفي كيف اخليها الا لو مختار ايتم؟ سوي تحقق بس نفس الشيء

Share this post


Link to post
	local aSelect_ = guiGridListGetSelectedItem ( yourGrid )

	if ( aSelect_ == -1 ) then return end

 

  • Thanks 1

Share this post


Link to post
1 minute ago, Abdul KariM said:

	local aSelect_ = guiGridListGetSelectedItem ( yourGrid )

	if ( aSelect_ == -1 ) then return end

 

addEventHandler('onClientGUIDoubleClick',root,
function() 
if source == g12  then
    local aSelect_ = guiGridListGetSelectedItem ( g12 )
    if ( aSelect_ == -1 ) then
        local Data = guiGridListGetItemData( g12, guiGridListGetSelectedItem ( g12 ), 1 )
        setWeather(Data)
        guiSetVisible(w12, false)
        showCursor(false)
    else
        outputChatBox('يجب ان تختار الجو المُحدد')
        return end
    end
end )



نفس الشيء..

Share this post


Link to post
addEventHandler('onClientGUIDoubleClick',root,
function() 
if source == g12  then
    local aSelect_ = guiGridListGetSelectedItem ( g12 )
    if ( aSelect_ == -1 ) then return outputChatBox('يجب ان تختار الجو المُحدد') end
        local Data = guiGridListGetItemData( g12, guiGridListGetSelectedItem ( g12 ), 1 )
        setWeather(Data)
        guiSetVisible(w12, false)
        showCursor(false)

    end
end 
)

 

  • Like 1

Share this post


Link to post
2 minutes ago, Abdul KariM said:

addEventHandler('onClientGUIDoubleClick',root,
function() 
if source == g12  then
    local aSelect_ = guiGridListGetSelectedItem ( g12 )
    if ( aSelect_ == -1 ) then return outputChatBox('يجب ان تختار الجو المُحدد') end
        local Data = guiGridListGetItemData( g12, guiGridListGetSelectedItem ( g12 ), 1 )
        setWeather(Data)
        guiSetVisible(w12, false)
        showCursor(false)

    end
end 
)

 

عبد الكريم خاص

Share this post


Link to post

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.