SA-MP Forums Archive
[Tool/Web/Other] [PHP]Count strings very easy! - 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] [PHP]Count strings very easy! (/showthread.php?tid=193832)

Pages: 1 2


[PHP]Count strings very easy! - zSuYaNw - 27.11.2010

Introduction:
This documment is very easy, you copy text and past.

Resume:
You copy text, past.

Screenshots:




Credits:
--> [FeK]Garfield

Download:
• < Test
• < Download


Re: [PHP]Count strings very easy! - KevinsL - 27.11.2010

nice


Re: [PHP]Count strings very easy! - Caribe_Visk - 27.11.2010

Very good!


Re: [PHP]Count strings very easy! - ipsBruno - 27.11.2010

Garfield,made it in JavaScript,is best!

'He Page HTML Count Chars in one String'
Example:

aaa = 3 Chars


Re: [PHP]Count strings very easy! - zSuYaNw - 27.11.2010

Quote:
Originally Posted by [FeK]DraKiNs
View Post
Garfield,made it in JavaScript,is best!

'He Page HTML Count Chars in one String'
Example:

aaa = 3 Chars
NoNo, My style is more Beatiful =D


Re: [PHP]Count strings very easy! - WillyP - 27.11.2010

GJ!

whyso8char?


Re: [PHP]Count strings very easy! - Macintosh - 27.11.2010

Gato Gostoso euri

Very Good Cat
nice Job (:


Re: [PHP]Count strings very easy! - zSuYaNw - 27.11.2010

Quote:
Originally Posted by [FU]Victious
View Post
GJ!

whyso8char?
This is exemple = 16 caracters
1951121984 = 10 Caracters


Re: [PHP]Count strings very easy! - Macintosh - 27.11.2010

Tambйm to meio avuano nisso '-'


Re: [PHP]Count strings very easy! - Gh0sT_ - 27.11.2010

Ah.. mistake: Samp bug - if aaa 'formated' with 3 string symbol[ i mean format( str, 3, "aaa", aaa); the message will be not aaa, but aa. so you need to add 1 in finish, example:

aaa = 4

and idea: if you add in test %d or %i the string count will be 11

idea2: if ppl want to count string like this:

%s is back now. = 47, not 15.


Re: [PHP]Count strings very easy! - zSuYaNw - 28.11.2010

Update!
Now count char+Null.
Thanks foi idea Gh0sT_.

Download
•- Test
•- Pastebin


Re: [PHP]Count strings very easy! - [L3th4l] - 28.11.2010

Probably a bug, i type "Test" ( without the " " ) and get 5 characters.


Re: [PHP]Count strings very easy! - Retardedwolf - 28.11.2010

Quote:
Originally Posted by [L3th4l]
Посмотреть сообщение
Probably a bug, i type "Test" ( without the " " ) and get 5 characters.
I guess he made it so theres +1 to tell them they need a slot for the NULL terminator.


Re: [PHP]Count strings very easy! - [L3th4l] - 28.11.2010

Quote:
Originally Posted by Retardedwolf
Посмотреть сообщение
I guess he made it so theres +1 to tell them they need a slot for the NULL terminator.
Yeah, i just saw the source


Re: [PHP]Count strings very easy! - zSuYaNw - 28.11.2010

Quote:
Originally Posted by Retardedwolf
Посмотреть сообщение
I guess he made it so theres +1 to tell them they need a slot for the NULL terminator.
Yeah,

Null = +1

Exemple:
Код:
code+1 = 5



Re: [PHP]Count strings very easy! - ipsBruno - 28.11.2010

Quote:
Originally Posted by Gh0sT_
Посмотреть сообщение
Ah.. mistake: Samp bug - if aaa 'formated' with 3 string symbol[ i mean format( str, 3, "aaa", aaa); the message will be not aaa, but aa. so you need to add 1 in finish, example:

aaa = 4

and idea: if you add in test %d or %i the string count will be 11

idea2: if ppl want to count string like this:

%s is back now. = 47, not 15.
aaa = 3
aaa
№ Іі

Counts String

I not cited SAMP!


Re: [PHP]Count strings very easy! - Rafelder_GRF - 02.12.2010

Another HTML/Javascript solution:
Testlink
Pastebin


Re: [PHP]Count strings very easy! - Axuj - 02.12.2010

Thx so much, keep it going


Re: [PHP]Count strings very easy! - Hiddos - 02.12.2010

If I type 'trolololo', it says it's 10 characters but it's obviously 9. Is this done on purpose or..?


Re: [PHP]Count strings very easy! - Retardedwolf - 02.12.2010

Quote:
Originally Posted by Hiddos
Посмотреть сообщение
If I type 'trolololo', it says it's 10 characters but it's obviously 9. Is this done on purpose or..?
Up,up. (8char)


Quote:
Originally Posted by Retardedwolf
Посмотреть сообщение
I guess he made it so theres +1 to tell them they need a slot for the NULL terminator.