SA-MP Forums Archive
[Tool/Web/Other] 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] Character Counter (/showthread.php?tid=375215)



Character Counter - Pizzy - 05.09.2012

This download unavailable until source is provided.


Re: Character Counter - TouR - 05.09.2012

What usefull tool. Thank you I gonna use it


Re: Character Counter - Chris White - 06.09.2012

It's easily done dude. Any beginner in C# or VB.net can do it. You just do
Code:
label1.Text = textBox1.Text.Length.ToString() + " Characters";
and can also be done in PAWN


Respuesta: Re: Character Counter - TheChaoz - 06.09.2012

Quote:
Originally Posted by ******
View Post
Are you aware that pawno, Notepad++, and most other editors anyone uses already has this built in?
Not to contradict you, but I never saw this in pawno, could you tell me how to use this feature in the IDE mentioned?


Re: Character Counter - Chris White - 06.09.2012

lawl, rofl. Didn't you ever hear about strlen(text); ? well, if you didn't, you use this function to get the size of the string or the number of characters. The return value is an int.
You can use it like this:
pawn Code:
new length = strlen("Hey samp");
and the result would be 8
for more info, click here: https://sampwiki.blast.hk/wiki/Strlen


Re: Character Counter - StatusRed - 06.09.2012

I just use OpenOffice's built in word counter... :S


Re: Respuesta: Re: Character Counter - Pizzy - 06.09.2012

Quote:
Originally Posted by ******
View Post
If your script was large, it would be highly irritating having to do that. Is it not easier pasting it into this? I'd prefer doing so, but everyone is different I guess.


Respuesta: Re: Respuesta: Re: Character Counter - TheChaoz - 06.09.2012

Quote:
Originally Posted by ******
View Post
Ain't that system bugged?

"a b" this says 6 (counting the tab as 4 slots due on the code the indent is set to fit 4 slots, but the truth is, that a tab character is ('\t') so it should say 3 and not 6.

Still i did never realize of that, so thx.


Respuesta: Character Counter - TheChaoz - 08.09.2012

Then it's my bad. Always learning things Thx ******


Re: Character Counter - Pizzy - 25.09.2012

small bump.