اذهب إلى المحتوى

محمد خالد51

الأعضاء
  • المساهمات

    58
  • تاريخ الانضمام

  • تاريخ آخر زيارة

كل منشورات العضو محمد خالد51

  1. <html> <head> <meta charset="utf-8"/> </head> <body> <form action="" method="post"> <input type="text" name="number" placeholder="ادخل رقم ما"/> <input type="submit" name="click" value="النتيجه"/> </form> <?php if(isset($_post['click'])) { $num=$_post['number']; echo $num *10; } ?> </body> </html> لا يظهر في الصفحة بالقائمة المنسدلة التابعة لأيقونة التسجيل الأرقام ولا يقوم بعملية الضرب كيف احل المشكلة
  2. https://www.raed.net/file?id=77008 هذا رابط تحميل ملف المشكلة في الأيقونة التي اسمها test
  3. <!DOCTYPE html> <html> <head> <script src="js/jquery-1.11.2.min.js"></script> <script src="js/bootstrap.min.js"></script> <script src="js/bootstrap.min.js" type="test/javascript"></script> <link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" /> <link rel="stylesheet" type="text/css" href="css/bootstrap.css" /> </head> <body> <nav class="navbar navbar-expand-lg bg-light"> <div class="container-fluid"> <a class="navbar-brand" href="#">Navbar</a> <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"> <span class="navbar-toggler-icon"></span> </button> <div class="collapse navbar-collapse" id="navbarSupportedContent"> <ul class="navbar-nav me-auto mb-2 mb-lg-0"> <li class="nav-item"> <a class="nav-link active" aria-current="page" href="#">Home</a> </li> <li class="nav-item"> <a class="nav-link" href="#">Link</a> </li> <li class="nav-item dropdown"> <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false"> Dropdown </a> <ul class="dropdown-menu" aria-labelledby="navbarDropdown"> <li><a class="dropdown-item" href="#">Action</a></li> <li><a class="dropdown-item" href="#">Another action</a></li> <li> <hr class="dropdown-divider"> </li> <li><a class="dropdown-item" href="#">Something else here</a></li> </ul> </li> <li class="nav-item"> <a class="nav-link disabled">Disabled</a> </li> </ul> <form class="d-flex" role="search"> <input class="form-control me-2" type="search" placeholder="Search" aria-label="Search"> <button class="btn btn-outline-success" type="submit">Search</button> </form> </div> </div> </nav> </body> </html> كيف ا حل مشكلة القائمة المنسدلة jquery
  4. CharacterController ch; Animator anim; public float gravty = 2f; public float Speed = 5f; float verticalVelocity ; public float jumpValue = 10f; // Start is called before the first frame update void Start() { ch = GetComponent<CharacterController>(); anim = GetComponentInChildren<Animator>(); } // Update is called once per frame void Update() { float movwePlayer = Input.GetAxis("Horizontal"); if (movwePlayer > 0) { transform.eulerAngles = new Vector2(0, 90); } else if (movwePlayer < 0) { transform.eulerAngles = new Vector2(0, -90); } bool isSpring = Input.GetKey(KeyCode.LeftShift); // كل ما اضغط D و Leftshift ما يزيد السرعه //bland tree float sprint = isSpring ? 1.7f : 1; // Vector3 moveDD = new Vector3(movwePlayer, 0, 0) ; Jump(); anim.SetFloat("Speed", Mathf.Clamp(moveDD.magnitude,0,0.5f)); moveDD = new Vector3(moveDD.x * Speed*sprint , verticalVelocity , moveDD.z * Speed *sprint); ch.Move( moveDD * Time.deltaTime); } public void Jump() { if (ch.isGrounded) { if (Input.GetAxis("Jump") > 0) verticalVelocity = jumpValue; } else verticalVelocity -= gravty * Time.deltaTime; } }
  5. هل هل لديكم طريقه عندعندا اطلق انار يتحرك الى الامام دون الحركه الجانبيه
  6. السلام عليكم شكرا لقد جربت الكثير من الطرق ولم تفلح وأتمنى النجاح للجميع وان تعم الفائدة public class onrD : MonoBehaviour { public GameObject panelGameover; private void Start() { } void OnTriggerEnter2D(Collider2D other) { if(panelGameover!=false) { panelGameover.SetActive(true); Destroy(gameObject); } if( other.gameObject.tag=="game" ) { Destroy(other.gameObject); Destroy(gameObject); } }
  7. public class onrD : MonoBehaviour { public GameObject panelGameover; public void OnTriggerEnter2D(Collider2D other) { if( other.gameObject.tag=="game") { panelGameover.SetActive(true); Destroy(other.gameObject); Destroy(gameObject); } } } واجهت القيم اوفر لا تظهر فاتمنى المساعده
  8. لدي مشكله ولم اعرف كيف احلها وتتكرر معي اليونتي using System.Collections; using System.Collections.Generic; using UnityEngine; [System.Serializable] public class Astroid { public gameSpanewr astroid; // public GameObject astroidobj; public int count; public float startwait,spawnwait,wavewait; } public class gameSpanewr : MonoBehaviour { void Start() { StartCoroutine(AstroidwaveSpawner()); } IEnumerator AstroidwaveSpawner() { yield return new WaitForSeconds (astroid.startwait); while(true) { for( int i=0; i<astroid.count;i++) { Vector2 newpos= new Vector2 (Random.Range(spawnposition.x,-spawnposition.x),spawnposition.y); Instantiate(astroid.astroidobj,newpos,Quaternion.identity); yield return new WaitForSeconds (astroid.spawnwait); } yield return new WaitForSeconds (astroid.wavewait); } } } مشكلة_(اعادت_تكرار_الخصوم).bmp
  9. ايش مشكلته vector2 movement = new vector2(moveHorizontal, moveVertical);
  10. public class playership : MonoBehaviour { void fixedUpdate() { float MoveHorizontal = Input.GetAxis("Horizontal"); float Movevertical = Input.GetAxis("vertical"); //لا تظهر علامات Vector2- Vector2 movment = new Vector2(MoveHorizontal, Movevertical); // GetComponent<Rigidbiody2D>().velocity GetComponent<Rigidbiody2D>().velocity = movment * 5f; } }
  11. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class car { private int ID; private string Color; private string Model; //الخصائص public int ID_privatee { get { return ID; } set { this.ID = value; } } public string Color_privatee { get { return Color; } set { this.Color = value; } } public string Model_privatee { get { return Model; } set { this.Model = value; } } public void information(int ID, string Color, string Model) { this. ID = ID; this. Color = Color; this. Model = Model; } public void information() { information(95," blue", "once"); } public void showd() { Console.WriteLine("this is ID:{0}\n this is color:{1}\nthis is model:{2}", ID, Model, Color); } } class Program { static void Main(string[] args) { //ما هي المشكله car mycar = new /*car*/ (123, "blue", "nine"); Console.WriteLine(); } } } مشكله.bmp اتمنى المساعده
  12. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class car { private int ID; private string Color; private string Model; //الخصائص public int ID_privatee { get { return ID; } set { this.ID = value; } } public string Color_privatee { get { return Color; } set { this.Color = value; } } public string Model_privatee { get { return Model; } set { this.Model = value; } } public void information(int ID, string Color, string Model) { this. ID = ID; this. Color = Color; this. Model = Model; } public void information() { information(95," blue", "once"); } public void showd() { Console.WriteLine("this is ID:{0}\n this is color:{1}\nthis is model:{2}", ID, Model, Color); } } class Program { static void Main(string[] args) { //Car ما هي اشكاليته car mycar = new car (123, "blue", "nine"); Console.WriteLine(); } } }
  13. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApp1 { class car { int ID; string Color; string Model; public void information(int ID,string Color,string Model) { ID = ID; Color = Color; Model = Model; } public void showd() { Console.WriteLine("this is ID:{0}\n this is color:{1}\nthis is model:{2}", ID, Model, Color); } } class Program { static void Main(string[] args) { car myCar = new car(); // عندما اكتب //myCar.information(); //يحدث خط تحت الانفورميشن myCar.information(95," blue", "once"); myCar.information(); //ما هيا المشكله Console.ReadKey(); } } } نرجو المساعدة
  14. كيف اكتب اول كود للمكعب لتحريك
  15. namespace test { class Program { static void one (int num) { num =5; Console.WriteLine("Write number" + num); } static void Main(string[] args) { int num = 6; one(num); Console.WriteLine("number" + num); Console.ReadLine(); } } } اجد انك تستخدم (args) دون كتابة(static void one (int num)) (args)هل هي شاملا
  16. مال الفرق بين reference type \ value type وما الرابط بينهم مع الشرح:
  17. (1) public static void Main(string[] args) (2) public static void Main() ما الفرق بينهم
  18. هل بامكانك كتابة الاكواد لاستطيع التجربه
×
×
  • أضف...