Results 1 to 10 of 12

Thread: custom ID ban

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #9
    Private First Class
    Join Date
    Oct 2013
    Posts
    219
    Thanks
    56
    Thanked 105 Times in 66 Posts
    Quote Originally Posted by Ni3ls View Post
    How does this
    Code:
        asc = getAscii(char);
        return asc <= 57 && asc >= 48;
    actually work?
    Have a look at http://www.asciitable.com/

    getAscii returns the ascii number for that char.

    Then it checks if that number is between 48 and 57, which are the ascii numbers for 0-9.

    EDIT: Sniped.

  2. The Following User Says Thank You to filthy_freak_ For This Useful Post:

    Ni3ls (12th November 2015)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •