checking the string?
#1

how to check is the string number?
Reply
#2

pawn Код:
stock IsNumeric(string1[])
{
    for (new i = 0, j = strlen(string1); i < j; i++)
    {
        if (string1[i] > '9' || string1[i] < '0')
        {
            return 0;
        }
    }
    return 1;
}
Reply
#3

Thank you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)