strmfind numbers.
#2

You check each character with a loop:
pawn Code:
ContainsNumbers(const _str_[])
{
    for (new i, j = strlen(_str_); i != j; i++)
    {
        if ('0' <= _str_[i] <= '9') return 1;
    }
    return 0;
}
Reply


Messages In This Thread
strmfind numbers. - by Luicy. - 20.05.2016, 15:13
Re: strmfind numbers. - by Konstantinos - 20.05.2016, 15:19
Re: strmfind numbers. - by Luicy. - 20.05.2016, 15:21
Re: strmfind numbers. - by VVWVV - 20.05.2016, 15:23

Forum Jump:


Users browsing this thread: 1 Guest(s)