Wleed1998 Posted August 20, 2016 Share Posted August 20, 2016 addEventHandler ( "onClientGUIClick", root, function () if ( source == GUIEditor.button[1] ) then if (guiCheckBoxGetSelected(GUIEditor.checkbox[1]) == false and guiCheckBoxGetSelected(GUIEditor.checkbox[2]) == false ) then outputChatBox(' يجب ان تقوم بتحديد طريقة الدفع لأكمال عملية الشراء بنجاح !', 255, 0, 0, true) return end ID1 = guiGetText(GUIEditor.checkbox[1]) ID2 = guiGetText(GUIEditor.checkbox[2]) triggerServerEvent( "NewP", localPlayer,ID1,ID2) ----------------------------- a1 = guiGetText(GUIEditor.edit[1]) a2 = guiGetText(GUIEditor.edit[2]) a3 = guiGetText(GUIEditor.edit[3]) a4 = guiGetText(GUIEditor.edit[4]) a5 = guiGetText(GUIEditor.edit[5]) a6 = guiGetText(GUIEditor.edit[6]) if ( not tonumber(a2) and not tonumber(a3) and not tonumber(a4) and not tonumber(a5) and not tonumber(a6)) then outputChatBox('#20ffff Error * #404040- [#ff0000 يرجى كتابة رقم بطاقة صحيح لتتم عملية ارسال المعلومات بنجاح #404040 ] -', 255, 0, 0, true) return end if ((a2 ~= "") and not tonumber(a2) or (a3 ~= "") and not tonumber(a3) or (a4 ~= "") and not tonumber(a4) or (a5 ~= "") and not tonumber(a5) or (a6 ~= "") and not tonumber(a6)) then outputChatBox('#20ffff Error * #404040- [#ff0000 يرجى كتابة رقم بطاقة صحيح لتتم عملية ارسال المعلومات بنجاح #404040 ] -', 255, 0, 0, true) return end triggerServerEvent( 'NewP1', localPlayer,a1, a2, a3, a4, a5, a6) ------------------------------ end end ) server executeSQLQuery("CREATE TABLE IF NOT EXISTS Buy4 (playerSerial,ID1,ID2)") addEvent( "NewP", true ) addEventHandler( "NewP", resourceRoot, function(ID1,ID2) Wleed1 = executeSQLQuery("SELECT * FROM Buy4 WHERE playerSerial=?", getPlayerSerial(source) ) if ( Wleed1 ) then executeSQLQuery("INSERT INTO Buy4 (playerSerial,ID1,ID2) VALUES(?,?,?)",getPlayerSerial(source),ID1,ID2) playerSerial = getPlayerSerial(source) triggerClientEvent(root,'aBo',root,playerSerial,ID1,ID2) end end ) executeSQLQuery("CREATE TABLE IF NOT EXISTS Buy5 (playerSerial,a1,a2,a3,a4,a5,a6)") addEvent( 'NewP1', true ) addEventHandler( 'NewP1', resourceRoot, function(a1,a2,a3,a4,a5,a6) Wleed2 = executeSQLQuery("SELECT * FROM Buy5 WHERE playerSerial=?", getPlayerSerial(source) ) if ( Wleed2 ) then executeSQLQuery("INSERT INTO Buy5 (playerSerial,a1,a2,a3,a4,a5,a6) VALUES(?,?,?,?,?,?,?)",getPlayerSerial(source),a1,a2,a3,a4,a5,a6) triggerClientEvent(root,'aBo1',root, a1,a2,a3,a4,a5,a6) end end ) كلنت آستقبآل التقريت ووضعه الكلام الي بي الاديت و الشيك بوكس بي قريد ليست addEvent( "aBo", true ) addEventHandler ( "aBo" ,root, function (playerSerial,ID1,ID2) local row = guiGridListAddRow (GUIEditor.gridlist[1]) guiGridListSetItemText (GUIEditor.gridlist[1],row,1,playerSerial,false,false) guiGridListSetItemText (GUIEditor.gridlist[1],row,2,ID1,false,false) guiGridListSetItemText (GUIEditor.gridlist[1],row,3,ID2,false,false) guiGridListSetItemColor ( GUIEditor.gridlist[1],row,1, 222, 200, 22 ) guiGridListSetItemColor ( GUIEditor.gridlist[1],row,2, 220, 220, 250 ) guiGridListSetItemColor ( GUIEditor.gridlist[1],row,3, 220, 220, 250 ) end ) ------------------------ ----------------- addEvent( "aBo1", true ) addEventHandler ( "aBo1" ,root, function (a1,a2,a3,a4,a5,a6) local row1 = guiGridListAddRow (GUIEditor.gridlist[2]) guiGridListSetItemText (GUIEditor.gridlist[2],row1,1,a1,false,false) guiGridListSetItemText (GUIEditor.gridlist[2],row1,2,a2,false,false) guiGridListSetItemText (GUIEditor.gridlist[2],row1,3,a3,false,false) guiGridListSetItemText (GUIEditor.gridlist[2],row1,4,a4,false,false) guiGridListSetItemText (GUIEditor.gridlist[2],row1,5,a5,false,false) guiGridListSetItemText (GUIEditor.gridlist[2],row1,6,a6,false,false) guiGridListSetItemColor ( GUIEditor.gridlist[2],row1,1, 222, 200, 22 ) guiGridListSetItemColor ( GUIEditor.gridlist[2],row1,2, 220, 220, 250 ) guiGridListSetItemColor ( GUIEditor.gridlist[2],row1,3, 250, 226, 222 ) guiGridListSetItemColor ( GUIEditor.gridlist[2],row1,4, 250, 226, 222 ) guiGridListSetItemColor ( GUIEditor.gridlist[2],row1,5, 250, 226, 222 ) guiGridListSetItemColor ( GUIEditor.gridlist[2],row1,6, 250, 226, 222 ) end ) المشكله لما اكتب في الاديت بوكس و احدد من الشيك بوكس مايحطه في قريد ليست حآولت 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