Vunili Posted August 5, 2016 Share Posted August 5, 2016 السلام عليكم ورحمة الله وبركاته انا مسوي كود يجيب احداثيات الاعب ابي لما احدد اسم من الجريد ليست يجيب احداثياته الكود 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
Wleed1998 Posted August 5, 2016 Share Posted August 5, 2016 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
[DONE]* Posted August 5, 2016 Share Posted August 5, 2016 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
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