Thread: Only Numbers
View Single Post
Author Message
Dragos
Senior Member
Join Date: Oct 2018
Location: Romania
Old 02-20-2021 , 15:05   Only Numbers
Reply With Quote #1

Hello,

I'm pretty sure it was a function like this.

So, It check If the entered words contain only numbers, no words

PHP Code:
new szArg[192];
    
read_argsszArgcharsmaxszArg ) );
    
remove_quotesszArg );
    new 
ids str_to_num(szArg)
    
    if(
ids == 0) {
        
culoare(id"!g[!tSYSTEM!g] !tWe Accept Only Numbers")
        return 
PLUGIN_HANDLED;
    } 
If I write like 123456 it block me
But If I type 123456A, it allow him and pass next
__________________
sup

Last edited by Dragos; 02-20-2021 at 15:05.
Dragos is offline