ColorChat message limit (check max lenght)
How i can check max lenght of message?
PHP Code:
I need a checker of max lenght this message.. Help me please :) |
Re: ColorChat message limit (check max lenght)
you can limit the nickname with only 32 chars. 128+32<191
|
Re: ColorChat message limit (check max lenght)
Quote:
|
Re: ColorChat message limit (check max lenght)
Quote:
The best player is Player ! or The best player is Player, Player1, Player2, Player3 ... ! I want set a check of max lenght message.. But i don't know , how exactly i can set this. |
Re: ColorChat message limit (check max lenght)
Use Notepad++, highlight the message and check its length.
|
Re: ColorChat message limit (check max lenght)
check with
native strlen(const string[]); your length current and future (for example nick). len=strlen(msg) if(len+strlen(nick)>191)... else { len+=strlen(nick) ... } |
| All times are GMT -4. The time now is 13:40. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.