SA-MP Forums Archive
[Tool/Web/Other] Advanced character counter - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Tools and Files (https://sampforum.blast.hk/forumdisplay.php?fid=82)
+---- Thread: [Tool/Web/Other] Advanced character counter (/showthread.php?tid=322053)



Advanced character counter - Harrinston - 29.02.2012

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



Re: Advanced character counter - totar - 29.02.2012

Great!
Very Nice!


Re: Advanced character counter - SimonItaly - 29.02.2012

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.


Re: Advanced character counter - Harrinston - 29.02.2012

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.


Re: Advanced character counter - MrConso99 - 29.02.2012

Yeah... simple... useful.... 7/10 ;P


Re: Advanced character counter - Vince - 29.02.2012

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).


Re: Advanced character counter - Harrinston - 29.02.2012

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


Re: Advanced character counter - SimonItaly - 29.02.2012

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


Re: Advanced character counter - Niko_boy - 01.03.2012

;o cooL!!


Respuesta: Advanced character counter - [DOG]irinel1996 - 05.03.2012

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