FAHD+18 Posted December 14, 2016 Share Posted December 14, 2016 local Key = "F1" GUIEditor = { edit = {}, button = {}, window = {}, label = {}, gridlist = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(190, 166, 405, 305, "Admin x2", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.gridlist = guiCreateGridList(10, 62, 134, 233, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist, "Players:", 0.9) GUIEditor.edit[1] = guiCreateEdit(18, 38, 116, 19, "", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(55, 23, 99, 15, "Search ", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "default-bold-small") GUIEditor.button[1] = guiCreateButton(172, 62, 184, 35, "Mute", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "default-bold-small") GUIEditor.edit[2] = guiCreateEdit(154, 118, 227, 30, "", false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(47, -14, 170, 15, "What is Resson", false, GUIEditor.edit[2]) GUIEditor.label[3] = guiCreateLabel(210, 97, 120, 15, "What is The Resson :", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[3], "default-bold-small") GUIEditor.button[2] = guiCreateButton(164, 155, 94, 20, "Slap", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(277, 155, 94, 20, "Kick", false, GUIEditor.window[1]) GUIEditor.button[4] = guiCreateButton(163, 193, 208, 29, "Fly Car", false, GUIEditor.window[1]) GUIEditor.button[5] = guiCreateButton(163, 232, 94, 20, "FIX", false, GUIEditor.window[1]) GUIEditor.button[6] = guiCreateButton(277, 232, 94, 20, "Nitro", false, GUIEditor.window[1]) GUIEditor.label[4] = guiCreateLabel(163, 170, 212, 15, "______________________________", false, GUIEditor.window[1]) GUIEditor.label[5] = guiCreateLabel(297, 283, 148, 18, "Creat by FAHD v2", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[5], 254, 0, 0) end ) bindKey(Key,"down", function() guiSetVisible(GUIEditor.window[1],not guiGetVisible(windowname)) showCursor(guiGetVisible(GUIEditor.window[1])) end) addEventHandler("onClientGUIClick",root,function() if (source == buttonclose) then guiSetVisible(GUIEditor.window[1],false) showCursor(false) end end) شباب ها الكود ما الخطا فية بعد اذنكم مساعدة Link to comment
خلف Posted December 14, 2016 Share Posted December 14, 2016 local Key = "F1" GUIEditor = { edit = {}, button = {}, window = {}, label = {}, gridlist = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(190, 166, 405, 305, "Admin x2", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.gridlist = guiCreateGridList(10, 62, 134, 233, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist, "Players:", 0.9) GUIEditor.edit[1] = guiCreateEdit(18, 38, 116, 19, "", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(55, 23, 99, 15, "Search ", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "default-bold-small") GUIEditor.button[1] = guiCreateButton(172, 62, 184, 35, "Mute", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "default-bold-small") GUIEditor.edit[2] = guiCreateEdit(154, 118, 227, 30, "", false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(47, -14, 170, 15, "What is Resson", false, GUIEditor.edit[2]) GUIEditor.label[3] = guiCreateLabel(210, 97, 120, 15, "What is The Resson :", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[3], "default-bold-small") GUIEditor.button[2] = guiCreateButton(164, 155, 94, 20, "Slap", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(277, 155, 94, 20, "Kick", false, GUIEditor.window[1]) GUIEditor.button[4] = guiCreateButton(163, 193, 208, 29, "Fly Car", false, GUIEditor.window[1]) GUIEditor.button[5] = guiCreateButton(163, 232, 94, 20, "FIX", false, GUIEditor.window[1]) GUIEditor.button[6] = guiCreateButton(277, 232, 94, 20, "Nitro", false, GUIEditor.window[1]) GUIEditor.label[4] = guiCreateLabel(163, 170, 212, 15, "______________________________", false, GUIEditor.window[1]) GUIEditor.label[5] = guiCreateLabel(297, 283, 148, 18, "Creat by FAHD v2", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[5], 254, 0, 0) guiSetVisible ( GUIEditor.window[1], false ) end ) bindKey ( Key, "down", function ( ) if guiGetVisible ( GUIEditor.window[1] ) then guiSetVisible ( GUIEditor.window[1], false ) showCursor ( false ) else guiSetVisible ( GUIEditor.window[1], true ) showCursor ( true ) end end ) الغلط كان بهذا السطر guiSetVisible(GUIEditor.window[1],not guiGetVisible(windowname)) -- مافيه لوحة اسمها windowname 1 Link to comment
FAHD+18 Posted December 14, 2016 Author Share Posted December 14, 2016 اية الخطا انا جديد في البرمجه فاتعلم @@ يعني اية debugscript انا اسوي اسماء اللاعيبين مثل ما تاتي في لوحه الادمن فاهم علي Link to comment
MrSAUD1 Posted December 14, 2016 Share Posted December 14, 2016 (edited) انت مسوي وضيفة للوحة و ماراح تكون معرفة لـ كود فتح النافذة الافضل انك تسوي كذا و تحذف الوضيفة للوحة و الحدث او تضيف كود فتح الوحة في الوضيفة نفسها حقت الوحة التعديل local Key = "F1" GUIEditor = { edit = {}, button = {}, window = {}, label = {}, gridlist = {} } GUIEditor.window[1] = guiCreateWindow(190, 166, 405, 305, "Admin x2", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.gridlist = guiCreateGridList(10, 62, 134, 233, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist, "Players:", 0.9) GUIEditor.edit[1] = guiCreateEdit(18, 38, 116, 19, "", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(55, 23, 99, 15, "Search ", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "default-bold-small") GUIEditor.button[1] = guiCreateButton(172, 62, 184, 35, "Mute", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "default-bold-small") GUIEditor.edit[2] = guiCreateEdit(154, 118, 227, 30, "", false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(47, -14, 170, 15, "What is Resson", false, GUIEditor.edit[2]) GUIEditor.label[3] = guiCreateLabel(210, 97, 120, 15, "What is The Resson :", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[3], "default-bold-small") GUIEditor.button[2] = guiCreateButton(164, 155, 94, 20, "Slap", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(277, 155, 94, 20, "Kick", false, GUIEditor.window[1]) GUIEditor.button[4] = guiCreateButton(163, 193, 208, 29, "Fly Car", false, GUIEditor.window[1]) GUIEditor.button[5] = guiCreateButton(163, 232, 94, 20, "FIX", false, GUIEditor.window[1]) GUIEditor.button[6] = guiCreateButton(277, 232, 94, 20, "Nitro", false, GUIEditor.window[1]) GUIEditor.label[4] = guiCreateLabel(163, 170, 212, 15, "______________________________", false, GUIEditor.window[1]) GUIEditor.label[5] = guiCreateLabel(297, 283, 148, 18, "Creat by FAHD v2", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[5], 254, 0, 0) guiSetVisible ( GUIEditor.window[1], false ) bindKey ( Key, "down", function ( ) if guiGetVisible ( GUIEditor.window[1] ) then guiSetVisible ( GUIEditor.window[1], false ) showCursor ( false ) else guiSetVisible ( GUIEditor.window[1], true ) showCursor ( true ) end end ) Edited December 14, 2016 by MrSAUD1 1 Link to comment
MrSAUD1 Posted December 14, 2016 Share Posted December 14, 2016 العفو , موفق يا #بطل 1 Link to comment
FAHD+18 Posted December 14, 2016 Author Share Posted December 14, 2016 ممكن سوال تاني ممكن اسكايبك local Key = "F1" GUIEditor = { edit = {}, button = {}, window = {}, label = {}, gridlist = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(190, 166, 405, 305, "Admin x2", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.gridlist = guiCreateGridList(10, 62, 134, 233, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist, "Players:", 0.9) GUIEditor.edit[1] = guiCreateEdit(18, 38, 116, 19, "", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(55, 23, 99, 15, "Search ", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "default-bold-small") GUIEditor.button[1] = guiCreateButton(172, 62, 184, 35, "Mute", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "default-bold-small") GUIEditor.edit[2] = guiCreateEdit(154, 118, 227, 30, "", false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(47, -14, 170, 15, "What is Resson", false, GUIEditor.edit[2]) GUIEditor.label[3] = guiCreateLabel(210, 97, 120, 15, "What is The Resson :", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[3], "default-bold-small") GUIEditor.button[2] = guiCreateButton(164, 155, 94, 20, "Slap", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(277, 155, 94, 20, "Kick", false, GUIEditor.window[1]) GUIEditor.button[4] = guiCreateButton(163, 193, 208, 29, "Fly Car", false, GUIEditor.window[1]) GUIEditor.button[5] = guiCreateButton(163, 232, 94, 20, "FIX", false, GUIEditor.window[1]) GUIEditor.button[6] = guiCreateButton(277, 232, 94, 20, "Nitro", false, GUIEditor.window[1]) GUIEditor.label[4] = guiCreateLabel(163, 170, 212, 15, "______________________________", false, GUIEditor.window[1]) GUIEditor.label[5] = guiCreateLabel(297, 283, 148, 18, "Creat by FAHD v2", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[5], 254, 0, 0) guiSetVisible ( GUIEditor.window[1], false ) end ) bindKey ( Key, "down", function ( ) if guiGetVisible ( GUIEditor.window[1] ) then guiSetVisible ( GUIEditor.window[1], false ) showCursor ( false ) else guiSetVisible ( GUIEditor.window[1], true ) showCursor ( true ) end end ) function Players ( ) guiGridListClear ( gridlist ) local Row = guiGridListAddRow ( gridlist ) for id, players in ipairs(getElementsByType("player")) do guiGridListSetItemText ( gridlist, Ros 1, getPlayerName ( players ), false, false ) end addEventHandler( "onClientPlayerJoin", root, Players ) addEventHandler( "onClientPlayerQuit", root, Players ) addEventHandler( "onClientPlayerChangeNick", root, Players ) ما هو الخطا ! انا اتعلم برمجه ومعرف اخرج الخطا شباب معلش محتاج مساعدة Link to comment
MrSAUD1 Posted December 14, 2016 Share Posted December 14, 2016 قلت لك فوق يوم عدلت لك انت مسوي للوحة وضيفة و كذا الوحة ما راح تكون معرفة خارج الوضيفة راح تكون معرفة في الوحة فقط !! يعني زي زر فتح النافذه ما راح يفتح Link to comment
FAHD+18 Posted December 14, 2016 Author Share Posted December 14, 2016 اها الزر يفتح بس لما سويت الكود علي المود ما شتغل @@ كيف بعرفها Link to comment
MrSAUD1 Posted December 14, 2016 Share Posted December 14, 2016 يا خوي افهمني زين الله يرحم ولديك انت احذف حدث تشغيل المود و الوضيفة حقته و احذف اند الانهاء و القوس و راح يشتغل كل شي زي الفل Link to comment
MrSAUD1 Posted December 14, 2016 Share Posted December 14, 2016 اوهه طلع عندك اخطاء كثيره و منها اسم القريد ليست و نااسي اند الانهاء حق الوضيفة حق القريد ليست المهم التعديل كامل local Key = "F1" GUIEditor = { edit = {}, button = {}, window = {}, label = {}, gridlist = {} } GUIEditor.window[1] = guiCreateWindow(190, 166, 405, 305, "Admin x2", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.gridlist[1] = guiCreateGridList(10, 62, 134, 233, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "Players:", 0.9) GUIEditor.edit[1] = guiCreateEdit(18, 38, 116, 19, "", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(55, 23, 99, 15, "Search ", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "default-bold-small") GUIEditor.button[1] = guiCreateButton(172, 62, 184, 35, "Mute", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "default-bold-small") GUIEditor.edit[2] = guiCreateEdit(154, 118, 227, 30, "", false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(47, -14, 170, 15, "What is Resson", false, GUIEditor.edit[2]) GUIEditor.label[3] = guiCreateLabel(210, 97, 120, 15, "What is The Resson :", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[3], "default-bold-small") GUIEditor.button[2] = guiCreateButton(164, 155, 94, 20, "Slap", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(277, 155, 94, 20, "Kick", false, GUIEditor.window[1]) GUIEditor.button[4] = guiCreateButton(163, 193, 208, 29, "Fly Car", false, GUIEditor.window[1]) GUIEditor.button[5] = guiCreateButton(163, 232, 94, 20, "FIX", false, GUIEditor.window[1]) GUIEditor.button[6] = guiCreateButton(277, 232, 94, 20, "Nitro", false, GUIEditor.window[1]) GUIEditor.label[4] = guiCreateLabel(163, 170, 212, 15, "______________________________", false, GUIEditor.window[1]) GUIEditor.label[5] = guiCreateLabel(297, 283, 148, 18, "Creat by FAHD v2", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[5], 254, 0, 0) guiSetVisible ( GUIEditor.window[1], false ) bindKey ( Key, "down", function ( ) if guiGetVisible ( GUIEditor.window[1] ) then guiSetVisible ( GUIEditor.window[1], false ) showCursor ( false ) else guiSetVisible ( GUIEditor.window[1], true ) showCursor ( true ) end end ) function Players ( ) guiGridListClear ( GUIEditor.gridlist[1] ) local Row = guiGridListAddRow ( GUIEditor.gridlist[1] ) for id, players in ipairs(getElementsByType("player")) do guiGridListSetItemText ( GUIEditor.gridlist[1], Ros 1, getPlayerName ( players ), false, false ) end end addEventHandler( "onClientPlayerJoin", root, Players ) addEventHandler( "onClientPlayerQuit", root, Players ) addEventHandler( "onClientPlayerChangeNick", root, Players ) 1 Link to comment
FAHD+18 Posted December 14, 2016 Author Share Posted December 14, 2016 اها تمام انا سويت اللي قلت علية وما عمل فكنت هقلك تاني ذذ مشكوور والله Link to comment
MrSAUD1 Posted December 14, 2016 Share Posted December 14, 2016 العفو , اتوقع تم الافادهه موفق يا #بطل 1 Link to comment
FAHD+18 Posted December 14, 2016 Author Share Posted December 14, 2016 اها بس مش عارف ما اشتغلت ليش Link to comment
coNolel Posted December 14, 2016 Share Posted December 14, 2016 الآدمي ما يعرف وش يعني الديبوق ، يا اخي اكتب في اف8 debugscript 3 وبيطلع لك مجموعة من الجمل صورها او أنسخها وحطها هنا عشان نعرف وين المشكلة ونحاول وساعدك قدر المستطاع تحياتي 1 Link to comment
' A F . Posted December 14, 2016 Share Posted December 14, 2016 بعد الـ Ros حط فاصلة guiGridListSetItemText ( GUIEditor.gridlist[1], Ros ,1, getPlayerName ( players ), false, false ) Link to comment
FAHD+18 Posted December 14, 2016 Author Share Posted December 14, 2016 ماشي <3 #Edit: معرف ما جاء لي اي اسم في players Link to comment
+ANT7ARY Posted December 15, 2016 Share Posted December 15, 2016 (edited) https://wiki.multitheftauto.com/wiki/ChangeGridListItemToPlayersName Edited December 15, 2016 by +ANT7ARY Link to comment
' A F . Posted December 15, 2016 Share Posted December 15, 2016 local Key = "F1" GUIEditor = { edit = {}, button = {}, window = {}, label = {}, gridlist = {} } GUIEditor.window[1] = guiCreateWindow(190, 166, 405, 305, "Admin x2", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.gridlist[1] = guiCreateGridList(10, 62, 134, 233, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "Players:", 0.9) GUIEditor.edit[1] = guiCreateEdit(18, 38, 116, 19, "", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(55, 23, 99, 15, "Search ", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[1], "default-bold-small") GUIEditor.button[1] = guiCreateButton(172, 62, 184, 35, "Mute", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "default-bold-small") GUIEditor.edit[2] = guiCreateEdit(154, 118, 227, 30, "", false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(47, -14, 170, 15, "What is Resson", false, GUIEditor.edit[2]) GUIEditor.label[3] = guiCreateLabel(210, 97, 120, 15, "What is The Resson :", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[3], "default-bold-small") GUIEditor.button[2] = guiCreateButton(164, 155, 94, 20, "Slap", false, GUIEditor.window[1]) GUIEditor.button[3] = guiCreateButton(277, 155, 94, 20, "Kick", false, GUIEditor.window[1]) GUIEditor.button[4] = guiCreateButton(163, 193, 208, 29, "Fly Car", false, GUIEditor.window[1]) GUIEditor.button[5] = guiCreateButton(163, 232, 94, 20, "FIX", false, GUIEditor.window[1]) GUIEditor.button[6] = guiCreateButton(277, 232, 94, 20, "Nitro", false, GUIEditor.window[1]) GUIEditor.label[4] = guiCreateLabel(163, 170, 212, 15, "______________________________", false, GUIEditor.window[1]) GUIEditor.label[5] = guiCreateLabel(297, 283, 148, 18, "Creat by FAHD v2", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[5], 254, 0, 0) guiSetVisible ( GUIEditor.window[1], false ) bindKey ( Key, "down", function ( ) if guiGetVisible ( GUIEditor.window[1] ) then guiSetVisible ( GUIEditor.window[1], false ) showCursor ( false ) else guiSetVisible ( GUIEditor.window[1], true ) showCursor ( true ) end end ) function Players ( ) guiGridListClear ( GUIEditor.gridlist[1] ) for id, players in ipairs(getElementsByType("player")) do local Row = guiGridListAddRow ( GUIEditor.gridlist[1] ) guiGridListSetItemText ( GUIEditor.gridlist[1], Row ,1, getPlayerName ( players ), false, false ) end end addEventHandler ( 'onClientResourceStart' , resourceRoot , Players ) addEventHandler( "onClientPlayerJoin", root, Players ) addEventHandler( "onClientPlayerQuit", root, Players ) addEventHandler( "onClientPlayerChangeNick", root, Players ) 1 Link to comment
FAHD+18 Posted December 15, 2016 Author Share Posted December 15, 2016 كفووووووووووووووووووووووووووووووو اشتغل والله كفووو Link to comment
' A F . Posted December 15, 2016 Share Posted December 15, 2016 كفوك , حياك الله .. 2 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