Jump to content

تصحيح خطا


Recommended Posts

سلام عليكم شباب وش الخطا هنا بالله

  addEventHandler( "onClientGUIDoubleClick", grid, doubleClickedName, false )


function doubleClickedName( )
   local sel2 = guiGridListGetSelectedItem(grid)
   local x,y,z = unpack(guiGridListGetItemData(grid,se12,1))
				setElementPosition(localPlayer,x,y,z)
   end

 

15 minutes ago, Master_MTA said:

سلام عليكم شباب وش الخطا هنا بالله


  addEventHandler( "onClientGUIDoubleClick", grid, doubleClickedName, false )function doubleClickedName( )   local sel2 = guiGridListGetSelectedItem(grid)   local x,y,z = unpack(guiGridListGetItemData(grid,se12,1))
				setElementPosition(localPlayer,x,y,z)
   end

 

يغلق تم حل المشكله والحل الصحيح هو

 

 

  function use() 
         local row, col = guiGridListGetSelectedItem(grid)   
              local x,y,z = unpack(guiGridListGetItemData(grid,row,1))
           				setElementPosition(localPlayer,x,y,z)

    end 
    addEventHandler("onClientDoubleClick", root, use, false)

 

  • Like 1
Link to comment

غير الكود لهذا الشكل وبتنحل بإذن الله 

function use() 
	local row, col = guiGridListGetSelectedItem(grid)   
	local x,y,z = unpack(guiGridListGetItemData(grid,row,1))
	setElementPosition(localPlayer,x,y,z)
end 
addEventHandler("onClientDoubleClick", grid, use)

 

Link to comment

:lol::lol::lol:

السهر ومايسوي , يخليك تكتب اشياء ماتدري وش هي

addEventHandler('onClientGUIDoubleClick',grid,
function () 
	local row, col = guiGridListGetSelectedItem(grid)  
	if ( row ~= -1 ) then 
		local x,y,z = unpack(guiGridListGetItemData(grid, row, col))
		setElementPosition(localPlayer,x,y,z)
	end 
end,false)

 

  • Like 1
Link to comment
14 hours ago, !#NssoR_) said:

غير الكود لهذا الشكل وبتنحل بإذن الله 


function use() 
	local row, col = guiGridListGetSelectedItem(grid)   
	local x,y,z = unpack(guiGridListGetItemData(grid,row,1))
	setElementPosition(localPlayer,x,y,z)
end 
addEventHandler("onClientDoubleClick", grid, use)

 

اخوي جربت ما يزبط

13 hours ago, !#NssoR_) said:

:lol::lol::lol:

السهر ومايسوي , يخليك تكتب اشياء ماتدري وش هي


addEventHandler('onClientGUIDoubleClick',grid,
function () 
	local row, col = guiGridListGetSelectedItem(grid)  
	if ( row ~= -1 ) then 
		local x,y,z = unpack(guiGridListGetItemData(grid, row, col))
		setElementPosition(localPlayer,x,y,z)
	end 
end,false)

 

يعطيك العافيه اخوي

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