[Tool/Web/Other] Advanced character counter
#1

Character counter
By Nicolбs Harrinston

Introduction
This tool count all the characters in a textbox and convert it in a string. I had planned this release but I saw the other character counter and he make my idea before, so I release it a bit more advanced.



Images



Download
- Character counter + Sourcecode



Credits
- Nicolбs Harrinston

DON'T REMOVE CREDITS

NO MIRRORS
Reply
#2

Great!
Very Nice!
Reply
#3

Well, you should also count the EOF char ('\n') and consider that an integer could have a maximum value of "2147483647", plus the minus in front of it if it's negative.
So, "Hello, i'm a string how have -2147483647 characters\n" should have a maximum size of 53.
Reply
#4

Quote:
Originally Posted by DarkSlyder
View Post
Well, you should also count the EOF char ('\n') and consider that an integer could have a maximum value of "2147483647", plus the minus in front of it if it's negative.
So, "Hello, i'm a string how have -2147483647 characters\n" should have a maximum size of 53.
This tool is not too advanced, I put advanced in the title because this is not the classic character counter tool. This is for when you have a string, you make it directly with this tool, if you will make an advanced string you won't use this tool, thanks for the comments.
Reply
#5

Yeah... simple... useful.... 7/10 ;P
Reply
#6

Quote:
Originally Posted by DarkSlyder
View Post
Well, you should also count the EOF char ('\n') and consider that an integer could have a maximum value of "2147483647", plus the minus in front of it if it's negative.
So, "Hello, i'm a string how have -2147483647 characters\n" should have a maximum size of 53.
Just want to clear this up, EOF means End-Of-File, not end of line. The \n character constant is a linefeed (or LF).
Reply
#7

Probably I will update this tool to count the \n character and convert it to the string.
Reply
#8

Yep, my fault, I meant EOL, but it's usually '\0' anyway.
Reply
#9

;o cooL!!
Reply
#10

Currently there are about five or six tools as this in SA-MP Forums,
anyway really good job, useful buttons and it's faster.
Actually, I won't use it because it takes too much time for me. 5/5
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)