Jump to content

Mr.king

Members
  • Posts

    113
  • Joined

  • Last visited

Everything posted by Mr.king

  1. خذو المود وحملوه وحلو المشكلة وحطوه على نفس المود باصدار جديد المود https://community.multitheftauto.com/index.php?p=resources&s=details&id=6585
  2. قصده يتبعه مثل الحارس
  3. قصدي الثلاث امثلة ذي xmlLoadFile xmlNodeSetValue xmlCreateChild انا على ماظن المشكلة من ملف conf.xml فجربت ذي الاكواد فيه او Says = {} او Says = {""} او Says = {" "} او Says = {"" } او Says = { ""} او اخيله فاضي او اخلي } و { بدالهم اقواس هل في من هذولي الخيارات صح او غير؟؟
  4. طيب يليت حد يعطيني مود فيه الكودين xmlLoadFile xmlNodeSetValue
  5. شباب تكفى حد يدور حل
  6. ركب المود بدون ضغط برضه ماجات ولا معلومة وانا خيلته في مجلد وليس في مجلد مضغوط بس ماجا شيء
  7. حتا كلنت ماله دخل بالهرجة
  8. الكلنت كان فيه خطاء صححته اللوحة شغالة بس ملف conf.xml فارغ انا عبيت الفراغات وضغط الزر المفروض يرسل المعلومات بس مارسل اي معلومة
  9. انا اقول المشكلة في سيرفر وليس كلنت عشان سيرفر هو الي يرسل المعلومات لملف conf.xml يعني يا سيرفر او conf.xml يكون فيه الخطأ ارجو التعديل والتحقق
  10. شباب الحين حليت المشكلة بس ولا شيء طلع في ملف conf .xml client-side GUIEditor_Window = {} GUIEditor_Label = {} GUIEditor_Edit = {} GUIEditor_Button = {} GUIEditor_Window[1] = guiCreateWindow(0.1807,0.1745,0.6641,0.6745,"لوحة ",true) guiSetAlpha(GUIEditor_Window[1],1) GUIEditor_Label[1] = guiCreateLabel(165,50,340,81,"",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[1],23,200,150) guiLabelSetHorizontalAlign(GUIEditor_Label[1],"center",false) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Label[2] = guiCreateLabel(165,134,340,81,"",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[2],23,200,150) guiLabelSetHorizontalAlign(GUIEditor_Label[2],"center",false) guiSetFont(GUIEditor_Label[2],"default-bold-small") GUIEditor_Label[3] = guiCreateLabel(458,241,218,87,"اسمك :",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[3],233,53,243) guiSetFont(GUIEditor_Label[3],"default-bold-small") GUIEditor_Label[4] = guiCreateLabel(137,241,218,87,"رقم البطاقة :",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[4],233,53,243) guiSetFont(GUIEditor_Label[4],"default-bold-small") GUIEditor_Edit[1] = guiCreateEdit(42,275,260,66,"",false,GUIEditor_Window[1]) GUIEditor_Edit[2] = guiCreateEdit(353,275,260,66,"",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(280,381,96,62,"ارسال",false,GUIEditor_Window[1]) GUIEditor_Label[5] = guiCreateLabel(59,475,538,33,"لم يتم ارسال الرسالة",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[5],255,0,0) guiLabelSetHorizontalAlign(GUIEditor_Label[5],"center",false) guiSetVisible(GUIEditor_Window[1], false) function wnd () guiSetVisible ( GUIEditor_Window[1], not guiGetVisible ( GUIEditor_Window[1] ) ) showCursor ( guiGetVisible ( GUIEditor_Window[1] ) ) guiSetInputEnabled( guiGetVisible ( GUIEditor_Window[1] ) ) guiSetText(GUIEditor_Label[5], "لم يتم ارسال الرسالة") guiLabelSetColor(GUIEditor_Label[5],255,0,0) end bindKey( "F10", "down", wnd) addEventHandler("onClientGUIClick",getRootElement(), function () local ggt = guiGetText(GUIEditor_Edit[1]) local gtt = guiGetText(GUIEditor_Edit[2]) if ( source == GUIEditor_Button[1] ) then if ( guiSetText(GUIEditor_Edit[1], "") ) then guiSetText(GUIEditor_Label[5], "لم يتم ارسال الرسالة") guiLabelSetColor(GUIEditor_Label[5],255,0,0) elseif ( guiSetText(GUIEditor_Edit[1], "") ) then guiSetText(GUIEditor_Label[5], "لم يتم ارسال الرسالة") guiLabelSetColor(GUIEditor_Label[5],255,0,0) else triggerServerEvent("XX",localPlayer,guiGetText(GUIEditor_Edit[1]),guiGetText(GUIEditor_Edit[2])) cleanInfos() end end ) function cleanInfos() guiSetText(GUIEditor_Edit[1], "") guiSetText(GUIEditor_Edit[2], "") guiSetText(GUIEditor_Label[5], "لقد ارسلت الرسالة بنجاح ارجع بعد 24 ساعة لكي تحصل على البيت") guiLabelSetColor(GUIEditor_Label[5],0,255,0) end وكمان ابيكم تعدلون ذا الكود يعني لو كان الفرغين مافيهم شيء مايسير شيء لو كانو معبين يشتغل التريقر بس المشكلة لو ضغط الزر مايسير شيء وينحذف رقم البطاقة ليش؟ addEventHandler("onClientGUIClick",getRootElement(), function () local ggt = guiGetText(GUIEditor_Edit[1]) local gtt = guiGetText(GUIEditor_Edit[2]) if ( source == GUIEditor_Button[1] ) then if ( guiSetText(GUIEditor_Edit[1], "") ) then guiSetText(GUIEditor_Label[5], "لم يتم ارسال الرسالة") guiLabelSetColor(GUIEditor_Label[5],255,0,0) elseif ( guiSetText(GUIEditor_Edit[1], "") ) then guiSetText(GUIEditor_Label[5], "لم يتم ارسال الرسالة") guiLabelSetColor(GUIEditor_Label[5],255,0,0) else triggerServerEvent("XX",localPlayer,guiGetText(GUIEditor_Edit[1]),guiGetText(GUIEditor_Edit[2])) cleanInfos() end end end ) server-side addEvent("XX",true) addEventHandler("XX",getRootElement(),function(ggt,gtt) local file = xmlLoadFile("conf.xml") or xmlCreateFile("conf.xml"," Says") xmlNodeSetValue(xmlCreateChild(conf, "Says"), "Name Player : "..getPlayerAccount(source).." **** "..ggt.." ***** "..gtt.."") xmlSaveFile(file) xmlUnloadFile(file) end) conf.xml ارجو حل المشكلة عشان ولا شيء يطلع في conf.xml
  11. الحين كل شيء مزبوط المود كامل الا شيء واحد لما ارسل الرسالة ماتطلع في ملف conf.xml
  12. انا لما حذفت الكود ذا else if (guiSetText(GUIEditor_Edit[1], "") ) guiSetText(GUIEditor_Label[1], "لم يتم ارسال الرسالة") guiLabelSetColor(GUIEditor_Label[5],255,0,0) elseif (guiSetText(GUIEditor_Edit[2], "") ) guiSetText(GUIEditor_Label[1], "لم يتم ارسال الرسالة") guiLabelSetColor(GUIEditor_Label[5],255,0,0) اللوحة اشتغلت يعني الكود خربان ولما ضغط الزر وعبيت edit ماطلع شيء ابدا ليش؟؟
  13. تدمير انت لازم تركز على اي ملف مو على سيرفر و الكونف شوف لكنت يمكن فيه خطأ
  14. ماشتغل جربه الكود خربان او يمنكن من ملف conf.xml او من الميتا او كلنت او سيرفر
  15. مشكوووور تدمير عل المثال وانا استفدت من المثال بس الحين وش الخطأ client-side GUIEditor_Window[1] = guiCreateWindow(0.1807,0.1745,0.6641,0.6745,"",true) guiSetAlpha(GUIEditor_Window[1],1) GUIEditor_Label[1] = guiCreateLabel(165,50,340,81,"",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[1],23,200,150) guiLabelSetHorizontalAlign(GUIEditor_Label[1],"center",false) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Label[2] = guiCreateLabel(165,134,340,81,"",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[2],23,200,150) guiLabelSetHorizontalAlign(GUIEditor_Label[2],"center",false) guiSetFont(GUIEditor_Label[2],"default-bold-small") GUIEditor_Label[3] = guiCreateLabel(458,241,218,87,"",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[3],233,53,243) guiSetFont(GUIEditor_Label[3],"default-bold-small") GUIEditor_Label[4] = guiCreateLabel(137,241,218,87,"",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[4],233,53,243) guiSetFont(GUIEditor_Label[4],"default-bold-small") GUIEditor_Edit[1] = guiCreateEdit(42,275,260,66,"",false,GUIEditor_Window[1]) GUIEditor_Edit[2] = guiCreateEdit(353,275,260,66,"",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(280,381,96,62,"",false,GUIEditor_Window[1]) GUIEditor_Label[5] = guiCreateLabel(59,475,538,33,"لم يتم ارسال الرسالة",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[5],255,0,0) guiLabelSetHorizontalAlign(GUIEditor_Label[5],"center",false) guiSetVisible(GUIEditor_Window[1], false) function wnd () guiSetVisible(GUIEditor_Window[1], true) showCursor(true) guiSetInputEnabled ( true) end bindKey( "F10", "down", wnd) addEventHandler("onClientGUIClick",getRootElement(), function () local ggt = guiGetText(GUIEditor_Edit[1]) local gtt = guiGetText(GUIEditor_Edit[2]) if ( source == GUIEditor_Button[1] ) then triggerServerEvent("get",getLocalPlayer(),ggt,gtt) cleanInfos() else if (guiSetText(GUIEditor_Edit[1], "") ) guiSetText(GUIEditor_Label[1], "لم يتم ارسال الرسالة") guiLabelSetColor(GUIEditor_Label[5],255,0,0) elseif (guiSetText(GUIEditor_Edit[2], "") ) guiSetText(GUIEditor_Label[1], "لم يتم ارسال الرسالة") guiLabelSetColor(GUIEditor_Label[5],255,0,0) end end ) function cleanInfos() guiSetText(GUIEditor_Edit[1], "") guiSetText(GUIEditor_Edit[2], "") guiSetText(GUIEditor_Label[1], "لقد ارسلت الرسالة بنجاح") guiLabelSetColor(GUIEditor_Label[5],0,255,0) guiSetVisible(GUIEditor_Window[1], false) showCursor(false) guiSetInputEnabled ( false) end server-side addEvent("get",true) addEventHandler("get",getRootElement(), function (ggt,gtt) local conf = xmlLoadFile("conf.xml") xmlNodeSetValue (xmlCreateChild ( conf, "ThePlayerWrite"), "" .. ggt .. "", "" .. gtt .. "") xmlSaveFile(xmlfile) xmlUnloadFile(xmlfile) end ) meta.xml conf.xml بس الزر لما ينضغط يروح لملف conf.xml
  16. تكفى حد يرد طفشان قاعد كم ساعة ولا حد رد والمواضيع الثانية الان رديتو ليه محد يرد
  17. يشيخ انا ابي الكلام الي في ايديت ينحفظ في الملف xml بس المثال الي في ويكي مني فاهمه اطلاقا ابي مثال موضح وثاني مرة اقول انه يطلع كلام في الملف الكلام من الايديت يعني تعبي الفراغات الايديت بعدين لما تضغط الزر تروح لملف xml
  18. شباب وينكم محد رد ابي مثال على xmlCreateFile
  19. يعني ابيك تحط كل ايديت يجي في الملف اكسمل ولاتنسى تعطيني مثال على الميتا عشان ابي اعرف الملف كلنت ولا سيرفر ولا file
  20. طريقتك حلوة بس عطني مثال لو سمحت
  21. شباب انا ابي زي ماقلت كيف اخلي الرسالة تجي للايميل تكفى ردو
  22. انا قصدي في ايديت ما يمديك تكتب فيه الي هو المرسل اليه يعني لما يكتب اسمه وايميله ورقم البطاقة تجي كلها برسالة بالئيميلي وعنوان الرسالة يكون اسم حسابه
×
×
  • Create New...