Jump to content

#BrosS

Members
  • Posts

    2,102
  • Joined

  • Last visited

  • Days Won

    14

Everything posted by #BrosS

  1. SQL - database
  2. Table = {} getElementsByType table.sort math.max
  3. محاولتك ولا تبينا نسوي لك كل شي وانت مكتوف الأيدي
  4. "onPlayerWasted"
  5. @F_F سجل خروجك من المنتدى اسرع ضض
  6. وتبقى مبتدأ جدا طول عمرك ؟
  7. unfinished string at line 1
  8. بسم الله الرحمن الرحيم السلام عليكم ورحمة الله تعالى وبركاته لأن أظن أغلب الناس ماتعرفه وتحسبه معقد interpolateBetween جاي أشرح لكم فنكشن تابعو معي يمكن الشرح يكون طويل لكن اتمنى تستفيدو تعني الإقتحام مابين أو التأثير بين بكل بساطة كل ماعليك معرفته هو مثل من - الى الفنكشن يسمح لك تسوي أنيمايشن (حركة) بين 6 نقاط حيث تتمثل الثلاث الأولى من إحداثيات البداية والثلاث الثانية النهاية سواءا كان : لوحة - صورة - تصاميم دي إكس - ماركر - كاميرا .. أي شي له إحداثيات # الجملة التركيبية للوظيفة float float float interpolateBetween ( float x1, float y1, float z1, float x2, float y2, float z2, float fProgress, string strEasingType) : العناصر المطلوبة x1, y2, z2 : (..إحداثيات بداية التأثير ( الحركة x2, y2, z2 : إحداثيات نهاية التأثير fProgress : مدة الإحراز أو التقدم التي يأخذها التأثير ( الوقت ) ويكون نوعا ما ب ميلي ثانية strEasingType : نوع الحركة أو التأثير اللذي تريده الأمثلة رح توضح أكثر أعرف انكم مافهمتو بعد حتى نجيب قيمة ب ميلي سكند أو ميلي ثانية نستخدم getTickCount fProgress الوظيفة تقوم بجلب مدة الوقت اللي جهازك كان شغال فيه بالميلي سكند وببعض حسابات نكون اللي نحطه بالنهاية moveObject أنواع الحركة ... تماما مثل من الويكي https://wiki.multitheftauto.com/wiki/Easing الموقع فيه جدول يوضح لك كل أنواع الحركة وكيف تأثيرها مثال لهذا "Linear" : كيفية تأثيرها يعني بشكل مستقيم دون تأثيرات ثانية بالمثال يتضح المقال # الأمثلة # مثال 1 المثال يوريني كيف نخلي لوحة تجي من فوق الى الوسط sx, sy = guiGetScreenSize() test = guiCreateWindow((sx - 454) / 2, (sy - 502) / 2, 454, 502, "test", false) -- لوحة function pop() local rh = interpolateBetween( (sy - 2) / 2,0,0, (sy - 502) / 2,0,0, (getTickCount()-start)/1800, "OutElastic") -- نعرف قيمة واحدة لأننا نريد الإرتفاع فقط guiSetPosition(test,(sx - 454) / 2,rh, false) -- نخلي موضع اللوحة على حسب اللي نبيه end bindKey("F2", "down", function () guiSetVisible(test,true) addEventHandler("onClientRender",root,pop) -- الفنشكن يستخدم مع الرندر start = getTickCount() -- نعيد تعريف وقتنا حتى يتعرف عليه عند الضغط على الزر end) getTickCount()-start/1800 نعيد نجيب الوقت ننقصه من وقت البداية اللي هو عند الضغط على الزر نقسمه على وقت النهاية اللوحة رح تجي لمدة ثانية و 800 ميلي سكند وليس بعد على الأرجح رح يطلعنا start a nil value لذا نقترح نعرفه مرتين "OutElastic" بهذا الشكل ض2 نقدر نستعمل واحدة او اثنين او ثلاث شرط مايكونو فوق ثلاث لأننا مانحتاجهم نحطهم صفر مثال 2 cam نوضح كيف نسوي كاميرا تتحرك من موضع لاخر عند كتابة الكومند start = getTickCount() addCommandHandler("cam", function() start = getTickCount() addEventHandler("onClientRender",root,moveCam) end) function moveCam() x1, y1, z1 = interpolateBetween(500,600,452,800,454,411,(getTickCount()-start)/4000, "Linear") x2, y2, z2 = interpolateBetween(510,620,512,850,464,471,(getTickCount()-start)/4000, "Linear") setCameraMatrix(x1, y1, z1, x2, y2, z2) end الإحداثيات غير مجربة قاعد أخبص فقط لتوضيع المعنى مثال 3 نوري كيف نلون ليبل (كتابة) عند دخول تأشيرة الماوس إليه start = getTickCount() test = guiCreateWindow(454,503, 454, 502, "test", false) label = guiCreateLabel(100, 0, 252, 20, "testing", false, test) guiLabelSetColor(label, 255, 0, 0,255) -- نحط مثلا لون أحمر function colorTheLabel() color1, color2, color3 = interpolateBetween(255,0,0,0,255,0, (getTickCount()-start)/2000, "Linear") -- نحوله من أحمر الى أخضر لمدة ثانيتين end function RestColor() color4, color5, color6 = interpolateBetween(0,255,0,255,0,0, (getTickCount()-start)/2000, "Linear") -- نحوله من أحمر الى أخضر لمدة ثانيتين end addEventHandler("onClientMouseEnter",label, function() start = getTickCount() removeEventHandler("onClientRender",root,RestColor) addEventHandler("onClientRender",root,colorTheLabel) guiLabelSetColor(label, color1, color2, color3,255) end ) addEventHandler("onClientMouseLeave",label, function() start = getTickCount() removeEventHandler("onClientRender",root,colorTheLabel) addEventHandler("onClientRender",root,RestColor) guiLabelSetColor(label, color4, color5, color6,255) end ) الكتابة رح تتلون من احمر الى أخضر عند دخول الماوس اليه و يتحول من اخضر الى أحمر عند الخروج صفحة الويكي https://wiki.multitheftauto.com/wiki/InterpolateBetween هذا كل شي لقد تعبت أتمنى الشرح يكون واضح أي شي غير مفهوم أو غلط يرجى التعليق لأن بعض الأكواد غير مجربة اللعبة ماسحها الموضوع سيتم إعادة تنسيقه حين رجوع جهازي إلي السلام خير الختام
  9. for _ , aPlayers_ in ipairs ( getElementsByType ( "player" ) ) do if ( getElementsWithinColShape ( aArea , aPlayers_ ) ) then local CGroup = getElementData(source,"Group") if getElementData(aPlayers_,"Group") == CGroup then givePlayerMoney(aPlayers,1620) end end end --@%#+95#;(%#' اذا الأكواد اجت ملخبطة اعذرني انا جوال
  10. طريقتي ونصيحتي رح لقسم دروس البرمجة اللي اعطاك اياه مستر ايكو، أي شرح تروح له حتى لو ماتفهم جيب الاكواد وجربها بنفسك مع التجربة تفهم أكثر ويبليك شوي وقت تقريبا شهور مو اليوم الأول تصير محترف ذذ
  11. table.insert
  12. Hey ! it was because of i had around 3GB of temp cache ._. also my MTA mods... cache folder was more than 20BG thanks @Dutchman101 !
  13. Like this ? Okey I'll give you some news soon i try your thing I have driver booster and i installed drivers from it i can see there is no new updates or thing but i will try your links
  14. Alright i got 1.5.4 installed and try the thing , it's still happening and this i restarted my pc means worst than before here's the thing : https://pastebin.mtasa.com/227492974 That's not actually what happend .. after i got not responding issue i tried to enter the game and close it when i've enter my FPS was like 1 or 2 , and i got *** NOTWORK TROUBLE*** then boom disonnected how do you want me to do that while my pc is crashing i can't even see the mouse moving
  15. i've forgot to mention that i got connection lost from my local server ._. [2017-04-25 22:03:43] INFO: #BrosS () connection gone away [2017-04-25 22:03:43] QUIT: #BrosS left the game [Timed out] that was few minuts ago
  16. i'm telling you that start happening after that update thing i'll try 1.5.4 then i will back to ya
  17. deleted class Employee { private int i; double d; // private access by default } copy past
  18. Hoy, i don't know what version i'm using but yesterday when i've run mta it asked me to update and i did since that update i got some issues which is when i start my local server it works fine but after a while like 15 minuts or more , my computer start lagging and not responding and sometimes i got explorer.exe has stop working and the system f**ked up he's the thing that all asks for : https://pastebin.mtasa.com/543026827
  19. https://forum.multitheftauto.com/forum/137-دروس-في-البرمجة/
  20. في اف8 mutetime أتمنى انك تفحص المودات اللي تركبها مو تركب اي شي يجي بيدك
  21. تفضل https://up.top4top.net/downloadf-4801as4g1-zip.html لوحة أدمن من تعديل أحمد مع خصائص رائعة لاحد يقول سراقه هو ناشرها ._.
  22. Mute System ._.
×
×
  • Create New...