Get the count of characters or words in chat.
I think the title says all. Is it possible?
|
Re: Get the count of characters or words in chat.
strlen :D
|
Re: Get the count of characters or words in chat.
Hey, thanks, but my doubt persists. For example, how I can do it using strlen?
An example code that I wrote for this purpose: Code:
register_clcmd( "say", "HandleSay" ); |
Re: Get the count of characters or words in chat.
is ok. Also uso remove_quotes(arg)
|
Re: Get the count of characters or words in chat.
More specifically, remove the quotes first, so you don't get a size that's two larger than it should be (because quotes were there when you got the size).
It's also going to count the number of black spaces they put before and after their message, which you can remove with trim() |
Re: Get the count of characters or words in chat.
Make size 191.
|
| All times are GMT -4. The time now is 15:08. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.