Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 25/07/17 in Posts

  1. While I agree with everything Dutchman101 said, I'd like to add a few aspects from the technical point of view. The requirements that need to be fulfilled by the language are very strict, to mention some: Embeddable into other languages (especially C++) Sandboxed (no unsafe functions e.g. such that can invoke system commands) Well-known, stable and mature enough When thinking a bit about these requirements, there are only a handful of languages left that fulfill all of them. So let's take a closer look at the suggested languages: Java: Embedding works (even if it's not designed for that), but not sandboxed Python: Designed almost equally for embedding and running standalone, but no official/stable sandbox support (available solutions are rather experimental) C#: Microsoft's official implementation is not embeddable. Mono is, but isn't sandboxed either Javascript (V8): Meant to be embedded, sandboxed and well-known ==> fulfills requirements So, as you can see, only Javascript is an imaginable solution, even if it's a huge code base and takes much more time to compile (we're talking about a factor of >50-100x compared to Lua). That's basically the reason why Lua is loved in embedding contexts. Also, in my opinion Lua is actually a pretty good language: It's very easy to learn, it's one of the most flexible languages I know (considering metatables) and easy to embed (even though the C Interface is a bit old-school).
    2 points
  2. بسم الله الرحمن الرحيم سلام عليكم ورحمة الله وبركاته كما هو موضح بالعنوان حاب اعرض لكم جريد ليست من تصميمي الشخصي ( احترافي ) المهم ماعلينا بالطويلة نعرض الجريد ليست : اتمنى تعرضون رأيكم عن الجريد ليست من 10 واذا في اخطاء او شيء زي كذا قولو لي وان شاء الله اصححها طبعاً شكر خاص لتنطيل ..
    1 point
  3. الشكر لله اخي بالتوفيق#
    1 point
  4. لا اخي على السيرفر مو الكلينت
    1 point
  5. setPedArmor(player, 100) كذا اخوي
    1 point
  6. السلام عليكم عليكم و رحمة الله و بركاته كيف حالكو شباب ؟ تن شاء الله طبيباً ما بدي اطول عليكو ابي كود اذا حطيته بالفري روم يحول جميع الازرار الى صورة لكن الـ مكتوب على الزر يصير مثل ما هو مابي كود لو في غي GuiCreateStaticImage والسلامـ عليكمـ ورحمة اللـه وبركاتـة
    1 point
  7. اخوي ماعندك غير كذا او انك تستخدم الدي اكس وبيكون معقد عليك، ذي اسهل طريقة تقريباً، والطريقه راح تكون زي كذا: function guiCreateButton ( ... ) -- كمل الباراميترات نفسها حق الوظيفه -- وبعدين تستخدم وظيفة إنشاء الصورة هنا backG = guiCreateStaticImage ( ... ) -- كمل الارقيومنتات -- بعدين تسوي ليبل عشان الكلام Text = guiCreateLabel ( ... ) return backG end وبكذا اول ماتستدعي وظيفة الزر راح تتغير لصورة وعليها كلام، بس ضبط احداثياتها وكمل الارقيومنتات والباراميترات بين الأقواس، الفكره ماهي صعبه.
    1 point
  8. قلت لك اخي غير ذا
    1 point
  9. لا تفكر انو المود لو ركبته يقدر ينفذ كل الاوامر بشكل صحيح ولها صله بأمور محظوره يعني :- ( ركبت مود فيه امر اعطأ فريز لما تخش ماركر , اوكي ؟ الحين لانو مو مسجل بقروب الادمن , ما معو صلاحيات يعطي فريز فلهذا ما رح يعطي ) وهكذا ...ا
    1 point
  10. جرب حطو اخي وشوف
    1 point
  11. اخي انت حاط المود بقروب الادمن عند الاسل؟
    1 point
  12. You could create the character on client-side, which would only create the character for your specified player.
    1 point
  13. الو ابوسولو يبونك تعصب ض2 @Abo Solo
    1 point
  14. what i can say more than very nice وش اقدر اقول اكثر من رائع جدا
    1 point
  15. He means It's private for him, not for selling or sharing :).
    1 point
  16. Bastante difícil, si. No creo que nadie con la suficiente experiencia este dispuesto a trabajar gratis.
    1 point
  17. la verdad va a hacer difícil que consigas un buen scripter que trabaje tan solo por un puesto de staff, pero pasare por su servidor a ver que tal
    1 point
  18. Tio, escribe en mayusculas, eso ya da una pista.
    1 point
  19. عند التأشير يخليه لون ابيض وعند الضغط او التحديد يكون لونه اسود , بجربه وبقارن : ) تشكر على المرور ما أحلاك ذذ
    1 point
  20. وعليكم السلام , عمل جبار صراحتاً أهنيك . 10/10 - بس لو تخلي اللون يوم يكون محدد على الرو ابيض خفيف مو 255 . وبالتوفيق .
    1 point
  21. حيلو حيلو حيلو حيلو حيلو حيلو 10-10
    1 point
  22. Jusonex nailed it, and also even if your mobile data IP is static, I'm yet to see a mobile data provider offer customers a way to port forward. However, some mobile connections I've seen/used are totally unrestricted (don't ask me why some providers turn mobile connections into a DMZ) which means all ports are opened by default. This must be a design choice by providers, if you coincidentally have such a provider and your IP is also static enough (also a rarity with mobile data bundles) you might have gotten lucky and be able to use it as host. But that doesn't mean it's ideal or even suitable, as mobile data reception can change with the second even if your device angle doesn't change, it can cause connectivity drops and most of all use up expensive bandwith. I also once had a 4G modem/portable router for a poor reception area (to use on a camping site) and it turned out it was unrestricted (all ports open, not firewalled by provider at all) and also had that with a smartphone data bundle once. I advise you to do some port tests to find out if you also got that lucky with your own provider.
    1 point
  23. This question heavily depends on your ISP and cannot be answered in general. If you're talking about mobile data in terms of smartphone plans, the answer is most likely 'no' since mobile IPs are shared in most cases and you can't do port forwarding. However, some ISPs offer pure data plans via LTE/4G for regions with poor availability of wired connections that have a true non-shared IP. It's still a dynamic IP though, so it changes at least once a day and therefore is not really suitable for hosting (also high latency is a problem). Instead, I'd suggest you take a look at our hosters section: https://www.multitheftauto.com/hosters
    1 point
  24. I think it's pointless to discuss this, it's been brought up many times before and LUA is powerful enough for something like MTA. It's far too heavily implemented to change it into another language, would take a bigger development team to take it all apart and swap languages and can bring a long time of instability and alpha testing. You guys forget it's more complicated than just swapping the lua lib/dependencies, MTA was designed with using LUA in mind so much of the codebase was made reliant on it, by integrating LUA-specific stuff as deep as in the MTA core. It's practically impossible to revert all of that.. Also it's clear you guys who are discussing in this topic don't have a development spirit (in broader meaning) because if you understood development is 60% planning/researching and 40% coding itself, you'd realise its technically impossible to change the scripting language at this point in MTA development, it's too late. Ofcourse nothing is impossible as you've seen with other big integrations in the past, but as LUA suffices in most needs for MTA (you always have languages believed to be better such as what you suggest here, but as I said before, LUA is a powerful enough lang for MTA) so this versus the big operation/manpower needed to swap languages simply isn't worth it. Other languages don't offer much that LUA for our purposes cannot achieve, so nothing can justify the big codebase overhaul this would be. To conclude what I just wrote, topics like this, are just like topics asking if MTA:V will ever get released, discussions that keep getting launched over and over. So this will be locked.
    1 point
  25. addEventHandler ( "onClientGUIChanged" , YourEdit , function ( ) local TheText = guiGetText ( source ) if ( not tonumber ( TheText ) ) then guiSetText( source, TheText:sub( 1, #TheText-1 ) ) end end ) الطريقة الي فوق راح تحذف كل شي بالايدت مجرد كتابة اي حرف اما طريقتي حتى لو كتب احرف وفيه ارقام بالايدت راح يمنعه من كتابة الاحرف فقط
    1 point
  26. ه ه ه ه ه يا شيخ تراك نوب + وش مفهمك بهسوالف يب انا اشتريهم في مشلكة ابي ادفع فلوس عل فاضي حاب اطفر
    1 point
  27. اسمع بس بدي احمل السيرفر وصدق لجيبلك المودات كلهن + ومشان ما تقولو كذاب رح ارفعلكو رابط التحميل هنا في هذا الموضوع
    1 point
  28. Por una parte puede ser para emular programación orientada a objetos y por otra (difícilmente en MTA) para simular entornos aislados, sin embargo, ni en Lua ni en MTA son buenas opciones, sobre todo la primera, pues no estamos en un lenguaje pensado para eso y ocasiona malgaste de recursos.
    1 point
  29. بسم الله الرحمن الرحيم السلام عليكم ورحمة الله وبركاتة لقد تم عمل هذا الشرح خصيصاً للاعضاء الذين لايعرفون طريقة عرض الاكواد لنبدأ بالشرح الخطوة الأولي : الخطوة الثانية : النتيجة : setElementPosition getElementData وهكذا قد انهينا الشرح و الحمدلله وطبعا لاننسى ترتيب الاكواد الذي تم ذكره في موضوع الاخ تيتي الله يعطيه العافية وبالتوفيق للجميع
    1 point
×
×
  • Create New...