Raised This Month: $ Target: $400
 0% 

New line in chat/center/ShowStatus


Post New Thread Reply   
 
Thread Tools Display Modes
PRoSToTeM@
Veteran Member
Join Date: Jan 2010
Location: Russia, Ivanovo
Old 04-19-2017 , 16:54   Re: New line in chat/center/ShowStatus
Reply With Quote #11

Quote:
Originally Posted by georgik57 View Post
They can easily overflow the client.
No, its ok. Overhead is very low, 1 byte for '\n'/'\r' char vs 4 bytes: 2 for message_begin, 1 for playerId and 1 for end of string (EOS).
__________________
PRoSToTeM@ is offline
Send a message via ICQ to PRoSToTeM@ Send a message via Skype™ to PRoSToTeM@
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 04-19-2017 , 17:03   Re: New line in chat/center/ShowStatus
Reply With Quote #12

Quote:
Originally Posted by PRoSToTeM@ View Post
No, its ok. Overhead is very low, 1 byte for '\n'/'\r' char vs 4 bytes: 2 for message_begin, 1 for playerId and 1 for end of string (EOS).
I'm confused. I meant I'd prefer using a new line if any worked instead of multiple chat messages.
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
PRoSToTeM@
Veteran Member
Join Date: Jan 2010
Location: Russia, Ivanovo
Old 04-19-2017 , 19:31   Re: New line in chat/center/ShowStatus
Reply With Quote #13

Quote:
Originally Posted by georgik57 View Post
I'm confused. I meant I'd prefer using a new line if any worked instead of multiple chat messages.
It seems there is no way to do it without multiple messages. But it isn't so principal because only text size is important.
__________________
PRoSToTeM@ is offline
Send a message via ICQ to PRoSToTeM@ Send a message via Skype™ to PRoSToTeM@
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 04-19-2017 , 20:42   Re: New line in chat/center/ShowStatus
Reply With Quote #14

So not only the number of messages counts, but the amount of data(which is more important?) they're transmitting too?
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
PRoSToTeM@
Veteran Member
Join Date: Jan 2010
Location: Russia, Ivanovo
Old 04-19-2017 , 20:51   Re: New line in chat/center/ShowStatus
Reply With Quote #15

Quote:
Originally Posted by georgik57 View Post
So not only the number of messages counts, but the amount of data(which is more important?) they're transmitting too?
Yes. The network size of chat message is 4 bytes + length of the text in bytes.
__________________
PRoSToTeM@ is offline
Send a message via ICQ to PRoSToTeM@ Send a message via Skype™ to PRoSToTeM@
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 04-19-2017 , 21:13   Re: New line in chat/center/ShowStatus
Reply With Quote #16

Didn't know about that. Thanks. What about the rest of the nonsense I said?
Quote:
Originally Posted by georgik57 View Post
Are there any other special characters like ^n and ^r new-line related?

Would trying them both at once make any difference? If yes, which one of them should be first?

I've read the titles.txt and resource/cstrike_english.txt files and they seem to be using \n only for new lines.
I know that in AMXX, \ is used to mark the continuation of a line, no matter if it is located inside a string or not, so I'm guessing that when I'm trying to send "An enemy is near you!\nAn enemy is near you!" AMXX messes with it?
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 05-08-2017 , 10:50   Re: New line in chat/center/ShowStatus
Reply With Quote #17

bumping this cause of reasons
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 06-01-2017 , 21:48   Re: New line in chat/center/ShowStatus
Reply With Quote #18

bump
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 06-09-2017 , 09:49   Re: New line in chat/center/ShowStatus
Reply With Quote #19

^
|
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 07-17-2017 , 13:31   Re: New line in chat/center/ShowStatus
Reply With Quote #20

uperino
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:02.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode