Best way to detect if players entered text is only digits?
#9

PHP код:
IsPinCode(input[])
{
    new 
len strlen(input);
    if(
len != 4) return 0;
    for(new 
0len++) if(input[i] < '0' || input[i] > '9') return 0;
    return 
1;

Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 5 Guest(s)