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

Quote:
Originally Posted by Retardedwolf
Посмотреть сообщение
Up,up. (8char)
Ah, I failed to read that, sorry for the post.

Nice li'l tool, there should come something build-in for cell calculating on pawno hehe.
Reply
#22

You should always add 1 more character to a string to compensate for the null terminator. You people should know this...
Reply
#23

Great but with javascript is more great and useful, and dont charge the server with the consult.
Reply
#24

Quote:
Originally Posted by RealCop228
Посмотреть сообщение
You should always add 1 more character to a string to compensate for the null terminator. You people should know this...
If you really need your null termianator why don't you add 1 to the result ?
Reply
#25

Quote:
Originally Posted by Rafelder_GRF
Посмотреть сообщение
If you really need your null termianator why don't you add 1 to the result ?
You can do it either way, but most people don't know they need to add a NULL terminator so they will experience issues with their string(s).
Reply
#26

You spelled it wrong, its paste Nice too.
Reply
#27

WTF?
lettercount.com
Reply
#28

Thanks,..
Reply
#29

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.
Agree with that.
Reply
#30

More ideas ?
Reply
#31

very useful, if an scripter don't want to loose lots of memory
Reply
#32

Write it in C/java/python or another language that makes executables, because I don't know how to use PHPs
Reply
#33

aaa=4? you can't count!

no really thats a fail
you should decrease the variable by 1 before echoing it in the form^^

other than theat it's okay and easy
Reply
#34

Quote:
Originally Posted by saiberfun
Посмотреть сообщение
aaa=4? you can't count!

no really thats a fail
you should decrease the variable by 1 before echoing it in the form^^

other than theat it's okay and easy
prolly it's because he count's the null string purposely
Reply
#35

Quote:
Originally Posted by saiberfun
Посмотреть сообщение
aaa=4? you can't count!

no really thats a fail
you should decrease the variable by 1 before echoing it in the form^^

other than theat it's okay and easy
it also counts the ' \0 ' character that's by default a the end of a string!
Reply
#36

FUCK YEAH. I was looking for this. Thanksss a lot
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)