Raised This Month: $32 Target: $400
 8% 

MSG_ONE or MSG_ONE_UNRELIABLE?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Shadows Adi
AlliedModders Donor
Join Date: Aug 2019
Location: Romania
Old 08-20-2020 , 19:11   MSG_ONE or MSG_ONE_UNRELIABLE?
Reply With Quote #1

Hello,
I am thinking about those two destinations. Which could be better in the case when I am setting a sprite icon to client?
Code:
message_begin( MSG_ONE / MSG_ONE_UNRELIABLE ?, get_user_msgid("StatusIcon"), {0,0,0}, id )         write_byte( 1)         write_string( "number_1" )         write_byte( 0 )         write_byte( 255 )         write_byte( 0 )         message_end( )
This message is called inside Ham_Spawn Post func.
__________________


Accepting Paid Requests, contact PM.

MVP Of The Round View project on GITHUB / AlliedModders
CSGO REMAKE ~ CSGO MOD [STABLE + SOURCE CODE]
Shadows Adi is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 08-21-2020 , 02:55   Re: MSG_ONE or MSG_ONE_UNRELIABLE?
Reply With Quote #2

MSG_ONE will always send the message, but could cause a crash if too many messages are sent.
MSG_ONE_UNRELIABLE will not send the message if something is wrong.
__________________
HamletEagle is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-21-2020 , 22:40   Re: MSG_ONE or MSG_ONE_UNRELIABLE?
Reply With Quote #3

Use unreliable if possible. You probably won't notice when it fails. If you use reliable then the one time that it does fail, it will be very noticeable.
__________________
fysiks is offline
Shadows Adi
AlliedModders Donor
Join Date: Aug 2019
Location: Romania
Old 08-22-2020 , 08:46   Re: MSG_ONE or MSG_ONE_UNRELIABLE?
Reply With Quote #4

Quote:
Originally Posted by HamletEagle View Post
MSG_ONE will always send the message, but could cause a crash if too many messages are sent.
Too many messages in the same time or in the same channel?
__________________


Accepting Paid Requests, contact PM.

MVP Of The Round View project on GITHUB / AlliedModders
CSGO REMAKE ~ CSGO MOD [STABLE + SOURCE CODE]
Shadows Adi is offline
Reply


Thread Tools
Display Modes

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 21:26.


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