Jump to content

1337.Ibrahim

Members
  • Posts

    469
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by 1337.Ibrahim

  1. الله يعطيك الف عافية , الحين ابي اضيفهم في التيبل كيف http://imgur.com/a/GJ8ny
  2. @iMr.Omar http://imgur.com/a/1NszL ما يضيف شي في الرو
  3. --client 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 } ) triggerServerEvent ( 'event2' , localPlayer , Text ) loob () end end) addEventHandler("onClientResourceStart",resourceRoot,function () triggerServerEvent('event1',localPlayer) end) addEvent('events' , true ) addEventHandler('events' , getRootElement ( ), function ( Value ) for Value1 , Value2 in ipairs ( Value ) do guiGridListSetItemText ( GridList , guiGridListAddRow ( GridList ) , 1 , Value2.aRows , false , false ) end end ) --server executeSQLQuery ( ' CREATE TABLE IF NOT EXISTS aTalis ( aRows ) ' ) addEvent('event1',true) addEventHandler('event1',getRootElement(), function (aText) executeSQLQuery ( ' INSERT INTO aTalis VALUES ( ? )' , aText ) end) addEvent('event2',true) addEventHandler('event2',getRootElement(), function () Value = executeSQLQuery ('SELECT * FROM aTalis') if ( #Value ~= 0 ) then triggerClientEvent ( source , 'events', source , Value ) end end) السلام عليكم , سويت مود الانتقال عشان اتعلم السكل المهم واجهتني مشكلة اني اذا سويت مكان جديد وذا طلعت ودخلت ماينحفظ وش المشكلة @#BrosS @Abdul KariM @Master_MTA @iMr.WiFi..! @iMr.Omar
  4. @Master_MTA الله يعطيك الف عافية ي كبير وصلت المعلومة
  5. مافهمت كيف طريقتها , متى تستخدم
  6. ممكن شرح اكثر لـ return ?
  7. اي مساعدة ي اخوان ؟
  8. addEvent("send", true) addEventHandler("send", root, function (Text) end)
  9. 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("send", true) addEventHandler("send", root, function (Text) end)
  10. طيب كيف اخلي الكل يشوفه ؟
  11. الله يعطيك العافية , بس عندي سؤالين , الحين اذا سويت مكان جديد الكل يشوفه ؟ السؤال الثاني , كيف احط قوسين في الرو بدون ما اكتب في الإديت ؟
  12. @#BrosS نفس المشكلة [2017-07-08 22:40:28] ERROR: warp\client.lua:58: attempt to index local 'posi' (a boolean value)
  13. [2017-07-08 20:47:50] ERROR: warp\client.lua:55: bad argument #1 to 'unpack' (table expected, got nil)
  14. مساعدة ي اخوان ؟
  15. 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)
  16. 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 ) الكود كامل
  17. المشكلة هنا , مو في باقي الأكواد !
  18. [2017-07-07 15:12:21] ERROR: warp\client.lua:52: bad argument #1 to 'unpack' (table expected, got nil)
  19. 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 )
×
×
  • Create New...