#STARK Posted September 10, 2018 Share Posted September 10, 2018 for i,v in pairs(tab) do local Positions = { ["A"] = { getElementPosition(localPlayer) }, ["B"] = { unpack(v) } } local distance = getDistanceBetweenPoints3D(unpack(Positions["A"]), unpack(Positions["B"])) var = var + 1 local row = guiGridListAddRow(source) guiGridListSetItemText(source, row, 1, var, false, false) guiGridListSetItemText(source, row, 2, i, false, false) guiGridListSetItemText(source, row, 3, distance, false, false) guiGridListSetItemData(source, row, 2, v, false, false) end Link to comment
Rockyz Posted September 10, 2018 Share Posted September 10, 2018 23 minutes ago, #STARK said: for i,v in pairs(tab) do local Positions = { ["A"] = { getElementPosition(localPlayer) }, ["B"] = { unpack(v) } } local distance = getDistanceBetweenPoints3D(unpack(Positions["A"]), unpack(Positions["B"])) var = var + 1 local row = guiGridListAddRow(source) guiGridListSetItemText(source, row, 1, var, false, false) guiGridListSetItemText(source, row, 2, i, false, false) guiGridListSetItemText(source, row, 3, distance, false, false) guiGridListSetItemData(source, row, 2, v, false, false) end ليه مسوي كذا ؟ ["B"] = { unpack(v) } تقدر تسويها كذا وخلاص : ["B"] = v مايحتاج تطولها وهي قصيرة Link to comment
Mr.Mostafa Posted September 10, 2018 Author Share Posted September 10, 2018 30 minutes ago, *AnGeL said: الانجليزية اسم السيرفر تايم ^,^ Link to comment
#STARK Posted September 10, 2018 Share Posted September 10, 2018 33 minutes ago, #,xiRocKyz said: ليه مسوي كذا ؟ ["B"] = { unpack(v) } تقدر تسويها كذا وخلاص : ["B"] = v مايحتاج تطولها وهي قصيرة صح كلامك ماركزتش و انا بعملو شكرا علي التنبيه 1 Link to comment
Guest Posted September 10, 2018 Share Posted September 10, 2018 3 hours ago, Mr.Mostafa said: اسم السيرفر تايم ^,^ أها لكن وش هالأسماء الغريبة.. Link to comment
#STARK Posted September 10, 2018 Share Posted September 10, 2018 (edited) 39 minutes ago, Mr.Mostafa said: ما ظبطت هات تصميم اللوحه , شكلك مبتفهمش حاجه في الجداول انا هبرمج لك المود اقترح عليك تقراء شويه عنها هنا https://www.lua.org/pil/11.1.html Edited September 10, 2018 by #STARK 1 1 Link to comment
Mr.Mostafa Posted September 10, 2018 Author Share Posted September 10, 2018 2 hours ago, #STARK said: شكلك مبتفهمش حاجه في الجداول انا هبرمج لك المود مانا فعلا مليش في الجداول وبحاول اتعلمها + لو شفت اخر 3 مواضيع ليا هتلاقيهم عن الجداول + ترا انا استخدم الكود حقك انت , يعني الخطا منك مب مني Bad argument @ 'getDistanceBetweenPoints3D' [Expected number at argument 2, got table] for i,v in pairs(tab) do local Positions = { ["A"] = { getElementPosition(localPlayer) }, ["B"] = v } local distance = getDistanceBetweenPoints3D(unpack(Positions["A"]), unpack(Positions["B"])) var = var + 1 local row = guiGridListAddRow(source) guiGridListSetItemText(source, row, 1, var, false, false) guiGridListSetItemText(source, row, 2, i, false, false) guiGridListSetItemText(source, row, 3, distance, false, false) guiGridListSetItemData(source, row, 2, v, false, false) end Link to comment
#Mr.ZaMoRa Posted September 10, 2018 Share Posted September 10, 2018 6 hours ago, *AnGeL said: أها لكن وش هالأسماء الغريبة.. .. اقترح لنا اسم علي زوقق .. Link to comment
#STARK Posted September 11, 2018 Share Posted September 11, 2018 بدل ذا local distance = getDistanceBetweenPoints3D(unpack(Positions["A"]), unpack(Positions["B"])) بـ local distance = getDistanceBetweenPoints3D(getElementPosition(localPlayer), unpack(v)) Link to comment
Rockyz Posted September 11, 2018 Share Posted September 11, 2018 4 hours ago, #STARK said: بدل ذا local distance = getDistanceBetweenPoints3D(unpack(Positions["A"]), unpack(Positions["B"])) بـ local distance = getDistanceBetweenPoints3D(getElementPosition(localPlayer), unpack(v)) راجع كودك Link to comment
Mr.Mostafa Posted September 16, 2018 Author Share Posted September 16, 2018 ما انحلت المشكلة . اب 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