Only digits.
#3

Quote:
Originally Posted by Remi-X
Do something with IsNumeric. Check if the password which that player gave contains number, and if not, return him to the password gui.
Код:
stock IsNumeric(const string[])
{
	for (new i = 0, j = strlen(string); i < j; i++)
	{
		if (string[i] > '9' || string[i] < '0') return 0;
	}
	return 1;
}
Thank you.
Reply


Messages In This Thread
Only digits. - by Martin_M - 07.12.2009, 12:21
Re: Only digits. - by Remi-X - 07.12.2009, 12:29
Re: Only digits. - by Martin_M - 07.12.2009, 12:43

Forum Jump:


Users browsing this thread: 1 Guest(s)