help with add force

so i just want to make a simple movement controls
but it gives me these to errors btw this is 2d

Assets\playermovement.cs(14,50): error CS1503: Argument 1: cannot convert from ‘int’ to ‘UnityEngine.Vector2’

Assets\playermovement.cs(14,53): error CS1503: Argument 2: cannot convert from ‘int’ to ‘UnityEngine.ForceMode2D’

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class playermovement : MonoBehaviour
{
    public float f;
    public Rigidbody2D rb;

    // Update is called once per frame
    void FixedUpdate()
    {
       
        if (Input.GetKeyDown("w")) { rb.AddForce(0, 100); }
       
    }
}

That’s not how to use AddForce: https://docs.unity3d.com/ScriptReference/30_search.html?q=addforce

Edit: new link.

Here’s the 2d version: Unity - Scripting API: Rigidbody2D.AddForce

You need to give it a Vector2, not just raw floats.

excuse me but how do i do that

You can create a Vector2 like this:

Vector2 myForceVector = new Vector2(0f, 100f);

thanks it worked perfetly