Written Chinese uses characters, not an alphabet.
Chinese characters represent meaningful spoken syllables or parts of words. Pinyin uses Roman letters to show Mandarin pronunciation, but it does not replace the characters used in normal Chinese writing.
你 is the written character. nǐ is its Pinyin pronunciation. In a word such as 你好, two characters work together.