04.09.2009, 10:24
Loop throught whole player name and check each character until you find some digit
Change "name" to your variable containing name which you want to check.
pawn Код:
for (new pos; name[pos] && pos < MAX_PLAYER_NAME; pos++)
{
if ('0' <= name[pos] <= '9')
{
// this symbol is a digit
break;
}
}