1337.Ibrahim Posted July 7, 2017 Posted July 7, 2017 السلام عليكم كيف احط احداثيات في الجريد ليست مع التيبل ؟
1337.Ibrahim Posted July 7, 2017 Author Posted July 7, 2017 1 hour ago, iMr.WiFi..! said: استعمل اللوب -.- ؟ معي مود الإنتقالات ومسوي ايديت اذا ضغطت بوتون يضيف مكان جديد في القريد ليست
1337.Ibrahim Posted July 7, 2017 Author Posted July 7, 2017 addEventHandler('onClientGUIClick',root,function () local sel = guiGridListGetSelectedItem(GridList) if ( source == warp ) then if sel ~= -1 then local x,y,z = unpack(guiGridListGetItemData(GridList,sel,1)) setElementPosition(localPlayer,x,y,z) else outputChatBox("Select A Positon",255,0,0) end end end) addEventHandler("onClientGUIClick", root, function () if source == create then local Text = guiGetText(editwarp) local x,y,z = getElementPosition(localPlayer) table.insert ( tele, { x, y, z } ) if Text == "" or Text == " " then return end triggerServerEvent("send", localPlayer, Text) end end) addEvent("Request", true) addEventHandler("Request", root, function (Text) local Row = guiGridListAddRow(GridList) local Msg = guiGetText (editwarp) guiGridListSetItemText(GridList, Row, 1,"=[ "..Msg.." ]=", false, false) guiGridListSetItemColor(GridList, Row, 1, 0, 255, 0) end )
1337.Ibrahim Posted July 7, 2017 Author Posted July 7, 2017 [2017-07-07 15:12:21] ERROR: warp\client.lua:52: bad argument #1 to 'unpack' (table expected, got nil)
1337.Ibrahim Posted July 7, 2017 Author Posted July 7, 2017 5 minutes ago, #\_oskar_/# said: اطرح الجزء الباقي من الكود المشكلة هنا , مو في باقي الأكواد !
#\_oskar_/# Posted July 7, 2017 Posted July 7, 2017 الخطأ بالديبق واضح انه بسطر 52 والكود اللي انت طارحه 32 سطر
1337.Ibrahim Posted July 7, 2017 Author Posted July 7, 2017 (edited) tele = { {"=[ القفزه الخونفشاريه ]=",1541.0673828125, -1357.576171875, 329.46615600586}, {"=[ مقر الجيش ]=",146.66674804688, 1720, 17.640625}, {"=[ موقف الباصات ]=",1790.2674560547,-1912.0159912109 , 13.396838188171}, {"=[ الفنادق ]=",-1739.0821533203, 940.56231689453, 24.7421875}, {"=[ الشارع الطويل ]=",-3072.5554199219,-3000.345703125,5}, {"=[ بيت سي جي ]=",2491.12109375, -1667.4482421875, 13.34375}, } for i,mk in ipairs(tele) do local row = guiGridListAddRow(GridList) guiGridListSetItemText(GridList,row,1,mk[1],false,false) guiGridListSetItemData(GridList,row,1,{mk[2],mk[3],mk[4]}) guiGridListSetItemColor(GridList,row,1,0,255,0) end addEventHandler('onClientGUIClick',root,function () local sel = guiGridListGetSelectedItem(GridList) if ( source == warp ) then if sel ~= -1 then local x,y,z = unpack(guiGridListGetItemData(GridList,sel,1)) setElementPosition(localPlayer,x,y,z) else outputChatBox("Select A Positon",255,0,0) end end end) addEventHandler("onClientGUIClick", root, function () if source == create then local Text = guiGetText(editwarp) local x,y,z = getElementPosition(localPlayer) table.insert ( tele, { x, y, z } ) if Text == "" or Text == " " then return end triggerServerEvent("send", localPlayer, Text) end end) addEvent("Request", true) addEventHandler("Request", root, function (Text) local Row = guiGridListAddRow(GridList) local Msg = guiGetText (editwarp) guiGridListSetItemText(GridList, Row, 1,"=[ "..Msg.." ]=", false, false) guiGridListSetItemColor(GridList, Row, 1, 0, 255, 0) end ) الكود كامل Edited July 7, 2017 by Talis
iMr.WiFi..! Posted July 7, 2017 Posted July 7, 2017 addEventHandler('onClientGUIClick',root,function () local sel = guiGridListGetSelectedItem(GridList) if ( source == warp ) then if sel ~= -1 then local pos = guiGridListGetItemData(GridList,sel,1) setElementPosition(localPlayer,pos[1],pos[2],pos[3]) else outputChatBox("Select A Positon",255,0,0) end end end)
1337.Ibrahim Posted July 8, 2017 Author Posted July 8, 2017 (edited) setElementPosition(localPlayer,pos[1],pos[2],pos[3]) في مشكلة هنا [2017-07-08 14:29:55] ERROR: warp\client.lua:51: attempt to index local 'pos' (a nil value) Edited July 8, 2017 by Talis
iMr.WiFi..! Posted July 8, 2017 Posted July 8, 2017 (edited) tele = { {"=[ القفزه الخونفشاريه ]=",1541.0673828125, -1357.576171875, 329.46615600586}, {"=[ مقر الجيش ]=",146.66674804688, 1720, 17.640625}, {"=[ موقف الباصات ]=",1790.2674560547,-1912.0159912109 , 13.396838188171}, {"=[ الفنادق ]=",-1739.0821533203, 940.56231689453, 24.7421875}, {"=[ الشارع الطويل ]=",-3072.5554199219,-3000.345703125,5}, {"=[ بيت سي جي ]=",2491.12109375, -1667.4482421875, 13.34375} } function loob ( ) guiGridListClear ( GridList ) for i,mk in ipairs(tele) do local row = guiGridListAddRow(GridList) guiGridListSetItemText(GridList,row,1,mk[1],false,false) guiGridListSetItemData(GridList,row,1,{mk[2],mk[3],mk[4]}) guiGridListSetItemColor(GridList,row,1,0,255,0) end end loob ( ) addEventHandler('onClientGUIClick',root,function () local sel = guiGridListGetSelectedItem(GridList) if ( source == warp ) then if sel ~= -1 then local x,y,z = unpack(guiGridListGetItemData(GridList,sel,1)) setElementPosition(localPlayer,x,y,z) else outputChatBox("Select A Positon",255,0,0) end end end) addEventHandler("onClientGUIClick", root, function () if source == create then local Text = guiGetText(editwarp) local x,y,z = getElementPosition(localPlayer) if Text == "" or Text == " " then return end table.insert ( tele, { Text, x, y, z } ) loob () triggerServerEvent("send", localPlayer, Text) end end) addEvent("Request", true) addEventHandler("Request", root, function (Text) local Row = guiGridListAddRow(GridList) local Msg = guiGetText (editwarp) guiGridListSetItemText(GridList, Row, 1,"=[ "..Msg.." ]=", false, false) guiGridListSetItemColor(GridList, Row, 1, 0, 255, 0) end ) ^ جرب Edited July 8, 2017 by iMr.WiFi..! 1
1337.Ibrahim Posted July 8, 2017 Author Posted July 8, 2017 2 hours ago, iMr.WiFi..! said: tele = { {"=[ القفزه الخونفشاريه ]=",1541.0673828125, -1357.576171875, 329.46615600586}, {"=[ مقر الجيش ]=",146.66674804688, 1720, 17.640625}, {"=[ موقف الباصات ]=",1790.2674560547,-1912.0159912109 , 13.396838188171}, {"=[ الفنادق ]=",-1739.0821533203, 940.56231689453, 24.7421875}, {"=[ الشارع الطويل ]=",-3072.5554199219,-3000.345703125,5}, {"=[ بيت سي جي ]=",2491.12109375, -1667.4482421875, 13.34375} } function loob ( ) guiGridListClear ( GridList ) for i,mk in ipairs(tele) do local row = guiGridListAddRow(GridList) guiGridListSetItemText(GridList,row,1,mk[1],false,false) guiGridListSetItemData(GridList,row,1,{mk[2],mk[3],mk[4]}) guiGridListSetItemColor(GridList,row,1,0,255,0) end end loob ( ) addEventHandler('onClientGUIClick',root,function () local sel = guiGridListGetSelectedItem(GridList) if ( source == warp ) then if sel ~= -1 then local x,y,z = unpack(guiGridListGetItemData(GridList,sel,1)) setElementPosition(localPlayer,x,y,z) else outputChatBox("Select A Positon",255,0,0) end end end) addEventHandler("onClientGUIClick", root, function () if source == create then local Text = guiGetText(editwarp) local x,y,z = getElementPosition(localPlayer) if Text == "" or Text == " " then return end table.insert ( tele, { Text, x, y, z } ) loob () triggerServerEvent("send", localPlayer, Text) end end) addEvent("Request", true) addEventHandler("Request", root, function (Text) local Row = guiGridListAddRow(GridList) local Msg = guiGetText (editwarp) guiGridListSetItemText(GridList, Row, 1,"=[ "..Msg.." ]=", false, false) guiGridListSetItemColor(GridList, Row, 1, 0, 255, 0) end ) ^ جرب [2017-07-08 20:47:50] ERROR: warp\client.lua:55: bad argument #1 to 'unpack' (table expected, got nil)
#BrosS Posted July 8, 2017 Posted July 8, 2017 1 hour ago, Talis said: [2017-07-08 20:47:50] ERROR: warp\client.lua:55: bad argument #1 to 'unpack' (table expected, got nil) tele = { {"=[ القفزه الخونفشاريه ]=",1541.0673828125, -1357.576171875, 329.46615600586}, {"=[ مقر الجيش ]=",146.66674804688, 1720, 17.640625}, {"=[ موقف الباصات ]=",1790.2674560547,-1912.0159912109 , 13.396838188171}, {"=[ الفنادق ]=",-1739.0821533203, 940.56231689453, 24.7421875}, {"=[ الشارع الطويل ]=",-3072.5554199219,-3000.345703125,5}, {"=[ بيت سي جي ]=",2491.12109375, -1667.4482421875, 13.34375} } function loob ( ) guiGridListClear ( GridList ) for i,mk in ipairs(tele) do local row = guiGridListAddRow(GridList) guiGridListSetItemText(GridList,row,1,mk[1],false,false) guiGridListSetItemData(GridList,row,1,{mk[2],mk[3],mk[4]}) guiGridListSetItemColor(GridList,row,1,0,255,0) end end loob ( ) addEventHandler('onClientGUIClick',root,function () sel = guiGridListGetSelectedItem(GridList) if source == warp then if sel ~= -1 then local posi = guiGridListGetItemData(GridList, sel) setElementPosition(localPlayer,posi[1],posi[2],posi[3]) else outputChatBox("Select A Positon",255,0,0) end end end) addEventHandler("onClientGUIClick", root, function () if source == create then local Text = guiGetText(editwarp) local x,y,z = getElementPosition(localPlayer) if Text == "" or Text == " " then return end table.insert ( tele, { Text, x, y, z } ) loob () triggerServerEvent("send", localPlayer, Text) end end) addEvent("Request", true) addEventHandler("Request", root, function (Text) local Row = guiGridListAddRow(GridList) local Msg = guiGetText (editwarp) guiGridListSetItemText(GridList, Row, 1,"=[ "..Msg.." ]=", false, false) guiGridListSetItemColor(GridList, Row, 1, 0, 255, 0) end ) اذا ما اشتغل احذف اللعبة
1337.Ibrahim Posted July 8, 2017 Author Posted July 8, 2017 (edited) @#BrosS نفس المشكلة [2017-07-08 22:40:28] ERROR: warp\client.lua:58: attempt to index local 'posi' (a boolean value) Edited July 8, 2017 by Talis
#BrosS Posted July 8, 2017 Posted July 8, 2017 10 minutes ago, Talis said: @#BrosS نفس المشكلة [2017-07-08 22:40:28] ERROR: warp\client.lua:58: attempt to index local 'posi' (a boolean value) ذذ سوري حط هيك local posi = guiGridListGetItemData(GridList, sel,1) setElementPosition(localPlayer,tonumber(posi[1]),tonumber(posi[2]),tonumber(posi[3])) 1
1337.Ibrahim Posted July 8, 2017 Author Posted July 8, 2017 5 minutes ago, #BrosS said: ذذ سوري حط هيك local posi = guiGridListGetItemData(GridList, sel,1) setElementPosition(localPlayer,tonumber(posi[1]),tonumber(posi[2]),tonumber(posi[3])) الله يعطيك العافية , بس عندي سؤالين , الحين اذا سويت مكان جديد الكل يشوفه ؟ السؤال الثاني , كيف احط قوسين في الرو بدون ما اكتب في الإديت ؟
#BrosS Posted July 8, 2017 Posted July 8, 2017 4 minutes ago, Talis said: الله يعطيك العافية , بس عندي سؤالين , الحين اذا سويت مكان جديد الكل يشوفه ؟ السؤال الثاني , كيف احط قوسين في الرو بدون ما اكتب في الإديت ؟ لا اللي يضيف يشوفه وحده مافهمت كيف قوسين
1337.Ibrahim Posted July 8, 2017 Author Posted July 8, 2017 2 minutes ago, #BrosS said: لا اللي يضيف يشوفه وحده مافهمت كيف قوسين طيب كيف اخلي الكل يشوفه ؟
#BrosS Posted July 8, 2017 Posted July 8, 2017 1 minute ago, Talis said: طيب كيف اخلي الكل يشوفه ؟ تريقراااات ل74اب9ل+45بلتلب 2 minutes ago, Talis said: طيب كيف اخلي الكل يشوفه ؟ اصبر ضض مدري يمكن الكل يشوفه وريني سيرفر 1
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