[Tool/Web/Other] [PHP]Count strings very easy!
#1

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

Resume:
You copy text, past.

Screenshots:




Credits:
--> [FeK]Garfield

Download:
• < Test
• < Download
Reply
#2

nice
Reply
#3

Very good!
Reply
#4

Garfield,made it in JavaScript,is best!

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

aaa = 3 Chars
Reply
#5

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
Reply
#6

GJ!

whyso8char?
Reply
#7

Gato Gostoso euri

Very Good Cat
nice Job (:
Reply
#8

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

whyso8char?
This is exemple = 16 caracters
1951121984 = 10 Caracters
Reply
#9

Tambйm to meio avuano nisso '-'
Reply
#10

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.
Reply
#11

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

Download
•- Test
•- Pastebin
Reply
#12

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

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.
Reply
#14

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
Reply
#15

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
Reply
#16

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!
Reply
#17

Another HTML/Javascript solution:
Testlink
Pastebin
Reply
#18

Thx so much, keep it going
Reply
#19

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)