Raised This Month: $ Target: $400
 0% 

Reliable CHannel Overflow


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
pRED*
Join Date: Dec 2006
Old 06-20-2007 , 20:38   Re: Reliable CHannel Overflow
Reply With Quote #1

Do it the same way you're doing it but change from MSG_ONE (message sent to a single client, over reliable data stream) to MSG_BROADCAST (message to all players, unreliable).

This removes the need for a loop and MSG_BROADCAST is the equivalent of client_print(0...) and also it's unreliable which means (i think) it doesn't get sent if its going to cause an overflow.

Also you don't need to read the file in every time you want to display the message. Read the file once on map load into a string array (define a number like MAX_ADS 30, new ads[MAX_ADS][128])

Then just loop through that array when you want to print..
pRED* is offline
Old 06-20-2007, 20:44
_Master_
This message has been deleted by _Master_. Reason: nvm...
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 21:24.


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