Vunili Posted August 5, 2016 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)
Wleed1998 Posted August 5, 2016 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) جرب
[DONE]* Posted August 5, 2016 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)
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