Leaderboard
Popular Content
Showing content with the highest reputation on 20/09/18 in all areas
-
السلام عليكم ورحمة الله وبركاته كيف الحال شباب باذن الله تكونو بخير المهم ما اطول عليكم اليوم مثل مافي العنوان اصدار اول مكتبة عربية مفتوحة المصدر المكتبة خاصه بي المهم المكتبه خصائصها: 1-انشاء نافذه 2-انشاء زر 3-انشاء سكرول بار 4-انشاء-بروجرس بار 5-انشاء ايديت بوكس 6-انشاء ميمو 7-انشاء ليبل 8-انشاء جريد لست(ملاحظة الجريد لسا حاليا لا تدعم السكرول بار الافقي ولكن تدعم الراسي وكما انها لا تتوفر فيها كم خاصيه)ا 9-انشاء شيك بوكس 10-انشاء راديو بوتون 11-انشاء صورة 12- انشاء تاب بانل 13-فنكشناتها مماثله لفنكشنات اللعبه تقريبا مثال guiCreateWindow-->gui dxCreateWindow-->dx 14-افكت للزر 15- المكتبة تتوفر على نظام تحديث يمكنك ان تجعل التحديث تلقائي كل 5 ايام يتم التحقق من نزول اصدار جديد او لا هذا الطبيعي اذا اردت التغيير على الاعدادات يمكنك ذلك عن طريق الملف update/update.lua وباقي الخصائص اكتشفوها مع نفسكم الملفات غير مشفره للافاده عيوبها ملاحظه (اخطط لدعمها في المستقبل باذن الله هيا وجميع الالمنتات الباقيه)ل 2-لا تدعم كومبو بوكس كما قلت اعلاه 4- لا تدعم سكرول بان لا ارى له اهميه لذلك لا اخطط لاضافته ----------------------------- لتحديث المكتبة اكتب في اف 8 updateM.M فقط ----------------- في حالة اكتشاف اي بق او اي اقتراح للتطوير من اداء المكتبة يرجى الرد هنا في حالة اردت معرفة الفنكشنات المتاحه للعمل عليها فقط ادخل على meta.xml وستجدني واضع لها export كلها في حالة اردت معرفة طريقة استخدامها فقط ادخل الى الملف elements واضغط على الملف المراد معرفة الفنكشن الذي يحتويه --------------------------------------------- لتحميل المكتبة من github-----> https://github.com/Master-MTA/M.M ستجد زر اخضر اسمه clone or download اضغط عليه وحمل بصيغة zip ------------------------------------- اريد من شخص ان ينشا صفحه في الويكي باسم المكتبه M.M ويضع فيها الفنكشنات --------------------------------- ملاحظه سيتم توفير محرر خاص بالمكتبة باذن الله في المستقبل ولكن سيكون مدفوع وغير مجاني محرر اعني به مثل guiEditor ------------------- @KillerX @N3xT @SuperX @MR.TOUNSI @all مب عارف اجيب اسماءكم بالمنتدى كله حاطط تشكيله باسمه ههه ولا عبد الكريم ولا احد عارف اكتبه @!#NssoR_) يا ليت لا تنقله لقسم المساهمات لان قسم العربيه هو اكثر شي مشاهده ويا ليت تثبته لفتره +_+6 points
-
سلام عليكم طبعا لازم تسوي takePlayerMoney عشان يسحب مال ومش setPlayerMoney + كدة هيعطي لاعب فلوس تحت الصفر تقدر تستخدم كدة addEventHandler("onPlayerWasted", root, function ( ) if (money > 19) then -- لو المال اكثر من 19 takePlayerMoney ( source, 20 ) outputChatBox ( " تم اخذ منك 20 دولار مصريف المستشفا ", source, 255,0,0 ) -- نسيت تخلي الرسالة تروح للسورس else outputChatBox ( " لا تملك المال الكافي " ..getPlayerName(source).. "عليك جمع المال", source, 255,0,0 ) -- نفس الخطا end end ) -- ثاني خطا لازم 2 end -- الاولي عشان if -- الثانية عشان الفنكشن -- بالتوفيق2 points
-
يعطيك العافيه تعليقك الجميل يا غالي امين لي ولك باذن الله يقلبي مشكور عالمرور منتظرك باذن الله تعجبك لاحظ ان الالوان الديفولت يمديك تغيرها اقرا كلامي كامل ولو سويت شي عطنا صوره +_+ نحطها2 points
-
2 points
-
2 points
-
Hi everyone! I have made a simple parser of ASE bytecode to convert it to JSON format. Maybe it'll be useful for someone else. The program automatically downloads bytecode and writes it to readable JSON text plain. Mainly it was developed for Linux purposes, but may be simply built under the Windows. https://github.com/tederis/ase2json1 point
-
1 point
-
1 point
-
1 point
-
The collectgarbage cleans objects. The object you are probably familiar with is the table(a powerful hybrid between an object and an array if you know JavaScript). variable = {} When you create a table, it is not just creating it and save it in a variable. < This is actually incorrect. This is incorrect because you are not saving the table inside of a variable. A table is a THING, unlike the values 72675467 or "random string". THINGS are of course saved inside of the memory just like variables, but they exist not at the same place. Which means that what is actually is saved inside of a variable is a reference TO that TABLE. The benefit of a reference instead of just a value: local a = {1} local b = a b[2] = 10000 local c = a c[3] = "IIYAMA" iprint(a) -- {1, 10000, "IIYAMA"} -- magic! a = nil iprint(a) -- nil iprint(b) -- {1, 10000, "IIYAMA"} iprint(c) -- {1, 10000, "IIYAMA"} -- magic! b[4] = "this is more trash" b = nil iprint(a) -- nil iprint(b) -- nil iprint(c) -- {1, 10000, "IIYAMA", "this is more trash" } -- magic! c = nil iprint(a) -- nil iprint(b) -- nil iprint(c) -- nil As it isn't always known when all references are destroyed(which means the table can't be accessed any more), the garbagecollector will clean it after a while. (which happens in cycles) Do not use that function, if this is still hard to understand. This LUA function kills performance if not used correctly. = (The collector is forced to make a full cycle) So better not use it at all, as LUA can do a fine job doing it itself.1 point
-
وانا مكنتش بتكلم بشكل عام انا بتكلم وبصحح الي هو كاتبه وسهلتها عليه عشان قال انه مبتدئ مش شرط اربكه takePlayerMoney اسهل بالنسبه له موفق ##1 point
-
addEventHandler("onPlayerWasted", root, function ( ) if getPlayerMoney(source) >= 100 then takePlayerMoney (source, 20) outputChatBox ( " تم اخذ منك 20 دولار مصريف المستشفا " ) else outputChatBox ( " لا تملك المال الكافي " ..getPlayerName(source).. "عليك جمع المال" ) end end )1 point
-
-----------------update for gridList Functions added : dxGridListGetSelectedItem(grid) dxGridListSetSelectedItem(grid,sel,col) dxGridListGetItemText(grid,sel,col) ----------- الرجاء الكتابه في اف 8 updateM.M للتحديث @KillerX1 point
-
1 point
-
حبيبي الله يسعدك كفوك يا عسل مشكور يا ليت لو صمت اي شي بالمكتبه تعطينا صوره بس نظيفها معليش1 point
-
من احد أهم الوظائف, ولكن للأسف الكثير منا يجهلها الا وهي: addDebugHook تسنح هذه الوظيفة لك بالإمكانية معرفة عند استخدام الوظيفة الفلانية في اي مود كان. وتسمح لك بمعرفة الاحداث التي استخدمت بأي مود كان يمكنك تخطي الأحداث والوظائف باسترجاع قيمة skip مثال على الوظيفة addDebugHook( "preFunction", onPreFunction, {"createVehicle"} ) function onPreFunction( _, _, _, _, _, ... ) local args = { ... } if( args[1] == 411 )then return "skip" end end النتيجة: سيتم الغاء اي محاولة لصنع سيارة بالأيدي 411, والتي هي الأنفرس1 point
-
1 point
-
Cara, esse negócio de ajustar escala de acordo com a resolução sempre vai bugar. Pois tem resoluções que o Aspect Ratio é 4:3 (800 x 600) e outras que são 16:9 (Padrão Full HD). Prefira fazer os painéis sempre com o mesmo tamanho e ir apenas setando a posição da janela no meio da tela usando a função útil centerWindow. function centerWindow (center_window) local screenW, screenH = guiGetScreenSize() local windowW, windowH = guiGetSize(center_window, false) local x, y = (screenW - windowW) /2,(screenH - windowH) /2 return guiSetPosition(center_window, x, y, false) end addEventHandler ("onClientResourceStart", getResourceRootElement(getThisResource()), function() theWindow = guiCreateWindow (0, 0, 300, 300, "Janela Qualquer", false) centerWindow (theWindow) guiWindowSetSizable (theWindow, false) label1 = guiCreateLabel(10, 20, 45, 20, "Teste 1", false, theWindow) label1 = guiCreateLabel(10, 40, 45, 20, "Teste 2", false, theWindow) end) Os elementos de texto GUI como os Labels, não possuem escala relativa. O parâmetro relative dele só serve para posição e tamanho do canvas dele. Mas o tamanho da fonte não muda a não ser que use guiCreateFont. Janela teste na resolução nativa de 1366 x 768: Janela teste na resolução de 800 x 600:1 point
-
Suggestion: Make ":setFont" method for all elements in your script. like: Edits, Memos, Tabs(Title), Window(Title). It's easy because i already made those in my version. Problem(Maybe not): When i use Dark red theme with my window, (into the window) i made my Tab panels the Labels, Check boxes(Label) Comes with gray color and this make it hard to read. ( I solve this by make the entire Labels, Check boxes again with dark red theme )1 point
-
Client-side: markerEntrar = createMarker (-716.23865, 1266.40942, 10.73082, "cylinder", 1, 0, 191, 255, 155) blip = createBlipAttachedTo (markerEntrar, 53, 3, 255, 0, 0, 255, 0, 5000) function aviso (hitElement) if hitElement == localPlayer then outputChatBox ("[INFO] #FFFFFFTrabalho de entregador de intorpecentes. Digite #00FF00/aceitar1 #FFFFFFpara iniciar.", 0, 255, 0, true) function aceitar (thePlayer) markerRandom = math.random (1, 3) outputChatBox ("[INFO] #FFFFFFEntregue os intorpecentes nos locais marcados em círculos #FFFF00amarelos #FFFFFFno mapa.", 0, 255, 0, true) triggerServerEvent ("giveMyVeh1", localPlayer) if (markerRandom == 1) then outputChatBox ("[INFO] #FFFFFFEntregue os intorpecentes em #00FF00Downtown.", 0, 255, 0, true) markerTrab = createMarker (-623.43188, 858.27588, 10.55048, "cylinder", 1, 0, 191, 255, 155) trabBlip = createBlipAttachedTo (markerTrab, 53, 3, 255, 0, 0, 255, 0, 5000) addEventHandler ("onClientMarkerHit", markerTrab, finish) elseif (markerRandom == 2) then outputChatBox ("[INFO] #FFFFFFEntregue os intorpecentes em #00FF00Little Haiti.", 0, 255, 0, true) markerTrab = createMarker (-863.37274, 108.24522, 9.33671, "cylinder", 1, 0, 191, 255, 155) trabBlip = createBlipAttachedTo (markerTrab, 53, 3, 255, 0, 0, 255, 0, 5000) addEventHandler ("onClientMarkerHit", markerTrab, finish) elseif (markerRandom == 3) then outputChatBox ("[INFO] #FFFFFFEntregue os intorpecentes em #00FF00Little Haiti.", 0, 255, 0, true) markerTrab = createMarker (-1139.22083, -111.46038, 11.40691, "cylinder", 1, 0, 191, 255, 155) trabBlip = createBlipAttachedTo (markerTrab, 53, 3, 255, 0, 0, 255, 0, 5000) addEventHandler ("onClientMarkerHit", markerTrab, finish) end removeCommandHandler ("aceitar1", aceitar) end addCommandHandler ("aceitar1", aceitar) end end addEventHandler ("onClientMarkerHit", markerEntrar, aviso) function finish (hitElement) if hitElement == localPlayer then local dinheiro = math.random(70, 300) triggerServerEvent ("giveMyMoney1", localPlayer, dinheiro) outputChatBox ("[INFO] #FFFFFFConcluído.", 0, 255, 0, true) removeEventHandler ("onClientMarkerHit", markerTrab, finish) destroyElement (trabBlip) trabBlip = nil destroyElement (markerTrab) markerTrab = nil end end Server-side: veh = {} function spawnMyVeh () local x,y,z = getElementPosition (client) veh[client] = createVehicle (499, x, y, z) warpPedIntoVehicle (client, veh[client]) end addEvent ("giveMyVeh1", true) addEventHandler ("giveMyVeh1", getRootElement(), spawnMyVeh) function setMyMoney (cash) givePlayerMoney (client, cash) if veh[client] then destroyElement (veh[client]) veh[client] = nil end end addEvent ("giveMyMoney1", true) addEventHandler ("giveMyMoney1", getRootElement(), setMyMoney)1 point
-
no problem. I'm glad i can help you while testing your awesome script. Keep it up1 point
-
تصميم وبرمجة فنانة اهنيك والله يا خالد @SuperX حبيب قلبي من يومك فنان1 point
-
جميل جدا , لكن لو تتعب عمرك وتضيف صور بالموضوع يكون افضل يماستر1 point
-
عمل متقن ي ماستر , اول مره تسوي شي وتنجح فيه , يالله عسانا نشوف الاصدار الثاني والثالث والرابع والخامس ي قلبي1 point
-
إذا تشوف 2 دولار غالي جدا فالأفضل تركز على الأشياء الأساسية في الحياة مثل الأكل واترك فتح و تشغيل السيرفرات للمقتدرين ماليا1 point
-
Thank you for your collaboration! I was able to solve it with: @Simple. if source == localPlayer then1 point
-
1 point
-
تسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسسلم حبيب قلبي يسطا مشكور والله يا عسل ومنتظر المكتبة اللي هبني عليها موداتي انشاء الله1 point
-
موضوعه بسيط يجيب لك الاخطاء حقة الفنكشن مثال بسيط عندي فنكشن اسمه function sum(a,b) c=a+b return c end local stat,erorr=pcall(sum,'one','two') print(stat,erorr)-->القيمه الاولى هتطلع ب false والثانيه هتطلع ب الارور ليه الفنكشن رجع ب فولس local stat,theresult=pcall(sum,1,2) print(stat,theresult) هنا القيمه الاوله هتطلع ب true والقيمه التانية بالريسلت اما xpcall نفس اللي فوقها بس الارقمنت الثاني هو فنكشن للاخطاء في حالة رجع الفنكشن بخطا يمديك تطلع الرساله اللي تبي بالفنكشن الثاني اتمنى تكون فهمت وشكرا وابشرك الاصدار الاول من المكتبه بنزله باذن الله @_@ ولكن ناقص نظام الابديت سيستم1 point
-
You currently have Window 7 build 7600 Ideally you should have at least Window 7 build 7601 (also known as Service Pack 1 or SP1)1 point
-
sry, it's my fault, updatedgs But it seems there is still a problem. I will fix it later Thank you1 point
-
You still don't get it.. root element never changes. Root is root.. all other elements are underneath this element in the element tree (see here: https://wiki.multitheftauto.com/wiki/Element_tree), hence the name root. What happens here is that onClientMarkerHit gets triggered on all clients, doesn't matter which player hit the marker. If you check if the hitelement is the localPlayer then the onClientRender event will be handled only for the player that hit the marker.1 point
-
ألحين داخل المنتدى و مسجل علشان تنشر هنا ؟ القسم غلط @!#NssoR_) @TAPL1 point
-
1 point
-
Use /debugscript 3, se subir alguns erros/warnings você checa o local do lado do warning mostra o local do arquivo, se for o script que esta trabalhando no momento você anota e posta no fórum junto com a sua dúvida. Exemplo: Pode ver que mostra o WARNING: Local do arquivo e o erro que esta ocorrendo, então, você copie e cole aqui em forma de screenshot ou escreva mesmo. se não me engano esses erros são salvos na pasta log's do servidor tem que dar uma procurada lá nos arquivos.1 point
-
1 point
-
that's not stealing. This shader still can be found as example on wiki page @MonSteRDM, you should create a shader for this car with dxCreateShader function, apply it on any vehicle texture (your overlay. Mostly "remap" or "vehiclegrunge128") to replace it in future using engineApplyShaderToWorldTexture function. Then you should use dxSetShaderValue to add a texture and that's it. Also you need setElementData, engineRemoveShaderFromWorldTexture functions and onClientElementStreamIn, onClientElementStreamOut to synchronize it with other players1 point
-
Update: Added grid lists. They are called Table Views. Now you can just create them and select items, sorting now is not available. It will be added in future updates. - Fixed bug with scroll pane - in past it can contains contents only with maximal size, setted to default user's screen size - Added 2 new triggers - when scrolling scrollpane, and when changing state of check box - Fixed bug with unavailabled events when user cursor located on canvases of Buttons, ProgressBars, EditBoxes (all) and Check Boxes - Fixed bug with scrolling on scroll pane, now functions setVerticalScrollPosition and setHorizontalScrollPosition works correct - Added function getFrame for Labels - now you can put any widget on Label.1 point
-
اعلن خروجي من طاقم ادارة السيرفر وليس لي اي علاقة به ..بعد الان0 points