Only words
#3

You could use the function IsNumeric or just make your own version. Here's the IsNumeric function.

pawn Код:
IsNumeric(const string[])
{
    for (new i = 0, j = strlen(string); i < j; i++)
    {
        if (string[i] > '9' || string[i] < '0')
        {
            return 0;
        }
    }
    return 1;
}
That's an older version. There may be a newer version out there. I'm not sure if this would return false if there was a string like "f2fs984hg2". If it did say that wasn't numeric then you could just use a loop to search the string for any number.
Reply


Messages In This Thread
Only words - by Dws - 23.06.2010, 18:02
Re: Only words - by Hiddos - 23.06.2010, 18:20
Re: Only words - by Backwardsman97 - 23.06.2010, 18:23
Re: Only words - by dice7 - 23.06.2010, 18:25
Re: Only words - by Dws - 23.06.2010, 18:27
Re: Only words - by dice7 - 23.06.2010, 18:28
Re: Only words - by (SF)Noobanatior - 23.06.2010, 18:31
Re: Only words - by dice7 - 23.06.2010, 18:37
Re: Only words - by Dws - 23.06.2010, 18:44

Forum Jump:


Users browsing this thread: 1 Guest(s)