Dialog input trouble
#2

IsNumeric.

pawn Код:
stock isnumeric(szStr[])//******
{
    new
        ch,
        i;
    while ((ch = szStr[i++])) if (ch < '0' || ch > '9') return 0;
    return 1;
}
pawn Код:
if(IsNumeric(inputtext) {
..
}
Reply


Messages In This Thread
Dialog input trouble - by Gerira Gaijin - 17.01.2012, 20:27
Re: Dialog input trouble - by 2KY - 17.01.2012, 20:42
Re: Dialog input trouble - by Gerira Gaijin - 17.01.2012, 20:43

Forum Jump:


Users browsing this thread: 2 Guest(s)