Jump to content

[ Problem ] Gridlist


Recommended Posts

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

انا مسوي كود يجيب احداثيات الاعب

ابي لما احدد اسم من الجريد ليست

يجيب احداثياته

الكود

  addEventHandler("onClientGUIClick",root, 
       function() 
      if source == Position then 
        local selectedRow, selectedCol = guiGridListGetSelectedItem( GridList ) 
        local playerName = guiGridListGetItemText( GridList, selectedRow, selectedCol ) 
local x,y,z = getElementPosition (getLocalPlayer()) 
    guiSetText (editPosition1, x ) 
    guiSetText (editPosition2, y ) 
    guiSetText (editPosition3, z ) 
end 
 end) 

Link to comment
  addEventHandler("onClientGUIClick",root, 
       function() 
      if source == Position then 
        local selectedRow, selectedCol = guiGridListGetSelectedItem( GridList ) 
        local playerName = guiGridListGetItemText( GridList, selectedRow, selectedCol ) 
local x,y,z = getElementPosition (localPlayer) 
    guiSetText (editPosition1, x ) 
    guiSetText (editPosition2, y ) 
    guiSetText (editPosition3, z ) 
end 
 end) 

جرب

Link to comment
addEventHandler("onClientGUIClick",root, 
       function() 
      if source == Position then 
        local selectedRow, selectedCol = guiGridListGetSelectedItem( GridList ) 
        local playerName = guiGridListGetItemText( GridList, selectedRow, selectedCol ) 
        local Player_ = getPlayerFromName (playerName ) 
local x,y,z = getElementPosition (Player_ ) 
    guiSetText (editPosition1, x ) 
    guiSetText (editPosition2, y ) 
    guiSetText (editPosition3, z ) 
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...