Jump to content

Jupi

Members
  • Posts

    1,474
  • Joined

  • Last visited

Everything posted by Jupi

  1. Jupi

    مشكله

    C:\Program Files\MTA San Andreas 1.5\mods\deathmatch\resources ادخل المسار ده و احذف مود التاب واعمل ريكونكت
  2. Jupi

    مشكله

    C:\Program Files\MTA San Andreas 1.5\mods\deathmatch\resources ادخل المسار ده و احذف مود التاب واعمل ريكونكت
  3. Jupi

    مشكله

    المشكلة اللي عنده متعلقة بللعبة هو بلقسم الصح ^ القسم العام لكل شيء غير متعلق ب mta ولا نقرا لك؟ كبر الشاشة اقصي حاجة و صغر السكور بورد و رجعها زي ما هي
  4. Jupi

    مشكله

    المشكلة اللي عنده متعلقة بللعبة هو بلقسم الصح ^ القسم العام لكل شيء غير متعلق ب mta ولا نقرا لك؟ كبر الشاشة اقصي حاجة و صغر السكور بورد و رجعها زي ما هي
  5. guiGridListSetItemDataWithKey الفنكشن نفس شغل guiGridListSetItemData لكن الفرق انك تقدر تحط المفتاح الخاص Syntax _________________________________________________ bool guiGridListSetItemDataWithKey(element gridList, int rowIndex, int columnIndex, string key, var data) • gridlist : عنصر الجريد ليست اللي بتحط فيه الداتا • rowIndex : عنصر الرو اللي بتحط فيه الداتا • columnIndex : الكولمن حق الرو اللي بتحط فيه الداتا • key : المفتاح اللي تبي تحط له الداتا • data : الداتا اللي تبي تحطها Source Code _________________________________________________ function guiGridListSetItemDataWithKey(GridList, Row, Column, Key, Value) assert(isElement(GridList), "Bad Argument At Argument #1 got nil") assert(getElementType(GridList) == "gui-gridlist", "Bad Argument At Argument #1 got "..tostring(getElementType(GridList) or type(GridList))) assert(type(Row) == "number", "Bad Argument At Argument #2 got "..tostring(type(Row))) assert(type(Column) == "number", "Bad Argument At Argument #3 got "..tostring(type(Column))) assert(type(Key) == "string", "Bad Argument At Argument #4 got "..tostring(type(Key))) local Data1 = guiGridListGetItemData(GridList, Row, Column) if Data1 == nil or Data1["ATableOfData"] == false or Data1["ATableOfData"] == nil then guiGridListSetItemData(GridList, Row, Column, {["ATableOfData"] = true}) end local Data = guiGridListGetItemData(GridList, Row, Column) if Key ~= "ATableOfData" and Data["ATableOfData"] then local Table = {} local Data = guiGridListGetItemData(GridList, Row, Column) for Key, Value in pairs(Data) do Table[Key] = Value end Table[Key] = Value guiGridListSetItemData(GridList, Row, Column, Table) return true else error("Invalid Key At Argument #4 Change it") end end Returns _________________________________________________ ترجع true لو الداتا تم حطها بنجاح Example _________________________________________________ GridList = guiCreateGridList(464, 262, 396, 377, false) guiGridListAddColumn(GridList, "Col", 0.9) guiGridListAddRow(GridList) guiGridListSetItemDataWithKey(GridList, 0, 1, "Key", "SomeValue") guiGridListSetItemDataWithKey(GridList, 0, 1, "Key2", "SomeValue2") addCommandHandler("GetData", function (CMD, Key) outputChatBox(tostring(guiGridListGetItemDataWithKey(GridList, 0, 1, Key))) end ) --guiGridListGetItemDataWithKey Scroll Down .. --------------------------------------------------- guiGridListGetItemDataWithKey هذا الفنكشن يجيب الداتا الموضوعة بستعمال فنكشن guiGridListSetItemDataWithKey Syntax _________________________________________________ var guiGridListGetItemDataWithKey(element gridList, int rowIndex, int columnIndex, string key) • gridlist : عنصر الجريد ليست اللي بتجيب منه الداتا • rowIndex : الرو اللي بتجيب منه الداتا • columnIndex : الكولمن اللي بتجيب منه الداتا • key : المفتاح حق الداتا Source Code _________________________________________________ function guiGridListGetItemDataWithKey(GridList, Row, Column, Key) assert(getElementType(GridList) == "gui-gridlist", "Bad Argument At Argument #1 got "..tostring(getElementType(GridList) or type(GridList))) assert(type(Row) == "number", "Bad Argument At Argument #2 got "..tostring(type(Row))) assert(type(Column) == "number", "Bad Argument At Argument #3 got "..tostring(type(Column))) assert(type(Key) == "string", "Bad Argument At Argument #4 got "..tostring(type(Key))) assert(Key ~= "ATableOfData", "Invalid Key At Argument #4 Change it") local Data = guiGridListGetItemData(GridList, Row, Column) assert(type(Data) == "table", "Invalid Data Type got "..tostring(type(Data)).." (table expected) ") return Data[Key] end Returns _________________________________________________ ترجع الداتا المخزنة علي الرو Example _________________________________________________ نفس اللي فوق Note : قد تحتوي الوظيفة بعض الاخطاء البسيطة
  6. guiGridListSetItemDataWithKey الفنكشن نفس شغل guiGridListSetItemData لكن الفرق انك تقدر تحط المفتاح الخاص Syntax _________________________________________________ bool guiGridListSetItemDataWithKey(element gridList, int rowIndex, int columnIndex, string key, var data) • gridlist : عنصر الجريد ليست اللي بتحط فيه الداتا • rowIndex : عنصر الرو اللي بتحط فيه الداتا • columnIndex : الكولمن حق الرو اللي بتحط فيه الداتا • key : المفتاح اللي تبي تحط له الداتا • data : الداتا اللي تبي تحطها Source Code _________________________________________________ function guiGridListSetItemDataWithKey(GridList, Row, Column, Key, Value) assert(isElement(GridList), "Bad Argument At Argument #1 got nil") assert(getElementType(GridList) == "gui-gridlist", "Bad Argument At Argument #1 got "..tostring(getElementType(GridList) or type(GridList))) assert(type(Row) == "number", "Bad Argument At Argument #2 got "..tostring(type(Row))) assert(type(Column) == "number", "Bad Argument At Argument #3 got "..tostring(type(Column))) assert(type(Key) == "string", "Bad Argument At Argument #4 got "..tostring(type(Key))) local Data1 = guiGridListGetItemData(GridList, Row, Column) if Data1 == nil or Data1["ATableOfData"] == false or Data1["ATableOfData"] == nil then guiGridListSetItemData(GridList, Row, Column, {["ATableOfData"] = true}) end local Data = guiGridListGetItemData(GridList, Row, Column) if Key ~= "ATableOfData" and Data["ATableOfData"] then local Table = {} local Data = guiGridListGetItemData(GridList, Row, Column) for Key, Value in pairs(Data) do Table[Key] = Value end Table[Key] = Value guiGridListSetItemData(GridList, Row, Column, Table) return true else error("Invalid Key At Argument #4 Change it") end end Returns _________________________________________________ ترجع true لو الداتا تم حطها بنجاح Example _________________________________________________ GridList = guiCreateGridList(464, 262, 396, 377, false) guiGridListAddColumn(GridList, "Col", 0.9) guiGridListAddRow(GridList) guiGridListSetItemDataWithKey(GridList, 0, 1, "Key", "SomeValue") guiGridListSetItemDataWithKey(GridList, 0, 1, "Key2", "SomeValue2") addCommandHandler("GetData", function (CMD, Key) outputChatBox(tostring(guiGridListGetItemDataWithKey(GridList, 0, 1, Key))) end ) --guiGridListGetItemDataWithKey Scroll Down .. --------------------------------------------------- guiGridListGetItemDataWithKey هذا الفنكشن يجيب الداتا الموضوعة بستعمال فنكشن guiGridListSetItemDataWithKey Syntax _________________________________________________ var guiGridListGetItemDataWithKey(element gridList, int rowIndex, int columnIndex, string key) • gridlist : عنصر الجريد ليست اللي بتجيب منه الداتا • rowIndex : الرو اللي بتجيب منه الداتا • columnIndex : الكولمن اللي بتجيب منه الداتا • key : المفتاح حق الداتا Source Code _________________________________________________ function guiGridListGetItemDataWithKey(GridList, Row, Column, Key) assert(getElementType(GridList) == "gui-gridlist", "Bad Argument At Argument #1 got "..tostring(getElementType(GridList) or type(GridList))) assert(type(Row) == "number", "Bad Argument At Argument #2 got "..tostring(type(Row))) assert(type(Column) == "number", "Bad Argument At Argument #3 got "..tostring(type(Column))) assert(type(Key) == "string", "Bad Argument At Argument #4 got "..tostring(type(Key))) assert(Key ~= "ATableOfData", "Invalid Key At Argument #4 Change it") local Data = guiGridListGetItemData(GridList, Row, Column) assert(type(Data) == "table", "Invalid Data Type got "..tostring(type(Data)).." (table expected) ") return Data[Key] end Returns _________________________________________________ ترجع الداتا المخزنة علي الرو Example _________________________________________________ نفس اللي فوق Note : قد تحتوي الوظيفة بعض الاخطاء البسيطة
  7. Jupi

    مشكله

    اضغط تاب و اف7 =_=
  8. Jupi

    مشكله

    اضغط تاب و اف7 =_=
  9. يضبط بس انت تعطيه السلاح لما يموت ولما يرسبن يروح السلاح خلي الحدث onPlayerSpawn
  10. يضبط بس انت تعطيه السلاح لما يموت ولما يرسبن يروح السلاح خلي الحدث onPlayerSpawn
  11. سي يراميك ولا بي يراميك يراميك ولا يبارزك مش فاهم حاقة
  12. مداكـ تختـصر كودكـ وتستخدم البـرامتر الخاص بالحساب الي موجود بالحدث addEventHandler("onPlayerLogin", root, function (_,acc) setPlayerName (source, getAccountName (acc)) end ) مجـرد اخـتصار بـدل من أنـك تجيب حسابـه فيـه بـرامـتر جاهـز بالحدث يجيب لك الي تبيه لا بلعكس مو مجرد اختصار بيقلل استهلاك الموارد في نفس الوقت
  13. addEventHandler("onPlayerJoin", root, function() local name = getPlayerName(source) if name == "DABL" or name == "Soking" or name == "Me[Z]oO" or name = "x1AhMeD,-09" then for i = 1, 5 do outputChatBox("[server NooB] : "..((name == "DABL" and "Me[Z]oO") or name).." Has Joined The Server , Die in the Hell NooB", root, 255, 255, 255, true) end end end ) ميزو, تحترق علشاني صح؟
  14. يعني انت عايز الويندو مخفي و مش عايز الجريد ليست يختفي؟ دلوقتي ميزو خفالك الاثنين كفو ! ولو شغلك مش تعديل زي ما انت بتقول كان زمانك عملت الحاجة البسيطة دي الحين انت تقولي في جريد ليست انا مصممها تظهر اول ما المود يشتغل يعني المطلوب مننا اننا نخفيها =.= انت تقول كلام و تبي عكسه وما برد عليك اكثر .
  15. ههه تستهبل؟ ميزو خفي الجريد ليست =_= انت مكنتش رابط الجريد ليست بللوحة حقتك شاطر انت وذا دليل علي عبقريتك انت الحين تبيه يخفي الجريد ليست مع اللوحة؟ وليه ما تربطه للوحة؟ -.- ولو راح تقولي لان الجريد ليست مختلف عن اللوحة بقولك انك ما تفهم برمجة وشغلك تعديل فقط ومانك تعرف تسوي مثل الشيء البسيط ذا بلتوفيق لك
  16. عدلته وين الهريسة حتي بعد التعديل غلط خذ الصح : gridlist = guiCreateGridList(314, 272, 187, 345, false, window)
  17. X gridlist = guiCreateGridList(314, 272, 187, 345, false, window)
×
×
  • Create New...