WriterUrDie Posted July 6, 2015 Share Posted July 6, 2015 (edited) سلام عليكم [شباب انا سويت لوحة انتقال للاعب آخر المشكلة انه بينتقل بس مو لللاعب, بينتقل في مكان كذا [مزرعة وين الخطأ ؟ Client Side GUIEditor.window[2] = guiCreateWindow(615, 118, 175, 338, "Warp To Player", false) guiWindowSetSizable(GUIEditor.window[2], false) GUIEditor.gridlist[2] = guiCreateGridList(9, 25, 157, 304, false, GUIEditor.window[2]) column = guiGridListAddColumn(GUIEditor.gridlist[2], "PlayersList", 0.9) function warpto(sourcePlayer, targetPlayer, who) local who = guiGridListGetSelectedItem(GUIEditor.gridlist[2]) if source == GUIEditor.gridlist[2] then local x,y,z = getElementPosition (source,who) setElementPosition(localPlayer,x+5, y, z+5) end end addEventHandler("onClientGUIClick",getRootElement(),warpto) *انا مسوي النافذة تفتح بزر في لوحة* اي مساعدة بالله عليكم Edited July 6, 2015 by Guest Link to comment
ALw7sH Posted July 6, 2015 Share Posted July 6, 2015 احذف سورس في getElementPosition خلها who و getPlayerFromName(who) الي في نفس السطر بس Link to comment
WriterUrDie Posted July 6, 2015 Author Share Posted July 6, 2015 local x,y,z = getElementPosition (getPlayerFromName(who)) تقصد ؟ Link to comment
</Mr.Tn6eL> Posted July 6, 2015 Share Posted July 6, 2015 (edited) GUIEditor.window[2] = guiCreateWindow(615, 118, 175, 338, "Warp To Player", false) guiWindowSetSizable(GUIEditor.window[2], false) GUIEditor.gridlist[2] = guiCreateGridList(9, 25, 157, 304, false, GUIEditor.window[2]) column = guiGridListAddColumn(GUIEditor.gridlist[2], "PlayersList", 0.9) function warpto( ) if source == GUIEditor.gridlist[2] then local who = guiGridListGetSelectedItem(GUIEditor.gridlist[2]) if who ~= -1 then local player = getPlayerFromName(guiGridListGetItemText(GUIEditor.gridlist[2], who, 1)) if player then local x,y,z = getElementPosition (player) setElementPosition(localPlayer,x+5, y, z+5) end end end end addEventHandler("onClientGUIClick", resourceRoot, warpto) Edited July 6, 2015 by Guest Link to comment
WriterUrDie Posted July 6, 2015 Author Share Posted July 6, 2015 GUIEditor.window[2] = guiCreateWindow(615, 118, 175, 338, "Warp To Player", false) guiWindowSetSizable(GUIEditor.window[2], false) GUIEditor.gridlist[2] = guiCreateGridList(9, 25, 157, 304, false, GUIEditor.window[2]) column = guiGridListAddColumn(GUIEditor.gridlist[2], "PlayersList", 0.9) function warpto( ) if source == GUIEditor.gridlist[2] then local who = guiGridListGetSelectedItem(GUIEditor.gridlist[2]) if who ~= -1 then local player = getPlayerFromName(guiGridListGetItemText(GUIEditor.gridlist[2], row, 1)) if player then local x,y,z = getElementPosition (player) setElementPosition(localPlayer,x+5, y, z+5) end end end end addEventHandler("onClientGUIClick", resourceRoot, warpto) ماضبط معي Link to comment
iMr.Dawix~# Posted July 6, 2015 Share Posted July 6, 2015 الجدول مهو موجود حق الجوي ادتور واللي فيه .. Link to comment
</Mr.Tn6eL> Posted July 6, 2015 Share Posted July 6, 2015 GUIEditor.window[2] = guiCreateWindow(615, 118, 175, 338, "Warp To Player", false) guiWindowSetSizable(GUIEditor.window[2], false) GUIEditor.gridlist[2] = guiCreateGridList(9, 25, 157, 304, false, GUIEditor.window[2]) column = guiGridListAddColumn(GUIEditor.gridlist[2], "PlayersList", 0.9) function warpto( ) if source == GUIEditor.gridlist[2] then local who = guiGridListGetSelectedItem(GUIEditor.gridlist[2]) if who ~= -1 then local player = getPlayerFromName(guiGridListGetItemText(GUIEditor.gridlist[2], row, 1)) if player then local x,y,z = getElementPosition (player) setElementPosition(localPlayer,x+5, y, z+5) end end end end addEventHandler("onClientGUIClick", resourceRoot, warpto) ماضبط معي مثل ماقال ضاوي + شوف الديبوق Link to comment
WriterUrDie Posted July 6, 2015 Author Share Posted July 6, 2015 انا مسوي جدول.. هاد بس جزء, انا مسوي لوحات و كذا في المود صورة عن debugscript Link to comment
' A F . Posted July 6, 2015 Share Posted July 6, 2015 شيـل ال row في سطر 13 وحط بدالها who Link to comment
</Mr.Tn6eL> Posted July 6, 2015 Share Posted July 6, 2015 شيـل ال row في سطر 13 وحط بدالها who مشكور على التنبية متعود احطها row Link to comment
WriterUrDie Posted July 6, 2015 Author Share Posted July 6, 2015 مشكور جداً لكم عنجد تسلمو اشتغل معي حمدلله اخواني 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