The reason why your \fistudenti does not work has been explained in other answers. I'd like to add a different way to cope with your problem.
It seems that your \PentruStudenti is used for delimiting parts that are conditionally included in your document, depending on the meaning of this macro.
While
\if\PentruStudenti1
<material for the students>
\fi
works, you can be better served with a different approach.
\newif
Define a conditional:
\newif\ifstudentsversion
%\studentsversiontrue % new conditionals start false
...
\ifstudentsversion
<material for the students>
\else
<optional material not for the students>
\fi
Then you can uncomment the \studentsversiontrue line for getting the same you'd get with your \def\PentruStudenti{1}.
Macro with arguments
\newif\ifstudentsversion
%\studentsversiontrue % new conditionals start false
\makeatletter
\newcommand{\studentsversion}{%
\ifstudentsversion
\expandafter\@firstoftwo
\else
\expandafter\@secondoftwo
\fi}
...
\studentsversion{<material for the students>}
{<material for the teacher>}
Again uncommenting the \studentsversiontrue line will switch between printing the first rather than the second argument.
Note that this can go along with the other method. Which one to use in a particular case probably depends on the size of the material.
Comment character
With a good editor it's not difficult to select a region and add at the beginning of the lines some characters; in this application I choose to prefix the “only students” parts with ^^A.
\documentclass{article}
\newcommand{\showstudents}{\catcode`\^^A=9 }
\newcommand{\hidestudents}{\catcode`\^^A=14 }
\hidestudents % default
\begin{document}
\showstudents
This material is seen by everybody.
^^A This material, instead,
^^A is seen only when so
^^A decided.
And this material always shows.
\end{document}
If the \showstudents line is commented out, the ^^A combination will be seen as a comment character exactly like %. If it's not commented, ^^A will be ignored.
{}button. Furthermore we usually don't supply a thanks in the question as that is implicit by your name tag. Enjoy your stay at TeX! :) – nickpapior Jun 21 '13 at 08:22\let\fistudenti\fi.... – Claudio Fiandrino Jun 21 '13 at 08:32