Raised This Month: $ Target: $400
 0% 

Destination types for message_begin()


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
l4ulwtlln
Member
Join Date: Aug 2007
Old 11-11-2007 , 12:19   Destination types for message_begin()
Reply With Quote #1

which is generally better to us?

MSG_BROADCAST or MSG_ALL

MSG_ONE_UNRELIABLE or MSG_ONE


note that this is for two different cases
l4ulwtlln is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 11-11-2007 , 12:59   Re: Destination types for message_begin()
Reply With Quote #2

I don't think is a general case, depends by usage
Code:
MSG_BROADCAST     // Unreliable to all
MSG_ALL                // Reliable to all
----------------------------------------
MSG_ONE_UNRELIABLE     // Send to one client, but don't put in reliable stream, put in unreliable datagram (could be dropped)
MSG_ONE                     // Reliable to one (msg_entity)
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
mythkina
New Member
Join Date: Mar 2006
Location: china
Old 11-17-2007 , 14:28   Re: Destination types for message_begin()
Reply With Quote #3

Quote:
Originally Posted by Alka View Post
I don't think is a general case, depends by usage
Code:
MSG_BROADCAST     // Unreliable to all
MSG_ALL                // Reliable to all
----------------------------------------
MSG_ONE_UNRELIABLE     // Send to one client, but don't put in reliable stream, put in unreliable datagram (could be dropped)
MSG_ONE                     // Reliable to one (msg_entity)
where can i find some veryuseful infermation like this?hlsdk or something else?
i know there's a site for hlsdk but i dont know where to find things like message_begin/ write_byte for referrence..

http://svn.tcwonline.org/viewvc.cgi/hlsdk/?root=amxmodx
mythkina is offline
l4ulwtlln
Member
Join Date: Aug 2007
Old 11-17-2007 , 17:22   Re: Destination types for message_begin()
Reply With Quote #4

inside amxx's source code
l4ulwtlln is offline
l4ulwtlln
Member
Join Date: Aug 2007
Old 11-11-2007 , 23:21   Re: Destination types for message_begin()
Reply With Quote #5

yes i know, i saw that already just that i dunno when i should use one over the other. would you mind providing me with an example of when you should each?
l4ulwtlln is offline
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 11-11-2007 , 23:42   Re: Destination types for message_begin()
Reply With Quote #6

Use the reliable ones when you want to make sure the player(s) see what you're sending, at the risk of getting them disconnected. Use unreliable when it doesn't really matter that the player(s) saw it.
__________________
Brad is offline
mythkina
New Member
Join Date: Mar 2006
Location: china
Old 11-18-2007 , 00:18   Re: Destination types for message_begin()
Reply With Quote #7

thank you i finally find it at message_const.inc by you hint~~
mythkina is offline
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 01:22.


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