Re: [PHP]Count strings very easy! -
Hiddos - 02.12.2010
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.
Re: [PHP]Count strings very easy! -
Scenario - 02.12.2010
You should always add 1 more character to a string to compensate for the null terminator. You people should know this...
Respuesta: [PHP]Count strings very easy! -
xenowort - 02.12.2010
Great but with javascript is more great and useful, and dont charge the server with the consult.
Re: [PHP]Count strings very easy! -
Rafelder_GRF - 03.12.2010
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 ?
Re: [PHP]Count strings very easy! -
Scenario - 03.12.2010
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).
Re: [PHP]Count strings very easy! -
willsuckformoney - 03.12.2010
You spelled it wrong, its paste

Nice too.
Re: [PHP]Count strings very easy! -
kLx - 03.12.2010
WTF?
lettercount.com
Re: [PHP]Count strings very easy! -
zSuYaNw - 04.12.2010
Thanks,..
Re: [PHP]Count strings very easy! -
Haji - 04.12.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.
|
Agree with that.
Re: [PHP]Count strings very easy! -
zSuYaNw - 05.12.2010
More ideas ?
Re: [PHP]Count strings very easy! -
Stefan_Toretto - 06.12.2010
very useful, if an scripter don't want to loose lots of memory
Re: [PHP]Count strings very easy! -
Sasino97 - 13.03.2011
Write it in C/java/python or another language that makes executables, because I don't know how to use PHPs
Re: [PHP]Count strings very easy! -
saiberfun - 15.03.2011
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
Re: [PHP]Count strings very easy! -
SlashPT - 15.03.2011
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
Re: [PHP]Count strings very easy! -
Sasino97 - 15.03.2011
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!
Respuesta: [PHP]Count strings very easy! -
Code8976Man - 15.03.2011
FUCK YEAH. I was looking for this. Thanksss a lot