Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 23/12/17 in all areas

  1. حتى نفهم أكثر يجب أن تعرف ما هي كلاس بالأول يوجد شروحات كثيرة عنها انا سوف أقوم بشرحه ولكن قم بمعرفة ما هو الكلاس بالأول -------------------------------------------------------------------- أعتبر عندك أثنين كلاس 1- class Car 2-class Driver كلاس الأول Car يوجد بها مثغير أسمه name ------------------- كلاس ثاني Driver يوجد به method (Function) أعتبر أسم فنكشن getName() وظيفة الفانكشن أستدعاء name الموجود في كلاس الأول كيف نقوم بذلك؟ أحد طرق عن طريق تعريف متغير من نفس نوع الكلاس ألاول مثال void getName(){ car Obj = new car(); Console.log(Obj.name) ; // طبعا طبعت أسم سيارة } حتى نقدر نستدعي متغير من كلاس أخر يجب أن يكون متغير public لو كان private لا نقدر ان نستدعيه من كلاس أخر ولكن يمكن أستخدامه من الكلاس نفسه ============================================================ class car{ private name; } class driver{ void getName(){ car Obj = new car(); console.log(Obj.name) ; // سوف يظهر لنا مشكلة بأنك لا تستطيع الوصول اليه لأنه private } } بالكود تالي يوجد خطأ بأنك لا تقدر توصل للمتغير name لأنه private تصحيح الكود class car{ public name; } class driver{ void getName(){ car Obj = new car(); console.log(Obj.name) ; } }
    3 points
  2. وصلت المعلومة الله يعطيكم الف عافية
    2 points
  3. شرح ممتاز يالغلا مبدع لكن لو غيرت الخط الى لون فاتح ممكن لأنك حاطط ثيم فاتح
    2 points
  4. أولا شكرا لك على رد , انا عملت الموضوع لأنه في شخص أستفسر عن ما هو private بشكل عام وحبيب أعمل موضوع عنه لأنه ما كان في رد , أكيد أنه ليس من الأمن جعل متغييرات public فيفضل أتسرجاع القيمة عن طريق methods وجعل متغير private ان شاء الله ادا في حد طلب دا شرح سوف أقوم بعمل موضوع أخر يوضح دلك أشكرك مرة أخرى
    2 points
  5. شرح حلو بس لو موضح هذي الشغلة يكون افضل عشان يكون اوضح للمبتدئين ان اذا كان برايفت لازم نستخدم الـ accessor/mutator methods عشان نتحكم بالمتغير
    2 points
  6. <!DOCTYPE html> <html> <head> <style> h1 { background-color: #FF9900; } body { background-color: #3a3a3a; color: #000000; } </style> <title> ibrahim </title> </head> <body> <center><h1> Test </h1> </center> </body> </html> تمام فهمتكم الله يعطيكم العافية , الحين الوسم style يعني css صح ؟
    1 point
  7. شف هيكلك العظمي وتفصيل الجمجمه الخ ذا HTML شف لون عيونك لون بشرتك لون شعرك الخ ذا CSS شف عقلك ذا SQL شف النطق وتمارين الرياضه حقتك وكيف تاكل وترقد ذا PHP وصلت الفكره
    1 point
  8. يب firebase كويس بس انا ما بحب أعتمد على خدمة جاهزة بحب أبرمجها من صفر
    1 point
  9. HTML : تعتبر لغة ترميز نص وليست لغة برمجة يمكنك من خلالها تصميم موقع مثل نصوص وجداول وصور ... ولكن لا يمنك من خلالها تنصيق الموقع مثل الألوان ... CSS : تعتبر تقنية من خلالها تنسق الموقع مثل الألوان الحجم ونوع الخط الى أخره PHP : تجعل الموقع يتفاعل مع المستخدم يعني مثل تسجيل دخول و أدخال معلومات على قاعدة البيانات وأسترجاعها وتحكم بها , حتى تقوم بتعلم برمجة المواقع يجب ان تبدء بتعلم HTML بعد دلك CSS وبعدها PHP وأيضا SQL حتى تتعلم كيفية تحكم بداتا بقاعدة البيانات وشكرا عندي بس تعليق بسيط php غير جيد بعمل للعبة أونلاين بأستخدامها لحالها تريد لغة أكثر مرونة مثل جافا سكربت NodeJS
    1 point
  10. وعليكم السلام ورحمة الله وبركاتة هلا والله يا عسل اوكيه بسم الله نبدا اول شي لغة htmlولغة css وصفية نبدا اول شي ب html هي لغة لبناء هيكل الموقع بدون الاهتمام بالتنسيق تتعامل معها عن طريقة الاوسمة بحيث ان مافي موقع يخلو من هذي اللغة مثال عليها <a id='linklabel' herf='https://google.com'>click here pls</a> حلو الان نجي للغة الثانية وهي css هي لغة لتنسيق شكل الموقع وملائمته لجميع الشاشات الخ تقدر تحطها داخل كود html عن طريق وسم style او تقدر تسوي لها ملف خاص بها ينتهي ب .css عامة خلينا ما نتطرق داخل الموضوع ذا مره لان في اكثر من طريقة نشوف مثال #linklabel{ color:#ff0000; font-size:12px; left:20px; top:100px; } كذا غيرت البوزيشن حق الليبل حق اللنك اللي فوق وحجم الخط ولونة الان نجي للغة بي اتش بي لها اكثر من استخدام مثال برمجة المواقع -بوتات دسكورد-سكربتات منتديات -العاب اونلاين الخ المهم نشوف مثال <?php function printtext($text){ print"$text"; } printtext('my name is master'); ?> اتمنى اكون افدتك بالتوفيق يا عسل
    1 point
  11. عليكم السلام هذي لغات برمجة html = تصميم المواقع css = تنسيق المواقع وتستخدم مع html php = لغة برمجة ليها مجالات مختلفة وتستخدم ايضاً لبرمجة المواقع ولكن خاصة بالسيرفر سايد مثل قواعد البيانات .. الخ
    1 point
  12. أولا تحياتي لك , ثانيا أرى أستخدام php في عملية شات أمر غير جيد .... نهائيا , يفضل أستخدام Socket أو حتى ربطه بي nodeJS Socket.IO
    1 point
  13. Contact me ASAP via Discord: Sawos#5818
    1 point
  14. Create separated calculation for scroll bar. -- items scroll local visibleHeight = ((list['sizeY'] * 250) / 12) local overallHeight = (#guiSystem_element['list']['item'] * 20) local scrollPosition = 0 -- scroll position should be zero at the first time, the range is between 0 - 100 local itemCoorY = list['posY'] local currentCoorY = itemCoorY -- scroll bar local scrollX, scrollY -- x, y position local scrollIconWidth -- the width of the scroll bar icon (that circle image) local scrollIconHeight -- the height of the scroll bar icon (that circle image) local scrollBarHeight -- the height of the scroll bar -- find the exact Y so it doesn't move outside the scrollBarHeight local newScrollY = (scrollBarHeight-scrollIconHeight)*scrollPosition/100 -- value is positive currentScrollY = scrollY + newScrollY -- and render it > dxDrawImage(scrollX, currentScrollY, scrollIconWidth, scrollIconHeight, ...) -- event when player scroll mouse addEventHandler( "onClientKey", root, function (button, press) local offset = 1 -- move by 1 value when scrolled, higher value = scroll faster if button == "mouse_wheel_up" then scrollPosition = math.max(0, scrollPosition - offset) elseif button == "mouse_wheel_down" then scrollPosition = math.min(100, scrollPosition + offset) end end )
    1 point
  15. addEventHandler("onClientRender", root, function() local screenW,screenH = guiGetScreenSize() -- The variables local SonR = getElementData(localPlayer, "SonidoNotiReproducido") if SonR == "Si" then playSound("files/noti.ogg") setElementData (localPlayer, "SonidoNotiReproducido", "No") end local NumNoti = getElementData(localPlayer, "CuantaNotificacion") if NumNoti == 1 then dxDrawRectangle(screenW * 0.0578, screenH * 0.9333, screenW * 0.1578, screenH * 0.0574, tocolor(1, 0, 0, 110), false) dxDrawImage(screenW * 0.0578, screenH * 0.9333, screenW * 0.0354, screenH * 0.0574, "Images/Noti.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawText(""..NumNoti.." Notificación", (screenW * 0.0932) - 1, (screenH * 0.9333) - 1, (screenW * 0.2156) - 1, (screenH * 0.9907) - 1, tocolor(0, 0, 0, 255), 1.10, "sans", "center", "center", false, false, false, false, false) dxDrawText(""..NumNoti.." Notificación", (screenW * 0.0932) + 1, (screenH * 0.9333) - 1, (screenW * 0.2156) + 1, (screenH * 0.9907) - 1, tocolor(0, 0, 0, 255), 1.10, "sans", "center", "center", false, false, false, false, false) dxDrawText(""..NumNoti.." Notificación", (screenW * 0.0932) - 1, (screenH * 0.9333) + 1, (screenW * 0.2156) - 1, (screenH * 0.9907) + 1, tocolor(0, 0, 0, 255), 1.10, "sans", "center", "center", false, false, false, false, false) dxDrawText(""..NumNoti.." Notificación", (screenW * 0.0932) + 1, (screenH * 0.9333) + 1, (screenW * 0.2156) + 1, (screenH * 0.9907) + 1, tocolor(0, 0, 0, 255), 1.10, "sans", "center", "center", false, false, false, false, false) dxDrawText(""..NumNoti.." Notificación", screenW * 0.0932, screenH * 0.9333, screenW * 0.2156, screenH * 0.9907, tocolor(255, 255, 255, 255), 1.10, "sans", "center", "center", false, false, false, false, false) end if NumNoti >= 2 and NumNoti <= 99999 then ----------------Line 647 dxDrawRectangle(screenW * 0.0578, screenH * 0.9333, screenW * 0.1578, screenH * 0.0574, tocolor(1, 0, 0, 110), false) dxDrawImage(screenW * 0.0578, screenH * 0.9333, screenW * 0.0354, screenH * 0.0574, "Images/Noti.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawText(""..NumNoti.." Notificaciones", (screenW * 0.0932) - 1, (screenH * 0.9333) - 1, (screenW * 0.2156) - 1, (screenH * 0.9907) - 1, tocolor(0, 0, 0, 255), 1.10, "sans", "center", "center", false, false, false, false, false) dxDrawText(""..NumNoti.." Notificaciones", (screenW * 0.0932) + 1, (screenH * 0.9333) - 1, (screenW * 0.2156) + 1, (screenH * 0.9907) - 1, tocolor(0, 0, 0, 255), 1.10, "sans", "center", "center", false, false, false, false, false) dxDrawText(""..NumNoti.." Notificaciones", (screenW * 0.0932) - 1, (screenH * 0.9333) + 1, (screenW * 0.2156) - 1, (screenH * 0.9907) + 1, tocolor(0, 0, 0, 255), 1.10, "sans", "center", "center", false, false, false, false, false) dxDrawText(""..NumNoti.." Notificaciones", (screenW * 0.0932) + 1, (screenH * 0.9333) + 1, (screenW * 0.2156) + 1, (screenH * 0.9907) + 1, tocolor(0, 0, 0, 255), 1.10, "sans", "center", "center", false, false, false, false, false) dxDrawText(""..NumNoti.." Notificaciones", screenW * 0.0932, screenH * 0.9333, screenW * 0.2156, screenH * 0.9907, tocolor(255, 255, 255, 255), 1.10, "sans", "center", "center", false, false, false, false, false) end local cantidadnew = getElementData(localPlayer, "NotificacionNews") if cantidadnew == 0 then guiSetVisible(notificacion1, false) end if cantidadnew >= 1 and cantidadnew <= 100 then guiSetVisible(notificacion1, true) end end ) ERROR: PANEL\C_Panel.lua:647 attemp to compare number with bolean ----Helps Please
    0 points
  16. Estoy bastante seguro de que setCameraClip sólo funciona en objetos del mundo, es decir, el mapa original de GTA, todo objeto creado por createObject no es afectado por setCameraClip. Me temo que no puedes hacer nada.
    0 points
×
×
  • Create New...