Wleed1998 Posted July 8, 2016 Share Posted July 8, 2016 ---------------------------- 1- فكرت المود المود عباره عن لوحتين لوحه فيه 6 شك بوكس 3 منه لحال و 3 لحال ال3 الاول نوع الشيء مثل يبي يشتري تاج -ساعات -املاك ال3 الثاني طريقة الشراء كاش يو - سواء -موبايل بعدين فيه 6 ايدت يحط فيه ارقام البطآيق و لما يمليه ويظغط زر ارسال المعلومات تروح ل لوحة الادآره لوحة آلآدره فيه جريد لست و 4 كولمن الكولمن الاول اسم الاعب الثاني نوع المشترى الثالث بنوع الباقه الرابع ارقام الي ارسله وفيه 1 بوتن واحد يحذف من الكولمن المحددد عليه -------------------------------------- GUIEditor = { memo = {}, edit = {}, window = {}, checkbox = {}, label = {}, } GUIEditor.window[1] = guiCreateWindow(210, 66, 449, 493, "", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) GUIEditor.memo[1] = guiCreateMemo(9, 25, 421, 184, "", false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(0, 209, 442, 20, "--------------------------------------------------------------", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[2], "sa-header") guiLabelSetColor(GUIEditor.label[2], 195, 0, 0) a1 = guiCreateCheckBox(29, 242, 110, 22, "سآعات", false, false, GUIEditor.window[1]) guiSetProperty(a1, "NormalTextColour", "FFC30000") b2 = guiCreateCheckBox(172, 243, 110, 22, "تاج", false, false, GUIEditor.window[1]) guiSetProperty(b2, "NormalTextColour", "FFB4A20A") c1 = guiCreateCheckBox(310, 243, 110, 22, "قريبآ", false, false, GUIEditor.window[1]) guiSetProperty(c1, "NormalTextColour", "FF05BB92") GUIEditor.label[3] = guiCreateLabel(44, 279, 390, 24, "يرجى تحديد طريقة الدفه", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[3], "default-bold-small") guiLabelSetColor(GUIEditor.label[3], 146, 157, 30) a2 = guiCreateCheckBox(36, 314, 98, 23, "سواء", false, false, GUIEditor.window[1]) guiSetProperty(GUIEditor.checkbox[4], "NormalTextColour", "FF873671") b2 = guiCreateCheckBox(174, 314, 98, 23, "كآش يو", false, false, GUIEditor.window[1]) guiSetProperty(GUIEditor.checkbox[5], "NormalTextColour", "FFA81456") c2 = guiCreateCheckBox(320, 314, 98, 23, "موبايل", false, false, GUIEditor.window[1]) guiSetProperty(GUIEditor.checkbox[6], "NormalTextColour", "FF2AC002") GUIEditor.label[4] = guiCreateLabel(30, 348, 411, 30, "يرجى عدم ترك الفراغات خآليه", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[4], "default-bold-small") guiLabelSetColor(GUIEditor.label[4], 193, 187, 0) a11 = guiCreateEdit(39, 380, 149, 27, "", false, GUIEditor.window[1]) b11 = guiCreateEdit(40, 417, 149, 27, "", false, GUIEditor.window[1]) c11 = guiCreateEdit(194, 380, 149, 27, "", false, GUIEditor.window[1]) a22 = guiCreateEdit(194, 417, 149, 27, "", false, GUIEditor.window[1]) b22 = guiCreateEdit(39, 456, 149, 27, "", false, GUIEditor.window[1]) c22 = guiCreateEdit(194, 456, 149, 27, "", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(344, 383, 96, 101, "آرسآل المعلومات", false, GUIEditor.window[1]) bindKey("F6","down", function () guiSetVisible(GUIEditor.window[1],not guiGetVisible(GUIEditor.window[1])) showCursor(guiGetVisible(GUIEditor.window[1])) end ) addEventHandler("onClientGUIClick",root) function (item,text) if source == GUIEditor.button[1] then if (guiCheckBoxGetSelected(a1) == false and guiCheckBoxGetSelected(b1) == false and guiCheckBoxGetSelected(c1) == false) then outputChatBox('* خطأ : #FFFFFF يجب ان تقوم بتحديد طريقة الدفع لأكمال عملية الشراء بنجاح !', 255, 0, 0, true) return end if (not getItemSelected or getItemSelected == "")then local aa = a1 or b1 or c1 if source == aa then item = guiCheckBoxGetSelected(aa) text = guiComboBoxGetItemText(aa, item) -------------------------------------------------------------------------- local bb = a2 or b2 or c2 if (guiCheckBoxGetSelected(a2) == false and guiCheckBoxGetSelected(b2) == false and guiCheckBoxGetSelected(c2) == false) then outputChatBox('* خطأ : #FFFFFF يجب ان تقوم بتحديد طريقة الدفع لأكمال عملية الشراء بنجاح !', 255, 0, 0, true) return end item1 = guiCheckBoxGetSelected(bb) text1 = guiComboBoxGetItemText(bb, item1) triggerServerEvent("box", localPlayer,item,text,item1,text1 ) ------------------------------------------------------------------------------- elseif (a11 and b11 and c11 and a22 and b22 and c22 ~= "" )then if (not tonumber(a11) and not tonumber(b11) and not tonumber(c11) and not tonumber(a22) and not tonumber(b22) and not tonumber(c22)) then outputChatBox('* خطأ : #FFFFFF يرجى كتابة رقم بطاقة صحيح لتتم عملية ارسال المعلومات بنجاح !', 255, 0, 0, true) return end if ((a11 ~= "") and not tonumber(a11) or (b11 ~= "") and not tonumber(b11) or (c11 ~= "") and not tonumber(c11) or (a22 ~= "") and not tonumber(a22) or (b22 ~= "") and not tonumber(b22) or (c22 ~= "") and not tonumber(c22)) then outputChatBox('* خطأ : #FFFFFF يرجى كتابة رقم بطاقة صحيح لتتم عملية ارسال المعلومات بنجاح !', 255, 0, 0, true) return end abc1 = guiGetText(GUIEditor.edit[1]) local a11 = guiGetText(a11) local b11 = guiGetText(b11) local c11 = guiGetText(c11) local a22 = guiGetText(a22) local b22 = guiGetText(b22) local c22 = guiGetText(c22) triggerServerEvent("box2", localPlayer,abc1,a11,b11,c11,a22,b22,c22 ) -------------------------------------------------------------------------------- end end end end end end end ----------------------- GUIEditor = { gridlist = {}, button = {}, window = {}, } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[2] = guiCreateWindow(198, 107, 468, 447, "", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible ( GUIEditor.window[2],false ) GUIEditor.gridlist[1] = guiCreateGridList(9, 20, 450, 331, false, GUIEditor.window[2]) guiGridListAddColumn(GUIEditor.gridlist[1], "اسم الاعب", 0.2) guiGridListAddColumn(GUIEditor.gridlist[1], "نوع المشترى", 0.2) guiGridListAddColumn(GUIEditor.gridlist[1], "بآقة المشترى", 0.2) guiGridListAddColumn(GUIEditor.gridlist[1], "معلومات المشترى", 0.2) ss = guiCreateButton(153, 374, 147, 33, "حذف", false, GUIEditor.window[2]) end ) ------------------------------ addEvent( 'boxc', true ) addEventHandler( 'boxc', root, function (pla,item,text,item1,text1) local row = guiGridListAddRow (GUIEditor.gridlist[1]) guiGridListSetItemText (GUIEditor.gridlist[1],row,1,pla,false,false) guiGridListSetItemText (GUIEditor.gridlist[1],row,2,text,false,false) guiGridListSetItemText (GUIEditor.gridlist[1],row,3,text1,false,false) guiGridListSetItemText (GUIEditor.gridlist[1],row,4,text1,false,false) end ) addEvent( 'boxc1', true ) addEventHandler( 'boxc1', root, function (abc1,a11,b11,c11,a22,b22,c22) local row = guiGridListAddRow (GUIEditor.gridlist[1]) guiGridListSetItemText (GUIEditor.gridlist[1],row,4,text1,false,false) end ) addEventHandler("onClientGUIClick",root, function() if source == sss then local sw = guiGridListGetSelectedItem(GUIEditor.gridlist[1]) if (sw == -1) then outputChatBox( '* خطأ : #FFFFFF لم تقم بتحديد مشتري من القائمة !', 255, 0, 0, true) return end local sa = guiGridListGetItemData(GUIEditor.gridlist[1], sw, 1) local as = guiGridListGetItemData(GUIEditor.gridlist[1], sw, 2) triggerServerEvent( 'box1', localPlayer,sa,as) end end end ) addEvent( 'UPDATEGRIDLIST', true ) addEventHandler( 'UPDATEGRIDLIST', root, function() guiGridListClear(GUIEditor.gridlist[1]) end ) function Opens ( ) guiSetVisible ( GUIEditor.window[2],true ) showCursor ( true ) end addEvent ( "Open", true ) addEventHandler ( "Open", root, Opens ) executeSQLQuery( ' CREATE TABLE IF NOT EXISTS `Boxs` (pla,item,text,item1,text1,abc,a11,b11,c11,a22,b22,c22) ' ) addEvent( 'box', true ) addEventHandler( 'box', root, function (item,text,item1,text1) pla = getPlayerName(source) triggerClientEvent(source"boxc",source,pla,item,text,item1,text1) end ) addEvent( 'box1', true ) addEventHandler( 'box1', root, function (as,sa) local checkPlayer = executeSQLQuery( ' SELECT * FROM `Boxs` WHERE pla=?', sa ) if (checkPlayer) then end executeSQLQuery( ' DELETE FROM `Boxs` WHERE pla=? ', as ) outputChatBox('* إدارة المشتريات : #FFFFFF تم حذف المشتري من القائمة بنجاح !', source, 0, 255, 0, true) triggerClientEvent( 'UPDATEGRIDLIST', source) end ) addEvent( 'box2', true ) addEventHandler( 'box2', root, function (abc1,a11,b11,c11,a22,b22,c22) triggerClientEvent(source"boxc1",source,abc1,a11,b11,c11,a22,b22,c22) end ) addCommandHandler ( "الكلمه اف 8", function ( p ) local acc = getPlayerAccount(p) if not isGuestAccount ( acc ) then if isObjectInACLGroup("user." .. getAccountName(acc), aclGetGroup("Admin")) then triggerClientEvent ( p, "Open", resourceRoot ) end end end ) Link to comment
فاّرس Posted July 8, 2016 Share Posted July 8, 2016 ^ كودك كله اغلاط وناقصك اندات واقواس وتحققات, عدل كودك شوف الديبوق وش يقول وصححها ثم تعال محد بيعدل لك سكربت كامل /debugscript 3 Link to comment
Wleed1998 Posted July 8, 2016 Author Share Posted July 8, 2016 ^ كودك كله اغلاط وناقصك اندات واقواس وتحققات, عدل كودك شوف الديبوق وش يقول وصححها ثم تعال محد بيعدل لك سكربت كامل /debugscript 3 لا ي الغالي قول لي وين الاغلآط وانا بسويه مثل وش ناقصني ووش زي كذا ^ Link to comment
iMr.WiFi..! Posted July 8, 2016 Share Posted July 8, 2016 سوي كود ثاني هذا خرابيط 100 % Link to comment
فاّرس Posted July 8, 2016 Share Posted July 8, 2016 لا ي الغالي قول لي وين الاغلآط وانا بسويه مثل وش ناقصني ووش زي كذا ^ سطر 28 , 30, 32, 51, 56, 58, 92, 93, 94, عد واغلط ذا بس الكلينت السيرفر ماشيكت عليه, والكلينت باقي فيه اخطاء .. Link to comment
Wleed1998 Posted July 8, 2016 Author Share Posted July 8, 2016 لا ي الغالي قول لي وين الاغلآط وانا بسويه مثل وش ناقصني ووش زي كذا ^ سطر 28 , 30, 32, 51, 56, 58, 92, 93, 94, عد واغلط ذا بس الكلينت السيرفر ماشيكت عليه, والكلينت باقي فيه اخطاء .. ---- صلحت الاغلاط الي قلت لي شوف المحآوله GUIEditor = { memo = {}, edit = {}, window = {}, checkbox = {}, label = {}, } GUIEditor.window[1] = guiCreateWindow(210, 66, 449, 493, "", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) GUIEditor.memo[1] = guiCreateMemo(9, 25, 421, 184, "", false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(0, 209, 442, 20, "--------------------------------------------------------------", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[2], "sa-header") guiLabelSetColor(GUIEditor.label[2], 195, 0, 0) a1 = guiCreateCheckBox(29, 242, 110, 22, "سآعات", false, false, GUIEditor.window[1]) guiSetProperty(a1, "NormalTextColour", "FFC30000") b2 = guiCreateCheckBox(172, 243, 110, 22, "تاج", false, false, GUIEditor.window[1]) guiSetProperty(b2, "NormalTextColour", "FFB4A20A") c1 = guiCreateCheckBox(310, 243, 110, 22, "قريبآ", false, false, GUIEditor.window[1]) guiSetProperty(c1, "NormalTextColour", "FF05BB92") GUIEditor.label[3] = guiCreateLabel(44, 279, 390, 24, "يرجى تحديد طريقة الدفه", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[3], "default-bold-small") guiLabelSetColor(GUIEditor.label[3], 146, 157, 30) a2 = guiCreateCheckBox(36, 314, 98, 23, "سواء", false, false, GUIEditor.window[1]) guiSetProperty(a2, "NormalTextColour", "FF873671") b2 = guiCreateCheckBox(174, 314, 98, 23, "كآش يو", false, false, GUIEditor.window[1]) guiSetProperty(b2, "NormalTextColour", "FFA81456") c2 = guiCreateCheckBox(320, 314, 98, 23, "موبايل", false, false, GUIEditor.window[1]) guiSetProperty(c2, "NormalTextColour", "FF2AC002") GUIEditor.label[4] = guiCreateLabel(30, 348, 411, 30, "يرجى عدم ترك الفراغات خآليه", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[4], "default-bold-small") guiLabelSetColor(GUIEditor.label[4], 193, 187, 0) a11 = guiCreateEdit(39, 380, 149, 27, "", false, GUIEditor.window[1]) b11 = guiCreateEdit(40, 417, 149, 27, "", false, GUIEditor.window[1]) c11 = guiCreateEdit(194, 380, 149, 27, "", false, GUIEditor.window[1]) a22 = guiCreateEdit(194, 417, 149, 27, "", false, GUIEditor.window[1]) b22 = guiCreateEdit(39, 456, 149, 27, "", false, GUIEditor.window[1]) c22 = guiCreateEdit(194, 456, 149, 27, "", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(344, 383, 96, 101, "آرسآل المعلومات", false, GUIEditor.window[1]) bindKey("F6","down", function () guiSetVisible(GUIEditor.window[1],not guiGetVisible(GUIEditor.window[1])) showCursor(guiGetVisible(GUIEditor.window[1])) end ) addEventHandler("onClientGUIClick",root function () if source == GUIEditor.button[1] then if (guiCheckBoxGetSelected(a1) == false and guiCheckBoxGetSelected(b1) == false and guiCheckBoxGetSelected(c1) == false) then outputChatBox('* خطأ : #FFFFFF يجب ان تقوم بتحديد طريقة الدفع لأكمال عملية الشراء بنجاح !', 255, 0, 0, true) return end local getItemSelected = guiGridListGetItemText(GUIEditor.gridlist[1], guiGridListGetSelectedItem(GUIEditor.gridlist[1]), 1) if (not getItemSelected or getItemSelected == "") then outputChatBox('* خطأ : #FFFFFF يجب ان تقوم بتحديد نوع وخطة الشيء المراد شرائه !', 255, 0, 0, true) return end local aa = a1 or b1 or c1 if source == aa then item = guiCheckBoxGetSelected(aa) text = guiComboBoxGetItemText(aa, item) -------------------------------------------------------------------------- if (guiCheckBoxGetSelected(a2) == false and guiCheckBoxGetSelected(b2) == false and guiCheckBoxGetSelected(c2) == false) then outputChatBox('* خطأ : #FFFFFF يجب ان تقوم بتحديد طريقة الدفع لأكمال عملية الشراء بنجاح !', 255, 0, 0, true) return end local getItemSelected = guiGridListGetItemText(GUIEditor.gridlist[1], guiGridListGetSelectedItem(GUIEditor.gridlist[1]), 1) if (not getItemSelected or getItemSelected == "") then outputChatBox('* خطأ : #FFFFFF يجب ان تقوم بتحديد نوع وخطة الشيء المراد شرائه !', 255, 0, 0, true) return end local bb = a2 or b2 or c2 item1 = guiCheckBoxGetSelected(bb) text1 = guiComboBoxGetItemText(bb, item1) triggerServerEvent("box", localPlayer,item,text,item1,text1 ) ------------------------------------------------------------------------------- elseif (a11 and b11 and c11 and a22 and b22 and c22 ~= "" )then if (not tonumber(a11) and not tonumber(b11) and not tonumber(c11) and not tonumber(a22) and not tonumber(b22) and not tonumber(c22)) then outputChatBox('* خطأ : #FFFFFF يرجى كتابة رقم بطاقة صحيح لتتم عملية ارسال المعلومات بنجاح !', 255, 0, 0, true) return end if ((a11 ~= "") and not tonumber(a11) or (b11 ~= "") and not tonumber(b11) or (c11 ~= "") and not tonumber(c11) or (a22 ~= "") and not tonumber(a22) or (b22 ~= "") and not tonumber(b22) or (c22 ~= "") and not tonumber(c22)) then outputChatBox('* خطأ : #FFFFFF يرجى كتابة رقم بطاقة صحيح لتتم عملية ارسال المعلومات بنجاح !', 255, 0, 0, true) return end abc1 = guiGetText(GUIEditor.edit[1]) local a11 = guiGetText(a11) local b11 = guiGetText(b11) local c11 = guiGetText(c11) local a22 = guiGetText(a22) local b22 = guiGetText(b22) local c22 = guiGetText(c22) triggerServerEvent("box2", localPlayer,abc1,a11,b11,c11,a22,b22,c22 ) -------------------------------------------------------------------------------- end end end end ----------------------- GUIEditor = { gridlist = {}, button = {}, window = {}, } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[2] = guiCreateWindow(198, 107, 468, 447, "", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible ( GUIEditor.window[2],false ) GUIEditor.gridlist[1] = guiCreateGridList(9, 20, 450, 331, false, GUIEditor.window[2]) guiGridListAddColumn(GUIEditor.gridlist[1], "اسم الاعب", 0.2) guiGridListAddColumn(GUIEditor.gridlist[1], "نوع المشترى", 0.2) guiGridListAddColumn(GUIEditor.gridlist[1], "بآقة المشترى", 0.2) guiGridListAddColumn(GUIEditor.gridlist[1], "معلومات المشترى", 0.2) ss = guiCreateButton(153, 374, 147, 33, "حذف", false, GUIEditor.window[2]) end ) ------------------------------ addEvent( 'boxc', true ) addEventHandler( 'boxc', root, function (pla,item,text,item1,text1) local row = guiGridListAddRow (GUIEditor.gridlist[1]) guiGridListSetItemText (GUIEditor.gridlist[1],row,1,pla,false,false) guiGridListSetItemText (GUIEditor.gridlist[1],row,2,text,false,false) guiGridListSetItemText (GUIEditor.gridlist[1],row,3,text1,false,false) end ) addEvent( 'boxc1', true ) addEventHandler( 'boxc1', root, function (abc1,a11,b11,c11,a22,b22,c22) local row = guiGridListAddRow (GUIEditor.gridlist[1]) guiGridListSetItemText (GUIEditor.gridlist[1],row,4,text1,false,false) end ) addEventHandler("onClientGUIClick",root, function() if source == sss then local sw = guiGridListGetSelectedItem(GUIEditor.gridlist[1]) if (sw == -1) then outputChatBox( '* خطأ : #FFFFFF لم تقم بتحديد مشتري من القائمة !', 255, 0, 0, true) return end local sa = guiGridListGetItemData(GUIEditor.gridlist[1], sw, 1) local as = guiGridListGetItemData(GUIEditor.gridlist[1], sw, 2) triggerServerEvent( 'box1', localPlayer,sa,as) end end end ) addEvent( 'UPDATEGRIDLIST', true ) addEventHandler( 'UPDATEGRIDLIST', root, function() guiGridListClear(GUIEditor.gridlist[1]) end ) function Opens ( ) guiSetVisible ( GUIEditor.window[2],true ) showCursor ( true ) end addEvent ( "Open", true ) addEventHandler ( "Open", root, Opens ) Link to comment
فاّرس Posted July 8, 2016 Share Posted July 8, 2016 ^ حبيبي كودك مليان اغلاط والله, انت شغل الديبوق وشوف الاخطاء اللي تطلع لك وحاول تصلحها عندك اقواس وكم شغله ناقصه. Link to comment
Wleed1998 Posted July 8, 2016 Author Share Posted July 8, 2016 ^ حبيبي كودك مليان اغلاط والله, انت شغل الديبوق وشوف الاخطاء اللي تطلع لك وحاول تصلحها عندك اقواس وكم شغله ناقصه. اوك ي الغالي بحل ان شاء الله كل شيء بي الدي بوق Link to comment
Wleed1998 Posted July 8, 2016 Author Share Posted July 8, 2016 ^ حبيبي كودك مليان اغلاط والله, انت شغل الديبوق وشوف الاخطاء اللي تطلع لك وحاول تصلحها عندك اقواس وكم شغله ناقصه. اوك ي الغالي بحل ان شاء الله كل شيء بي الدي بوق ممكن سكايبي اخي Link to comment
فاّرس Posted July 8, 2016 Share Posted July 8, 2016 خذ ذي اللوحه بدون اخطاء عدل باقي الكود عليها وشوف الديبوق .. GUIEditor = { memo = {}, edit = {}, window = {}, checkbox = {}, label = {}, button = {}, } GUIEditor.window[1] = guiCreateWindow(210, 66, 449, 493, "", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) GUIEditor.memo[1] = guiCreateMemo(9, 25, 421, 184, "", false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(0, 209, 442, 20, "--------------------------------------------------------------", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[2], "sa-header") guiLabelSetColor(GUIEditor.label[2], 195, 0, 0) GUIEditor.checkbox[1] = guiCreateCheckBox(29, 242, 110, 22, "سآعات", false, false, GUIEditor.window[1]) guiSetProperty(GUIEditor.checkbox[1], "NormalTextColour", "FFC30000") GUIEditor.checkbox[2] = guiCreateCheckBox(172, 243, 110, 22, "تاج", false, false, GUIEditor.window[1]) guiSetProperty(GUIEditor.checkbox[2], "NormalTextColour", "FFB4GUIEditor.checkbox[4]0A") GUIEditor.checkbox[3] = guiCreateCheckBox(310, 243, 110, 22, "قريبآ", false, false, GUIEditor.window[1]) guiSetProperty(GUIEditor.checkbox[3], "NormalTextColour", "FF05BB92") GUIEditor.label[3] = guiCreateLabel(44, 279, 390, 24, "يرجى تحديد طريقة الدفه", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[3], "default-bold-small") guiLabelSetColor(GUIEditor.label[3], 146, 157, 30) GUIEditor.checkbox[4] = guiCreateCheckBox(36, 314, 98, 23, "سواء", false, false, GUIEditor.window[1]) guiSetProperty(GUIEditor.checkbox[4], "NormalTextColour", "FF873671") GUIEditor.checkbox[5] = guiCreateCheckBox(174, 314, 98, 23, "كآش يو", false, false, GUIEditor.window[1]) guiSetProperty(GUIEditor.checkbox[2], "NormalTextColour", "FFA81456") GUIEditor.checkbox[6] = guiCreateCheckBox(320, 314, 98, 23, "موبايل", false, false, GUIEditor.window[1]) guiSetProperty(GUIEditor.checkbox[6], "NormalTextColour", "FF2AC002") GUIEditor.label[4] = guiCreateLabel(30, 348, 411, 30, "يرجى عدم ترك الفراغات خآليه", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[4], "default-bold-small") guiLabelSetColor(GUIEditor.label[4], 193, 187, 0) GUIEditor.checkbox[1] = guiCreateEdit(39, 380, 149, 27, "", false, GUIEditor.window[1]) GUIEditor.edit[1] = guiCreateEdit(40, 417, 149, 27, "", false, GUIEditor.window[1]) GUIEditor.edit[2] = guiCreateEdit(194, 380, 149, 27, "", false, GUIEditor.window[1]) GUIEditor.edit[3] = guiCreateEdit(194, 417, 149, 27, "", false, GUIEditor.window[1]) GUIEditor.edit[4] = guiCreateEdit(39, 456, 149, 27, "", false, GUIEditor.window[1]) GUIEditor.edit[5] = guiCreateEdit(194, 456, 149, 27, "", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(344, 383, 96, 101, "آرسآل المعلومات", false, GUIEditor.window[1]) # ماعندي سكايب للأسف : ( Link to comment
Wleed1998 Posted July 8, 2016 Author Share Posted July 8, 2016 خذ ذي اللوحه بدون اخطاء عدل باقي الكود عليها وشوف الديبوق .. GUIEditor = { memo = {}, edit = {}, window = {}, checkbox = {}, label = {}, button = {}, } GUIEditor.window[1] = guiCreateWindow(210, 66, 449, 493, "", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) GUIEditor.memo[1] = guiCreateMemo(9, 25, 421, 184, "", false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(0, 209, 442, 20, "--------------------------------------------------------------", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[2], "sa-header") guiLabelSetColor(GUIEditor.label[2], 195, 0, 0) GUIEditor.checkbox[1] = guiCreateCheckBox(29, 242, 110, 22, "سآعات", false, false, GUIEditor.window[1]) guiSetProperty(GUIEditor.checkbox[1], "NormalTextColour", "FFC30000") GUIEditor.checkbox[2] = guiCreateCheckBox(172, 243, 110, 22, "تاج", false, false, GUIEditor.window[1]) guiSetProperty(GUIEditor.checkbox[2], "NormalTextColour", "FFB4GUIEditor.checkbox[4]0A") GUIEditor.checkbox[3] = guiCreateCheckBox(310, 243, 110, 22, "قريبآ", false, false, GUIEditor.window[1]) guiSetProperty(GUIEditor.checkbox[3], "NormalTextColour", "FF05BB92") GUIEditor.label[3] = guiCreateLabel(44, 279, 390, 24, "يرجى تحديد طريقة الدفه", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[3], "default-bold-small") guiLabelSetColor(GUIEditor.label[3], 146, 157, 30) GUIEditor.checkbox[4] = guiCreateCheckBox(36, 314, 98, 23, "سواء", false, false, GUIEditor.window[1]) guiSetProperty(GUIEditor.checkbox[4], "NormalTextColour", "FF873671") GUIEditor.checkbox[5] = guiCreateCheckBox(174, 314, 98, 23, "كآش يو", false, false, GUIEditor.window[1]) guiSetProperty(GUIEditor.checkbox[2], "NormalTextColour", "FFA81456") GUIEditor.checkbox[6] = guiCreateCheckBox(320, 314, 98, 23, "موبايل", false, false, GUIEditor.window[1]) guiSetProperty(GUIEditor.checkbox[6], "NormalTextColour", "FF2AC002") GUIEditor.label[4] = guiCreateLabel(30, 348, 411, 30, "يرجى عدم ترك الفراغات خآليه", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[4], "default-bold-small") guiLabelSetColor(GUIEditor.label[4], 193, 187, 0) GUIEditor.checkbox[1] = guiCreateEdit(39, 380, 149, 27, "", false, GUIEditor.window[1]) GUIEditor.edit[1] = guiCreateEdit(40, 417, 149, 27, "", false, GUIEditor.window[1]) GUIEditor.edit[2] = guiCreateEdit(194, 380, 149, 27, "", false, GUIEditor.window[1]) GUIEditor.edit[3] = guiCreateEdit(194, 417, 149, 27, "", false, GUIEditor.window[1]) GUIEditor.edit[4] = guiCreateEdit(39, 456, 149, 27, "", false, GUIEditor.window[1]) GUIEditor.edit[5] = guiCreateEdit(194, 456, 149, 27, "", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(344, 383, 96, 101, "آرسآل المعلومات", false, GUIEditor.window[1]) # ماعندي سكايب للأسف : ( تسسلمءء مآقصرت اخووي يعطيك العافيه يلا بروح اشتغل فيه Link to comment
Wleed1998 Posted July 8, 2016 Author Share Posted July 8, 2016 خذ ذي اللوحه بدون اخطاء عدل باقي الكود عليها وشوف الديبوق .. GUIEditor = { memo = {}, edit = {}, window = {}, checkbox = {}, label = {}, button = {}, } GUIEditor.window[1] = guiCreateWindow(210, 66, 449, 493, "", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) GUIEditor.memo[1] = guiCreateMemo(9, 25, 421, 184, "", false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(0, 209, 442, 20, "--------------------------------------------------------------", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[2], "sa-header") guiLabelSetColor(GUIEditor.label[2], 195, 0, 0) GUIEditor.checkbox[1] = guiCreateCheckBox(29, 242, 110, 22, "سآعات", false, false, GUIEditor.window[1]) guiSetProperty(GUIEditor.checkbox[1], "NormalTextColour", "FFC30000") GUIEditor.checkbox[2] = guiCreateCheckBox(172, 243, 110, 22, "تاج", false, false, GUIEditor.window[1]) guiSetProperty(GUIEditor.checkbox[2], "NormalTextColour", "FFB4GUIEditor.checkbox[4]0A") GUIEditor.checkbox[3] = guiCreateCheckBox(310, 243, 110, 22, "قريبآ", false, false, GUIEditor.window[1]) guiSetProperty(GUIEditor.checkbox[3], "NormalTextColour", "FF05BB92") GUIEditor.label[3] = guiCreateLabel(44, 279, 390, 24, "يرجى تحديد طريقة الدفه", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[3], "default-bold-small") guiLabelSetColor(GUIEditor.label[3], 146, 157, 30) GUIEditor.checkbox[4] = guiCreateCheckBox(36, 314, 98, 23, "سواء", false, false, GUIEditor.window[1]) guiSetProperty(GUIEditor.checkbox[4], "NormalTextColour", "FF873671") GUIEditor.checkbox[5] = guiCreateCheckBox(174, 314, 98, 23, "كآش يو", false, false, GUIEditor.window[1]) guiSetProperty(GUIEditor.checkbox[2], "NormalTextColour", "FFA81456") GUIEditor.checkbox[6] = guiCreateCheckBox(320, 314, 98, 23, "موبايل", false, false, GUIEditor.window[1]) guiSetProperty(GUIEditor.checkbox[6], "NormalTextColour", "FF2AC002") GUIEditor.label[4] = guiCreateLabel(30, 348, 411, 30, "يرجى عدم ترك الفراغات خآليه", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[4], "default-bold-small") guiLabelSetColor(GUIEditor.label[4], 193, 187, 0) GUIEditor.checkbox[1] = guiCreateEdit(39, 380, 149, 27, "", false, GUIEditor.window[1]) GUIEditor.edit[1] = guiCreateEdit(40, 417, 149, 27, "", false, GUIEditor.window[1]) GUIEditor.edit[2] = guiCreateEdit(194, 380, 149, 27, "", false, GUIEditor.window[1]) GUIEditor.edit[3] = guiCreateEdit(194, 417, 149, 27, "", false, GUIEditor.window[1]) GUIEditor.edit[4] = guiCreateEdit(39, 456, 149, 27, "", false, GUIEditor.window[1]) GUIEditor.edit[5] = guiCreateEdit(194, 456, 149, 27, "", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(344, 383, 96, 101, "آرسآل المعلومات", false, GUIEditor.window[1]) # ماعندي سكايب للأسف : ( تسسلمءء مآقصرت اخووي يعطيك العافيه يلا بروح اشتغل فيه اخوي عدلت كل شيء وظهررت الوحه و لوحة الادآره كمان تظهر لكن لم اكتب في الاديت رقم + احدد من شيك بوكس و اضرب البوتن حق الارسال مايجي شيء المحآوله كلنت GUIEditor = { memo = {}, edit = {}, window = {}, checkbox = {}, label = {}, button = {}, } GUIEditor.window[1] = guiCreateWindow(210, 66, 449, 493, "", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) GUIEditor.memo[1] = guiCreateMemo(9, 25, 421, 184, "", false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(0, 209, 442, 20, "--------------------------------------------------------------", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[2], "sa-header") guiLabelSetColor(GUIEditor.label[2], 195, 0, 0) GUIEditor.checkbox[1] = guiCreateCheckBox(29, 242, 110, 22, "سآعات", false, false, GUIEditor.window[1]) guiSetProperty(GUIEditor.checkbox[1], "NormalTextColour", "FFC30000") GUIEditor.checkbox[2] = guiCreateCheckBox(172, 243, 110, 22, "تاج", false, false, GUIEditor.window[1]) guiSetProperty(GUIEditor.checkbox[2], "NormalTextColour", "FFB4GUIEditor.checkbox[4]0A") GUIEditor.checkbox[3] = guiCreateCheckBox(310, 243, 110, 22, "قريبآ", false, false, GUIEditor.window[1]) guiSetProperty(GUIEditor.checkbox[3], "NormalTextColour", "FF05BB92") GUIEditor.label[3] = guiCreateLabel(44, 279, 390, 24, "يرجى تحديد طريقة الدفه", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[3], "default-bold-small") guiLabelSetColor(GUIEditor.label[3], 146, 157, 30) GUIEditor.checkbox[4] = guiCreateCheckBox(36, 314, 98, 23, "سواء", false, false, GUIEditor.window[1]) guiSetProperty(GUIEditor.checkbox[4], "NormalTextColour", "FF873671") GUIEditor.checkbox[5] = guiCreateCheckBox(174, 314, 98, 23, "كآش يو", false, false, GUIEditor.window[1]) guiSetProperty(GUIEditor.checkbox[2], "NormalTextColour", "FFA81456") GUIEditor.checkbox[6] = guiCreateCheckBox(320, 314, 98, 23, "موبايل", false, false, GUIEditor.window[1]) guiSetProperty(GUIEditor.checkbox[6], "NormalTextColour", "FF2AC002") GUIEditor.label[4] = guiCreateLabel(30, 348, 411, 30, "يرجى عدم ترك الفراغات خآليه", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[4], "default-bold-small") guiLabelSetColor(GUIEditor.label[4], 193, 187, 0) GUIEditor.checkbox[1] = guiCreateEdit(39, 380, 149, 27, "", false, GUIEditor.window[1]) GUIEditor.edit[1] = guiCreateEdit(40, 417, 149, 27, "", false, GUIEditor.window[1]) GUIEditor.edit[2] = guiCreateEdit(194, 380, 149, 27, "", false, GUIEditor.window[1]) GUIEditor.edit[3] = guiCreateEdit(194, 417, 149, 27, "", false, GUIEditor.window[1]) GUIEditor.edit[4] = guiCreateEdit(39, 456, 149, 27, "", false, GUIEditor.window[1]) GUIEditor.edit[5] = guiCreateEdit(194, 456, 149, 27, "", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(344, 383, 96, 101, "آرسآل المعلومات", false, GUIEditor.window[1]) bindKey("F6","down", function () guiSetVisible(GUIEditor.window[1],not guiGetVisible(GUIEditor.window[1])) showCursor(guiGetVisible(GUIEditor.window[1])) end ) addEventHandler("onClientGUIClick",root,function () if source == GUIEditor.button[1] then if (guiCheckBoxGetSelected(GUIEditor.checkbox[1]) == false and guiCheckBoxGetSelected(GUIEditor.checkbox[2]) == false and guiCheckBoxGetSelected(GUIEditor.checkbox[3]) == false) then outputChatBox('* خطأ : #FFFFFF يجب ان تقوم بتحديد طريقة الدفع لأكمال عملية الشراء بنجاح !', 255, 0, 0, true) return end local getItemSelected = guiGridListGetItemText(GUIEditor.gridlist[1], guiGridListGetSelectedItem(GUIEditor.gridlist[1]), 1) if (not getItemSelected or getItemSelected == "") then outputChatBox('* خطأ : #FFFFFF يجب ان تقوم بتحديد نوع وخطة الشيء المراد شرائه !', 255, 0, 0, true) return end local aa = GUIEditor.checkbox[1] or GUIEditor.checkbox[2] or GUIEditor.checkbox[3] if source == aa then item = guiCheckBoxGetSelected(aa) text = guiComboBoxGetItemText(aa, item) -------------------------------------------------------------------------- if (guiCheckBoxGetSelected(GUIEditor.checkbox[4]) == false and guiCheckBoxGetSelected(GUIEditor.checkbox[5]) == false and guiCheckBoxGetSelected(GUIEditor.checkbox[6]) == false) then outputChatBox('* خطأ : #FFFFFF يجب ان تقوم بتحديد طريقة الدفع لأكمال عملية الشراء بنجاح !', 255, 0, 0, true) return end local getItemSelected = guiGridListGetItemText(GUIEditor.gridlist[1], guiGridListGetSelectedItem(GUIEditor.gridlist[1]), 1) if (not getItemSelected or getItemSelected == "") then outputChatBox('* خطأ : #FFFFFF يجب ان تقوم بتحديد نوع وخطة الشيء المراد شرائه !', 255, 0, 0, true) return end local bb = GUIEditor.checkbox[4] or GUIEditor.checkbox[5] or GUIEditor.checkbox[6] item1 = guiCheckBoxGetSelected(bb) text1 = guiComboBoxGetItemText(bb, item1) triggerServerEvent("box", localPlayer,item,text,item1,text1 ) ------------------------------------------------------------------------------- elseif (GUIEditor.edit[1] and GUIEditor.edit[2] and GUIEditor.edit[3] and GUIEditor.edit[4] and GUIEditor.edit[5] and GUIEditor.edit[6] ~= "" )then if (not tonumber(GUIEditor.edit[1]) and not tonumber(GUIEditor.edit[2]) and not tonumber(GUIEditor.edit[3]) and not tonumber(GUIEditor.edit[4]) and not tonumber(GUIEditor.edit[5]) and not tonumber(GUIEditor.edit[6])) then outputChatBox('* خطأ : #FFFFFF يرجى كتابة رقم بطاقة صحيح لتتم عملية ارسال المعلومات بنجاح !', 255, 0, 0, true) return end abc1 = guiGetText(GUIEditor.edit[1]) local a11 = guiGetText(GUIEditor.edit[1]) local b11 = guiGetText(GUIEditor.edit[2]) local c11 = guiGetText(GUIEditor.edit[3]) local a22 = guiGetText(GUIEditor.edit[4]) local b22 = guiGetText(GUIEditor.edit[5]) local c22 = guiGetText(GUIEditor.edit[6]) triggerServerEvent("box2", localPlayer,abc1,a11,b11,c11,a22,b22,c22 ) -------------------------------------------------------------------------------- end end end ) ----------------------- GUIEditor = { gridlist = {}, button = {}, window = {}, } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[2] = guiCreateWindow(198, 107, 468, 447, "", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible ( GUIEditor.window[2],false ) GUIEditor.gridlist[1] = guiCreateGridList(9, 20, 450, 331, false, GUIEditor.window[2]) guiGridListAddColumn(GUIEditor.gridlist[1], "اسم الاعب", 0.2) guiGridListAddColumn(GUIEditor.gridlist[1], "نوع المشترى", 0.2) guiGridListAddColumn(GUIEditor.gridlist[1], "بآقة المشترى", 0.2) guiGridListAddColumn(GUIEditor.gridlist[1], "معلومات المشترى", 0.2) ss = guiCreateButton(153, 374, 147, 33, "حذف", false, GUIEditor.window[2]) end ) ------------------------------ addEvent( 'boxc', true ) addEventHandler( 'boxc', root, function (pla,item,text,item1,text1) local row = guiGridListAddRow (GUIEditor.gridlist[1]) guiGridListSetItemText (GUIEditor.gridlist[1],row,1,pla,false,false) guiGridListSetItemText (GUIEditor.gridlist[1],row,2,text,false,false) guiGridListSetItemText (GUIEditor.gridlist[1],row,3,text1,false,false) end ) addEvent( 'boxc1', true ) addEventHandler( 'boxc1', root, function (abc1,a11,b11,c11,a22,b22,c22) local row = guiGridListAddRow (GUIEditor.gridlist[1]) guiGridListSetItemText (GUIEditor.gridlist[1],row,4,text1,false,false) end ) addEventHandler("onClientGUIClick",root, function() if source == sss then local sw = guiGridListGetSelectedItem(GUIEditor.gridlist[1]) if (sw == -1) then outputChatBox( '* خطأ : #FFFFFF لم تقم بتحديد مشتري من القائمة !', 255, 0, 0, true) return end local sa = guiGridListGetItemData(GUIEditor.gridlist[1], sw, 1) local as = guiGridListGetItemData(GUIEditor.gridlist[1], sw, 2) triggerServerEvent( 'box1', localPlayer,sa,as) end end ) addEvent( 'UPDATEGRIDLIST', true ) addEventHandler( 'UPDATEGRIDLIST', root, function() guiGridListClear(GUIEditor.gridlist[1]) end ) function Opens ( ) guiSetVisible ( GUIEditor.window[2],true ) showCursor ( true ) end addEvent ( "Open", true ) addEventHandler ( "Open", root, Opens ) سيرفر executeSQLQuery( ' CREATE TABLE IF NOT EXISTS `Boxs` (pla,item,text,item1,text1,abc,a11,b11,c11,a22,b22,c22) ' ) addEvent( 'box', true ) addEventHandler( 'box', root, function (item,text,item1,text1) pla = getPlayerName(source) triggerClientEvent(source"boxc",source,pla,item,text,item1,text1) end ) addEvent( 'box1', true ) addEventHandler( 'box1', root, function (as,sa) local checkPlayer = executeSQLQuery( ' SELECT * FROM `Boxs` WHERE pla=?', sa ) if (checkPlayer) then end executeSQLQuery( ' DELETE FROM `Boxs` WHERE pla=? ', as ) outputChatBox('* إدارة المشتريات : #FFFFFF تم حذف المشتري من القائمة بنجاح !', source, 0, 255, 0, true) triggerClientEvent( 'UPDATEGRIDLIST', source) end ) addEvent( 'box2', true ) addEventHandler( 'box2', root, function (abc1,a11,b11,c11,a22,b22,c22) triggerClientEvent(source"boxc1",source,abc1,a11,b11,c11,a22,b22,c22) end ) addCommandHandler ( "ss", function ( p ) local acc = getPlayerAccount(p) if not isGuestAccount ( acc ) then if isObjectInACLGroup("user." .. getAccountName(acc), aclGetGroup("Admin")) then triggerClientEvent ( p, "Open", resourceRoot ) end end end ) Link to comment
Wleed1998 Posted July 9, 2016 Author Share Posted July 9, 2016 خذ ذي اللوحه بدون اخطاء عدل باقي الكود عليها وشوف الديبوق .. GUIEditor = { memo = {}, edit = {}, window = {}, checkbox = {}, label = {}, button = {}, } GUIEditor.window[1] = guiCreateWindow(210, 66, 449, 493, "", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) GUIEditor.memo[1] = guiCreateMemo(9, 25, 421, 184, "", false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(0, 209, 442, 20, "--------------------------------------------------------------", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[2], "sa-header") guiLabelSetColor(GUIEditor.label[2], 195, 0, 0) GUIEditor.checkbox[1] = guiCreateCheckBox(29, 242, 110, 22, "سآعات", false, false, GUIEditor.window[1]) guiSetProperty(GUIEditor.checkbox[1], "NormalTextColour", "FFC30000") GUIEditor.checkbox[2] = guiCreateCheckBox(172, 243, 110, 22, "تاج", false, false, GUIEditor.window[1]) guiSetProperty(GUIEditor.checkbox[2], "NormalTextColour", "FFB4GUIEditor.checkbox[4]0A") GUIEditor.checkbox[3] = guiCreateCheckBox(310, 243, 110, 22, "قريبآ", false, false, GUIEditor.window[1]) guiSetProperty(GUIEditor.checkbox[3], "NormalTextColour", "FF05BB92") GUIEditor.label[3] = guiCreateLabel(44, 279, 390, 24, "يرجى تحديد طريقة الدفه", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[3], "default-bold-small") guiLabelSetColor(GUIEditor.label[3], 146, 157, 30) GUIEditor.checkbox[4] = guiCreateCheckBox(36, 314, 98, 23, "سواء", false, false, GUIEditor.window[1]) guiSetProperty(GUIEditor.checkbox[4], "NormalTextColour", "FF873671") GUIEditor.checkbox[5] = guiCreateCheckBox(174, 314, 98, 23, "كآش يو", false, false, GUIEditor.window[1]) guiSetProperty(GUIEditor.checkbox[2], "NormalTextColour", "FFA81456") GUIEditor.checkbox[6] = guiCreateCheckBox(320, 314, 98, 23, "موبايل", false, false, GUIEditor.window[1]) guiSetProperty(GUIEditor.checkbox[6], "NormalTextColour", "FF2AC002") GUIEditor.label[4] = guiCreateLabel(30, 348, 411, 30, "يرجى عدم ترك الفراغات خآليه", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[4], "default-bold-small") guiLabelSetColor(GUIEditor.label[4], 193, 187, 0) GUIEditor.checkbox[1] = guiCreateEdit(39, 380, 149, 27, "", false, GUIEditor.window[1]) GUIEditor.edit[1] = guiCreateEdit(40, 417, 149, 27, "", false, GUIEditor.window[1]) GUIEditor.edit[2] = guiCreateEdit(194, 380, 149, 27, "", false, GUIEditor.window[1]) GUIEditor.edit[3] = guiCreateEdit(194, 417, 149, 27, "", false, GUIEditor.window[1]) GUIEditor.edit[4] = guiCreateEdit(39, 456, 149, 27, "", false, GUIEditor.window[1]) GUIEditor.edit[5] = guiCreateEdit(194, 456, 149, 27, "", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(344, 383, 96, 101, "آرسآل المعلومات", false, GUIEditor.window[1]) # ماعندي سكايب للأسف : ( تسسلمءء مآقصرت اخووي يعطيك العافيه يلا بروح اشتغل فيه اخوي عدلت كل شيء وظهررت الوحه و لوحة الادآره كمان تظهر لكن لم اكتب في الاديت رقم + احدد من شيك بوكس و اضرب البوتن حق الارسال مايجي شيء المحآوله كلنت GUIEditor = { memo = {}, edit = {}, window = {}, checkbox = {}, label = {}, button = {}, } GUIEditor.window[1] = guiCreateWindow(210, 66, 449, 493, "", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 1.00) GUIEditor.memo[1] = guiCreateMemo(9, 25, 421, 184, "", false, GUIEditor.window[1]) GUIEditor.label[2] = guiCreateLabel(0, 209, 442, 20, "--------------------------------------------------------------", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[2], "sa-header") guiLabelSetColor(GUIEditor.label[2], 195, 0, 0) GUIEditor.checkbox[1] = guiCreateCheckBox(29, 242, 110, 22, "سآعات", false, false, GUIEditor.window[1]) guiSetProperty(GUIEditor.checkbox[1], "NormalTextColour", "FFC30000") GUIEditor.checkbox[2] = guiCreateCheckBox(172, 243, 110, 22, "تاج", false, false, GUIEditor.window[1]) guiSetProperty(GUIEditor.checkbox[2], "NormalTextColour", "FFB4GUIEditor.checkbox[4]0A") GUIEditor.checkbox[3] = guiCreateCheckBox(310, 243, 110, 22, "قريبآ", false, false, GUIEditor.window[1]) guiSetProperty(GUIEditor.checkbox[3], "NormalTextColour", "FF05BB92") GUIEditor.label[3] = guiCreateLabel(44, 279, 390, 24, "يرجى تحديد طريقة الدفه", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[3], "default-bold-small") guiLabelSetColor(GUIEditor.label[3], 146, 157, 30) GUIEditor.checkbox[4] = guiCreateCheckBox(36, 314, 98, 23, "سواء", false, false, GUIEditor.window[1]) guiSetProperty(GUIEditor.checkbox[4], "NormalTextColour", "FF873671") GUIEditor.checkbox[5] = guiCreateCheckBox(174, 314, 98, 23, "كآش يو", false, false, GUIEditor.window[1]) guiSetProperty(GUIEditor.checkbox[2], "NormalTextColour", "FFA81456") GUIEditor.checkbox[6] = guiCreateCheckBox(320, 314, 98, 23, "موبايل", false, false, GUIEditor.window[1]) guiSetProperty(GUIEditor.checkbox[6], "NormalTextColour", "FF2AC002") GUIEditor.label[4] = guiCreateLabel(30, 348, 411, 30, "يرجى عدم ترك الفراغات خآليه", false, GUIEditor.window[1]) guiSetFont(GUIEditor.label[4], "default-bold-small") guiLabelSetColor(GUIEditor.label[4], 193, 187, 0) GUIEditor.checkbox[1] = guiCreateEdit(39, 380, 149, 27, "", false, GUIEditor.window[1]) GUIEditor.edit[1] = guiCreateEdit(40, 417, 149, 27, "", false, GUIEditor.window[1]) GUIEditor.edit[2] = guiCreateEdit(194, 380, 149, 27, "", false, GUIEditor.window[1]) GUIEditor.edit[3] = guiCreateEdit(194, 417, 149, 27, "", false, GUIEditor.window[1]) GUIEditor.edit[4] = guiCreateEdit(39, 456, 149, 27, "", false, GUIEditor.window[1]) GUIEditor.edit[5] = guiCreateEdit(194, 456, 149, 27, "", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(344, 383, 96, 101, "آرسآل المعلومات", false, GUIEditor.window[1]) bindKey("F6","down", function () guiSetVisible(GUIEditor.window[1],not guiGetVisible(GUIEditor.window[1])) showCursor(guiGetVisible(GUIEditor.window[1])) end ) addEventHandler("onClientGUIClick",root,function () if source == GUIEditor.button[1] then if (guiCheckBoxGetSelected(GUIEditor.checkbox[1]) == false and guiCheckBoxGetSelected(GUIEditor.checkbox[2]) == false and guiCheckBoxGetSelected(GUIEditor.checkbox[3]) == false) then outputChatBox('* خطأ : #FFFFFF يجب ان تقوم بتحديد طريقة الدفع لأكمال عملية الشراء بنجاح !', 255, 0, 0, true) return end local getItemSelected = guiGridListGetItemText(GUIEditor.gridlist[1], guiGridListGetSelectedItem(GUIEditor.gridlist[1]), 1) if (not getItemSelected or getItemSelected == "") then outputChatBox('* خطأ : #FFFFFF يجب ان تقوم بتحديد نوع وخطة الشيء المراد شرائه !', 255, 0, 0, true) return end local aa = GUIEditor.checkbox[1] or GUIEditor.checkbox[2] or GUIEditor.checkbox[3] if source == aa then item = guiCheckBoxGetSelected(aa) text = guiComboBoxGetItemText(aa, item) -------------------------------------------------------------------------- if (guiCheckBoxGetSelected(GUIEditor.checkbox[4]) == false and guiCheckBoxGetSelected(GUIEditor.checkbox[5]) == false and guiCheckBoxGetSelected(GUIEditor.checkbox[6]) == false) then outputChatBox('* خطأ : #FFFFFF يجب ان تقوم بتحديد طريقة الدفع لأكمال عملية الشراء بنجاح !', 255, 0, 0, true) return end local getItemSelected = guiGridListGetItemText(GUIEditor.gridlist[1], guiGridListGetSelectedItem(GUIEditor.gridlist[1]), 1) if (not getItemSelected or getItemSelected == "") then outputChatBox('* خطأ : #FFFFFF يجب ان تقوم بتحديد نوع وخطة الشيء المراد شرائه !', 255, 0, 0, true) return end local bb = GUIEditor.checkbox[4] or GUIEditor.checkbox[5] or GUIEditor.checkbox[6] item1 = guiCheckBoxGetSelected(bb) text1 = guiComboBoxGetItemText(bb, item1) triggerServerEvent("box", localPlayer,item,text,item1,text1 ) ------------------------------------------------------------------------------- elseif (GUIEditor.edit[1] and GUIEditor.edit[2] and GUIEditor.edit[3] and GUIEditor.edit[4] and GUIEditor.edit[5] and GUIEditor.edit[6] ~= "" )then if (not tonumber(GUIEditor.edit[1]) and not tonumber(GUIEditor.edit[2]) and not tonumber(GUIEditor.edit[3]) and not tonumber(GUIEditor.edit[4]) and not tonumber(GUIEditor.edit[5]) and not tonumber(GUIEditor.edit[6])) then outputChatBox('* خطأ : #FFFFFF يرجى كتابة رقم بطاقة صحيح لتتم عملية ارسال المعلومات بنجاح !', 255, 0, 0, true) return end abc1 = guiGetText(GUIEditor.edit[1]) local a11 = guiGetText(GUIEditor.edit[1]) local b11 = guiGetText(GUIEditor.edit[2]) local c11 = guiGetText(GUIEditor.edit[3]) local a22 = guiGetText(GUIEditor.edit[4]) local b22 = guiGetText(GUIEditor.edit[5]) local c22 = guiGetText(GUIEditor.edit[6]) triggerServerEvent("box2", localPlayer,abc1,a11,b11,c11,a22,b22,c22 ) -------------------------------------------------------------------------------- end end end ) ----------------------- GUIEditor = { gridlist = {}, button = {}, window = {}, } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[2] = guiCreateWindow(198, 107, 468, 447, "", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible ( GUIEditor.window[2],false ) GUIEditor.gridlist[1] = guiCreateGridList(9, 20, 450, 331, false, GUIEditor.window[2]) guiGridListAddColumn(GUIEditor.gridlist[1], "اسم الاعب", 0.2) guiGridListAddColumn(GUIEditor.gridlist[1], "نوع المشترى", 0.2) guiGridListAddColumn(GUIEditor.gridlist[1], "بآقة المشترى", 0.2) guiGridListAddColumn(GUIEditor.gridlist[1], "معلومات المشترى", 0.2) ss = guiCreateButton(153, 374, 147, 33, "حذف", false, GUIEditor.window[2]) end ) ------------------------------ addEvent( 'boxc', true ) addEventHandler( 'boxc', root, function (pla,item,text,item1,text1) local row = guiGridListAddRow (GUIEditor.gridlist[1]) guiGridListSetItemText (GUIEditor.gridlist[1],row,1,pla,false,false) guiGridListSetItemText (GUIEditor.gridlist[1],row,2,text,false,false) guiGridListSetItemText (GUIEditor.gridlist[1],row,3,text1,false,false) end ) addEvent( 'boxc1', true ) addEventHandler( 'boxc1', root, function (abc1,a11,b11,c11,a22,b22,c22) local row = guiGridListAddRow (GUIEditor.gridlist[1]) guiGridListSetItemText (GUIEditor.gridlist[1],row,4,text1,false,false) end ) addEventHandler("onClientGUIClick",root, function() if source == sss then local sw = guiGridListGetSelectedItem(GUIEditor.gridlist[1]) if (sw == -1) then outputChatBox( '* خطأ : #FFFFFF لم تقم بتحديد مشتري من القائمة !', 255, 0, 0, true) return end local sa = guiGridListGetItemData(GUIEditor.gridlist[1], sw, 1) local as = guiGridListGetItemData(GUIEditor.gridlist[1], sw, 2) triggerServerEvent( 'box1', localPlayer,sa,as) end end ) addEvent( 'UPDATEGRIDLIST', true ) addEventHandler( 'UPDATEGRIDLIST', root, function() guiGridListClear(GUIEditor.gridlist[1]) end ) function Opens ( ) guiSetVisible ( GUIEditor.window[2],true ) showCursor ( true ) end addEvent ( "Open", true ) addEventHandler ( "Open", root, Opens ) سيرفر executeSQLQuery( ' CREATE TABLE IF NOT EXISTS `Boxs` (pla,item,text,item1,text1,abc,a11,b11,c11,a22,b22,c22) ' ) addEvent( 'box', true ) addEventHandler( 'box', root, function (item,text,item1,text1) pla = getPlayerName(source) triggerClientEvent(source"boxc",source,pla,item,text,item1,text1) end ) addEvent( 'box1', true ) addEventHandler( 'box1', root, function (as,sa) local checkPlayer = executeSQLQuery( ' SELECT * FROM `Boxs` WHERE pla=?', sa ) if (checkPlayer) then end executeSQLQuery( ' DELETE FROM `Boxs` WHERE pla=? ', as ) outputChatBox('* إدارة المشتريات : #FFFFFF تم حذف المشتري من القائمة بنجاح !', source, 0, 255, 0, true) triggerClientEvent( 'UPDATEGRIDLIST', source) end ) addEvent( 'box2', true ) addEventHandler( 'box2', root, function (abc1,a11,b11,c11,a22,b22,c22) triggerClientEvent(source"boxc1",source,abc1,a11,b11,c11,a22,b22,c22) end ) addCommandHandler ( "ss", function ( p ) local acc = getPlayerAccount(p) if not isGuestAccount ( acc ) then if isObjectInACLGroup("user." .. getAccountName(acc), aclGetGroup("Admin")) then triggerClientEvent ( p, "Open", resourceRoot ) end end end ) ياجمآعه مافيا اخطاء الى بي كود فتح الوحه الدي بوق مابين اخطاء كله صلحته الى حق فتح الوحه bindKey("F6","down", function () guiSetVisible(GUIEditor.window[1],not guiGetVisible(GUIEditor.window[1])) showCursor(guiGetVisible(GUIEditor.window[1])) end ) Link to comment
Wleed1998 Posted July 9, 2016 Author Share Posted July 9, 2016 هل يوجد احد يقوم بتوضيح اخطائي او التحققات او الاشياء الباقيه وشكرا Link to comment
Wleed1998 Posted July 10, 2016 Author Share Posted July 10, 2016 هل يوجد احديقوم بتوضيح اخطائي او التحققات او الاشياء الباقيه وشكرا ردو ي مبرمجين 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