27.05.2013, 21:31
You can use sscanf for that. Example:
Код:
new player;
if(!sscanf(inputtext, "u", player))
{
// Input text is valid player name / ID
}

